Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter: Examples, Pinouts, and Specs

Image of Adafruit 4-channel I2C-safe Bi-directional Logic Level ConverterDesign with Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter in Cirkit Designer

Introduction

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.

Explore Projects Built with Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Raspberry Pi 4B and mlx90614 Infrared Thermometer with Logic Level Conversion: A project utilizing Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter in a practical application
Raspberry Pi 4B and mlx90614 Infrared Thermometer with Logic Level Conversion

This circuit connects a Raspberry Pi 4B to an MLX90614 infrared temperature sensor using an Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter. The level converter is used to safely step down the 5V I2C signals from the Raspberry Pi to the 3.3V needed by the MLX90614 sensor, ensuring compatibility between the devices. Ground connections are shared among all components, and the sensor is powered by the Raspberry Pi's 5V supply through the level converter.

Open Project in Cirkit Designer
Image of ESP32 and Logic Level Converter-Based Wi-Fi Controlled Interface: A project utilizing Adafruit 4-channel I2C-safe Bi-directional Logic Level Converter in a practical application
ESP32 and Logic Level Converter-Based Wi-Fi Controlled Interface

This circuit features an ESP32 Devkit V1 microcontroller connected to a Bi-Directional Logic Level Converter, which facilitates voltage level shifting between the ESP32 and external components. The ESP32 is powered through its VIN pin via an alligator clip cable, and the logic level converter is connected to various pins on the ESP32 to manage different voltage levels for communication.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the Component in a Circuit

  1. Power Connections:

    • Connect the HV pin to the higher voltage level (e.g., 5V).
    • Connect the LV pin to the lower voltage level (e.g., 3.3V).
    • Connect the GND pin to the common ground of both systems.
  2. Signal Connections:

    • Connect the high voltage (5V) logic signals to HV1 to HV4.
    • Connect the corresponding low voltage (3.3V) logic signals to LV1 to LV4.
  3. I2C Communication:

    • For I2C communication, connect SDA and SCL lines from the 5V system to the HV side channels.
    • Connect the corresponding SDA and SCL lines from the 3.3V system to the LV side channels.

Important Considerations and Best Practices

Example Code for Arduino UNO

#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);
}

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

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.