I²C Logic Level Converter
Modern MCUs work at 3.3V or even lower voltage, while many legacy I²C devices are still operating at 5V.
Two problems may arise:
The solution is called a logic level converter. |
Breakout Board
This ready to use logic level converter from Sparkfun is very convenient on a breadboard.
There are two sides: one for high voltage (eg. 5V) and another for low voltage (eg. 3.3V). For I²C, use the TXO/TXI pins as they are bi-directional. The two GND pins are connected. For serial, RXI/RXO can also be used but they are only mono-directional. |
Picture from Sparkfun
|
MOSFET-Based Circuit
Schematics for the SDA channel, to be duplicated for the SCL channel.
|
Integrated Circuit
Another option I've investigated includes integrated circuits.
The most common is the PCA9306, available in a variety of packages. There are many other ICs, some of them with specific features.
|
Logic diagram from Texas Instruments
|
Previous |