Level Shifting

Hi,

If I wanted to shift in voltage from 3.3V to 5V, how would I implement the Sparkfun TXB0104? Thank you.

I saw that but I was still unsure. If I were to take a guess, would the connections below work?

Vccb: 5v
Vcca: 3.3V
A1: 3.3V I /O pin
B1: 5V output

Thank you.

Why guess?

If there is something you don’t understand about this diagram and the following explanation, please point it out, so that Sparkfun can improve the documentation.

  • B-side signals (2) are the high voltage signals. VccB must be at a higher voltage than VccA to avoid total protonic reversal (or at least, to avoid possible damage to the chip). The voltage range for VccB is 1.65 to 5.5V. If driving the OE pin from the high-voltage device, please insert a 1k resistor in series with the drive signal.
  • A-side signals (3) are the low voltage signals. VccA must be at a lower voltage than VccB. The voltage range for VccA is 1.2V to 3.6V.

Note: “protonic” is not a word. The copy writer probably meant “polarity reversal”, instead of “protonic reversal”.

1 Like

Hi Jim (@jremington ),

You’re not a fan of Ghostbusters then? :wink:

Best wishes,
Paul

Guess I missed the important episode!

I’m just unsure as to how it works. If I need 5V from a 3.3V I/O pin, what would the necessary connections be? Thank you.

What do you “need” 5V for? 5V I/O is connected to the converter, not a 3.3v pin.

Study this diagram from the tutorial very carefully, as it provides a clear illustration of a complete, functional system, showing how a 5V Arduino can be connected to a 3.3V ADXL345 sensor.

If this seems too difficult for you, just use 3.3V Arduinos with 3.3V modules, and you will never have to worry about interfacing to 5V processors again. 5V logic will soon be a thing of the past.

1 Like