Sphere
Log in Join
☆ 18

Level shifting a 3.3 V sensor to a 5 V MCU

I have a 3.3 V I2C sensor and a 5 V Arduino. A resistor divider works for SDA but I2C is bidirectional. Can I use two dividers?

⚑ Report

3 replies

☆ 0
K Katrin ·2026-11-18#1

A divider does not work for the line driven by the sensor because it only shifts one direction. Use a proper bidirectional level shifter with two MOSFETs.

⚑ Report
☆ 0
J Jonas ·2026-11-18#2

I have a BSS138 and some 10k resistors. Is that the standard circuit?

⚑ Report
☆ 0
O Omar ·2026-11-18#3

Yes, that is the classic one. Pull up each side to its own supply and keep the wiring short. Check that the sensor is 5 V tolerant on the other side.

⚑ Report
Log in to reply.