The Adafruit 4-Channel I2C-Safe Bi-directional Logic Level Converter is a small device that safely steps down 5V signals to 3.3V and steps up 3.3V to 5V simultaneously. This level converter is specifically designed to interface with I2C, a popular communication protocol, which makes it ideal for connecting a 3.3V device to a 5V system without any worry of damage. Common applications include interfacing 5V microcontrollers with 3.3V sensors, or vice versa.
Pin Name | Description |
---|---|
HV | High voltage (5V) supply input |
LV | Low voltage (3.3V) supply input |
GND | Ground connection |
HV1 - HV4 | High voltage (5V) logic level inputs/outputs |
LV1 - LV4 | Low voltage (3.3V) logic level inputs/outputs |
Power Connections:
HV
pin to the higher voltage level (e.g., 5V).LV
pin to the lower voltage level (e.g., 3.3V).GND
pin to the common ground of both systems.Signal Connections:
HV1
to HV4
.LV1
to LV4
.I2C Communication:
#include <Wire.h>
void setup() {
Wire.begin(); // join i2c bus
Serial.begin(9600); // start serial for output
}
void loop() {
Wire.requestFrom(0x3C, 6); // request 6 bytes from slave device #0x3C
while (Wire.available()) { // slave may send less than requested
char c = Wire.read(); // receive a byte as character
Serial.print(c); // print the character
}
delay(500);
}
No Signal Conversion:
Device Not Recognized:
Q: Can this converter be used with SPI or UART? A: While it is designed for I2C, it may work with other protocols like SPI or UART at low speeds. However, it is not guaranteed and should be tested thoroughly.
Q: Is this converter bidirectional on all channels? A: Yes, all four channels are bidirectional and can be used for voltage stepping in both directions.
Q: What is the maximum current this converter can handle? A: The converter is designed for low-power signals and is not intended for high current applications. It is recommended to keep the current below 10mA per channel.