TXB0104 Level Shifter Hookup Guide
Contributors:
SFUptownMaker
Example: Connecting ADXL345 to Arduino
The image above shows how to use the TXB01014 BOB to connect an Arduino Uno to SparkFun's ADXL345 breakout board. The ADXL345 board is a 3.3V system, and the Arduino Uno is a 5V system, so some level shifting is required.
In this case, we're leaving the OE pin tied high as it defaults; there's no real need to make the pins high impedance for this application.
There is no need for changes in software to support the TXB0104; the chip will automatically detect the signal direction and pass the data through accordingly.