the best level shifter? why are there so many?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

the best level shifter? why are there so many?

Postby ceratophyllum » Sat Dec 01, 2012 7:54 pm

I was thinking of using a BMP085 pressure/temp sensor with a 5V arduino and I started looking into level shifting. There are at least two breakout boards (one from Adafruit and one from Sparkfun) and a several ICs with 4050 somewhere in their names. I'm confused. I want to connect the BMP085 to the i2c bus along with a 16x4 i2c screen and DS1307 RTC both operating a 5V.

What's the best (bi-directional?) level shifter to use to connect BMP085 (which has to operate a 3.3V) to the i2c bus with the other two 5V devices?

I was thinking of using a CD74HC4050E which I think is pretty much the same as the 4050 level shifter in the Nokia 5110 tutorial.
I did that tutorial with CD74HC4050E and checked that the signal (on my DSO quad) going into the Nokia screen was getting pulses about 2/3 as big as the stuff coming out of the arduino pins. (I never bother to calibrate the DSO, b/c it seems like I get annoyed and try another firmware like every other day.) So it seems to work fine. Will this shifter work with i2c?
ceratophyllum
 
Posts: 16
Joined: Sat Oct 27, 2012 7:34 am

Re: the best level shifter? why are there so many?

Postby adafruit_support_rick » Sat Dec 01, 2012 8:12 pm

Have a look at the product description for our 4-channel I2C-safe Bi-directional Logic Level Converter.
It says this:
We do have some other handy level shifters in the shop, from the DIP 74LVC245 to the fancy bi-directional TXB0108. However, neither of these are happy to work with I2C, which uses a funky pull-up system to transfer data back and forth. This level shifter board combines the ease-of-use of the bi-directional TXB0108 with an I2C-compatible FET design following NXP's app note


The 74LVC245 is a unidirectional device similar to the 4050.

So, actually, if you're using an I2C device, our I2C-safe Bi-directional is the gizmo you want.
User avatar
adafruit_support_rick
 
Posts: 3148
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY


Return to General Project help

Who is online

Users browsing this forum: No registered users and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]