logic level converter/Picking the right one/08. Which board for which job
Picking the right one · 08 of 11

Which board for which job

Two questions decide it: does the signal rely on a pull-up resistor, and is it fast? The chooser and the table answer them for the six things people actually connect.

Two questions

  1. Is the line held HIGH by a resistor? I²C, 1-Wire and a button all are. That rules out the TXB0108.
  2. Is it fast? SPI and LED strip data are. That rules out the MOSFET boards, or at least makes them a gamble.

The TXS0108 passes both questions, which makes it the safe default when you are unsure. The other two are each the best choice for their own job.

Pick the signal, read the board
I²C sensor or screen
What are you connecting?
I²C sensor or screen. I²C lines are pulled high by resistors and pulled low by whoever is talking. The MOSFET board was designed around exactly that, and the TXS has the pull-ups built in. The TXB fights pull-up resistors, and TI says not to use it for I²C.

The whole table

ConnectingMOSFET 2/4/6CHTXS0108TXB0108
I²C sensor or screenyesyesno
Serial (UART)yesyesyes
SPI display or SD cardslow clocks onlyyesyes
WS2812 LED stripmarginalyesyes
DS18B20 (1-Wire)yesyesno
Button or switchyesyesno

Mixing boards in one project

Nothing stops you using two. A 2CH for an I²C screen and a TXB for an LED strip can sit on the same breadboard, sharing the same 3.3 V, 5 V and ground rails. Each board still needs its own LV, HV and GND wires.

All five converter boards side by side, to scale: the 2-channel, 4-channel and 6-channel MOSFET boards on the left and the two longer TXB0108 and TXS0108 boards on the right.
Left to right: 2CH, 4CH, 6CH, TXB0108, TXS0108. The three on the left are for I²C and anything slow; the TXB on the right is for anything fast and driven; the TXS does both.

When it does not work

My signal is not on the list

Ask the two questions. Is the line held HIGH by a resistor, with devices only pulling it LOW? Then not the TXB. Is it faster than a few hundred kHz? Then not the MOSFET board. A slow PWM signal to a motor driver, for example, is driven both ways and slow, so any board will do.

I only have the TXB and I need I²C

Do not try to make it work. TI's datasheet rules the TXB out for I²C, and a bus that half works is harder to debug than one that does not work at all. A 2-channel MOSFET board is the right part, and there are eighteen in the 27-pack.

Can a converter shift an analog voltage, like a sensor's 0–5 V output?

No. These boards are for digital signals only. Through a TXB or TXS an analog voltage becomes a 0 or a 1, and through a MOSFET channel it gets distorted. To scale an analog 0–5 V down to 0–3.3 V, use a voltage divider.

Where this goes next

The commonest build in this book, from wiring to a working bus scan.

A 5 V I²C screen on an ESP32

Edit this page — content/books/llc/which-board-for-which-job.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum