Components / Interface and audio modules / I2C level shifter (2-channel BSS138)

I2C level shifter (2-channel BSS138)

Bidirectional level shifter for I2C.

FunctionBidirectional MOSFET level shifter
Supply voltageLow and high sides
Interface2 channels
Logic level1.8 to 5 V
InterfacesReviewedMPN BSS138 2CHUsed in 1 project
BSS138
In short

What is the I2C level shifter (2-channel BSS138) and what is it used for?

Bidirectional level shifter for I2C. Makers use it for 5 V sensors on 3.3 V boards.

How it works

Each channel is a BSS138 MOSFET with pull-ups on both sides, passing signals both ways.

Key specifications

Interface module specValue
FunctionBidirectional MOSFET level shifter
Supply voltageLow and high sides
Interface2 channels
Logic level1.8 to 5 V

Pinout

LVLow-side supply (1.8 to 3.3 V)
HVHigh-side supply (5 V)
GNDGround
LV1 HV1 LV2 HV2Channel pairs

How to use it

Connect both supplies, then wire SDA and SCL through it. It is ideal for I2C up to 400 kHz and fine for slow signals, but too slow for fast SPI.

Applications

Alternatives

Buy at

Common questions

What is the I2C level shifter (2-channel BSS138) used for?

In maker projects: 5 V sensors on 3.3 V boards.

How does the I2C level shifter (2-channel BSS138) work?

Each channel is a BSS138 MOSFET with pull-ups on both sides, passing signals both ways.

What voltage does the I2C level shifter (2-channel BSS138) need?

Low and high sides.

How do I connect the I2C level shifter (2-channel BSS138) to an Arduino or ESP32?

2 channels. Pins: LV (Low-side supply (1.8 to 3.3 V)), HV (High-side supply (5 V)), GND (Ground), LV1 HV1 LV2 HV2 (Channel pairs).

What can I use instead of the I2C level shifter (2-channel BSS138)?

Logic Level Converter 4-channel and TXS0108E 8-channel level shifter.