Topics/Fundamentals/Logic Level Converters: MOSFET 2/4/6-Channel, TXB0108 and TXS0108
I2CSPIUARTDIGITALbeginner

Logic Level Converters: MOSFET 2/4/6-Channel, TXB0108 and TXS0108

Five boards that let a 3.3 V board and a 5 V part share a wire safely. Which one to use for I²C, SPI, serial or an LED strip, which side is which, and the three wires that come before any signal.

Logic Level Converter Kit, 27 Boards (2/4/6-Channel)
TXB0108 / TXS0108 8-Channel Level Shifter, 6-Pack

Specifications

In the 27-pack27 boards: 18 × 2-channel, 6 × 4-channel, 3 × 6-channel MOSFET boards, and a storage case
In the 6-pack3 × TXB0108 and 3 × TXS0108 8-channel boards, and a storage case
Voltages3.3 V on the low side, 5 V on the high side, as printed. The low side must never be the higher of the two
MOSFET channelOne BSS138 transistor and two 10 kΩ pull-up resistors, one to each side
TXB0108Push-pull signals only: SPI, serial, LED data. Up to 100 Mbps at 3.3 V to 5 V. Not for I²C or 1-Wire
TXS0108EPull-ups built in: 4 kΩ passing a high, 40 kΩ passing a low. I²C and 1-Wire up to 1.2 Mbps, push-pull up to 110 Mbps
Chip supply rangesTXB0108: VA 1.2–3.6 V, VB 1.65–5.5 V. TXS0108E: VA 1.4–3.6 V, VB 1.65–5.5 V. VA ≤ VB on both
OE (TXB and TXS)Pulled up to VA through 10 kΩ on the board, so leaving it unconnected means on. Wiring it to GND turns every channel off
GroundMOSFET boards: a GND on each side, joined on the board. TXB and TXS boards: one GND, on the B side
Pitch2.54 mm (0.1 in), two rows that straddle a breadboard's centre channel

What it does

A 3.3 V board — an ESP32, a Raspberry Pi, a Pico — and a 5 V part disagree about what a HIGH is. Wire a 5 V output straight to a 3.3 V pin and current flows into that chip's supply through a protection diode never meant to carry it. It usually keeps working for a while, which is why people think it is fine.

A converter sits in the wire. Each side is powered by its own voltage, and a signal that goes in as 0–3.3 V on one side comes out as 0–5 V on the other — in either direction, with no direction pin to set.

All five converter boards side by side, to scale, seen from above: the small square 2-channel board, the 4-channel and 6-channel boards, and the two longer 8-channel boards labelled TXB0108 [SPI] and TXS0108 [I2C], each with A pins down the left edge and B pins down the right.
The five boards to scale. The three on the left are the 27-pack; the two on the right are the 6-pack. On every one of them, A is the 3.3 V side and B is the 5 V side.

The two boxes

The 27-pack is one circuit in three sizes: eighteen 2-channel boards, six 4-channel and three 6-channel. Each channel is one BSS138 transistor and two 10 kΩ resistors. It is the one for I²C, serial, buttons and anything slow.

The 27-pack laid out around its teal storage case: rows of small black 2-channel converter boards, 4-channel and 6-channel boards shown front and back, the back printed LOGIC LEVEL CONVERTER, BI-DIRECTIONAL, BREADBOARD-FRIENDLY.
Eighteen of the twenty-seven are the 2-channel board, because I²C needs exactly two wires and is the commonest reason to need a converter.

The 6-pack is two chips from Texas Instruments on the same 8-channel board: three TXB0108 and three TXS0108. They look identical and follow opposite rules. The silkscreen says which job each is for — SPI on the TXB, I2C on the TXS — and that label is the most important thing on either board.

A TXB0108 board and a TXS0108 board side by side at an angle, both black with gold pads, a TSSOP chip in the middle between two large round mounting holes, and pins labelled VA 3V3, A1 to A8 and OE down one edge, 5V VB, B1 to B8 and GND down the other.
Pin for pin the same. The chip in the middle is the difference: the TXB pushes signals, the TXS has pull-up resistors built in.

Which board for which job

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

The three noes are one rule. The TXB holds each line with a weak drive of its own, and a pull-up resistor on the same line fights it. I²C, 1-Wire and a button all depend on pull-ups. Which board for which job explains every row.

Wiring, in four lines

  1. LV (or VA) to the 3.3 V board's 3V3 pin.
  2. HV (or VB) to the 5 V part's supply.
  3. GND to both boards' ground.
  4. Then signals: the 3.3 V board's pin to A1, the 5 V part's pin to B1.

The low side must be the lower voltage. Swap LV and HV and the A pins — the ones wired to your 3.3 V board — idle at 5 V, which is the exact thing a converter is there to prevent. On the TXB and TXS it is also more than the chip's own A side is rated for.

On the TXB and TXS boards there is only one GND, bottom right on the B side. The pin opposite it is OE, not a second ground. Leave it unconnected — the board already pulls it up, which switches the chip on. Power before signals has the whole header.

Where to start

The handbook below is eleven short articles with a working figure in each. If you only read one, read which board for which job. If your project is a 5 V I²C screen on an ESP32, that build is written out start to finish.

When it doesn’t work

Nothing gets through the converter.
Check the three power wires before any signal wire: LV to the 3.3 V board's 3V3, HV to the 5 V part's supply, and GND joining both boards. A converter with only one side powered passes nothing and looks broken. On a TXB or TXS board, also check that OE is not wired to GND — it sits exactly where a second ground pin would be, and grounding it switches off all eight channels.
My I²C sensor is not found through the TXB0108.
That is the TXB doing what its datasheet says it will. I²C lines are held high by pull-up resistors, and the TXB holds each line with a weak drive of its own that fights them; TI says any pull-up must be over 50 kΩ and names I²C as a job not to use it for. Every I²C module carries pull-ups far smaller than that. Swap to a TXS0108 or a 2-channel MOSFET board — same wiring, and it will scan.
It works for I²C but not for my SPI display.
You are on a MOSFET board, and SPI is too fast for it. Its rising edges are made by a 10 kΩ resistor filling the wire, which takes a few hundred nanoseconds — fine at I²C's 100 kHz, too slow for an SPI clock of several MHz. Move the SPI lines to the TXB0108, or lower the SPI clock while you test.
Which side is which?
A is the low-voltage side and B the high-voltage side, on every board. On the MOSFET boards the power pins are printed LV and HV; on the TXB and TXS they are VA and VB, with 3V3 and 5V printed beside them. A1 always pairs with B1, straight across the board.
Do I need a converter to send 3.3 V into a 5 V Arduino?
Usually not, and it is safe. An Uno reads anything above about 3 V as HIGH, so a 3.3 V signal gets through with a small margin. The other direction is the one that matters: a 5 V output into a 3.3 V pin pushes current into that chip's supply. Anything with 5 V coming towards a 3.3 V board needs a converter. The exception is a WS2812 LED strip, which wants at least 3.5 V and is the common 5 V part most likely to misread a 3.3 V pin.
Can a converter power my 5 V part?
No. LV and HV are references, not supplies — the converter uses them to know what 3.3 V and 5 V are, and draws almost nothing from either. The 5 V part still needs its own 5 V, usually the same wire that feeds HV.

The logic level converter handbook

11 articles · about 50 minutes

This page is the reference: what the part is, what it is made of, and the questions people arrive already asking. The handbook is the walk — the same part in the order somebody actually meets it.

Why you need one

2 articles

A wire does not carry a 1. It carries a voltage, and a 3.3 V board and a 5 V part disagree about what that voltage should be.

The boards in your box

2 articles

Five boards across two boxes. Every one of them has a low side and a high side, and every wiring mistake is getting those two the wrong way round.

What is inside them

2 articles

One transistor and two resistors per channel on the small boards, and a chip on the big ones. Knowing which is which explains every rule that follows.

Picking the right one

2 articles

Speed and pull-up resistors decide it. One page on each, and one table that answers the question for the signals you actually have.

Two builds and a check

3 articles

A 5 V I²C screen on an ESP32, an LED strip from a 3.3 V pin, and the four meter readings that tell you whether a converter is wired right.

Edit this page — content/modules/llc.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