Stufin
Home Quick Cart Profile

4 Channel (I2C or SPI) 3.3V-5V Bi-Directional Logic Level Converter

Buy Now on Stufin

Component Name

4 Channel (I2C or SPI) 3.3V-5V Bi-Directional Logic Level Converter

Overview

The 4 Channel Bi-Directional Logic Level Converter is a versatile and compact component designed to facilitate reliable communication between devices operating at different voltage levels. This component is capable of converting signals between 3.3V and 5V logic levels, making it an essential tool for integrated circuits, microcontrollers, and IoT devices.

Functionality

The primary function of this component is to convert digital signals between two different voltage levels, ensuring seamless communication between devices with incompatible logic levels. This bi-directional converter supports both I2C (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface) communication protocols.

Key Features

### Voltage Conversion

Converts digital signals between 3.3V and 5V logic levels

Supports both I2C and SPI communication protocols

Bi-directional conversion, allowing data transmission in both directions

### Channel Configuration

4 independent channels for parallel conversion

Each channel can be configured for I2C or SPI mode

### Operating Characteristics

Operating voltage range

3.3V to 5V

Input voltage tolerance

10%

Output voltage tolerance

5%

Maximum current per channel

10mA

Propagation delay

<10ns

### Package and Pinout

Available in a compact QFN (Quad Flat No-Lead) package

Pinout consists of

+ VCC (power supply, 3.3V or 5V)

+ GND (ground)

+ 4 x Channels (each with Tx and Rx pins)

### Applications
Interfacing between 3.3V and 5V devices, such as

+ Microcontrollers (e.g., Arduino, Raspberry Pi)

+ Integrated Circuits (e.g., sensors, displays)

+ IoT devices (e.g., smart home devices, wearables)

Prototyping and development of IoT projects

Hobbyist and DIY projects requiring voltage level conversion

Advantages

Compact design saves board space

Easy to use and integrate into projects

Supports both I2C and SPI communication protocols

Fast propagation delay ensures reliable data transmission

Operating temperature range

-40C to 85C

Storage temperature range

-40C to 125C

Moisture sensitivity level

3 (JEDEC J-STD-020)

ordering Information

The 4 Channel Bi-Directional Logic Level Converter is available in a QFN package and can be ordered through various online marketplaces and electronics distributors. Please consult the manufacturer's documentation for detailed ordering information and pricing.

Pin Configuration

  • 4 Channel (I2C or SPI) 3.3V-5V Bi-Directional Logic Level Converter
  • The 4 Channel Bi-Directional Logic Level Converter is a versatile module that allows for seamless communication between devices operating at different voltage levels. It supports both I2C and SPI communication protocols, making it a valuable asset for a wide range of IoT applications.
  • Pin Description:
  • The module has 16 pins, divided into four sections: VCC and GND, I2C/SPI interface, LV (Low Voltage) side, and HV (High Voltage) side.
  • VCC and GND:
  • 1. VCC (Supply Voltage): This pin should be connected to a power source between 3.3V and 5V. The voltage supplied to this pin determines the output voltage of the LV side.
  • 2. GND (Ground): This pin should be connected to the ground of the power source and the circuit.
  • I2C/SPI Interface:
  • 3. VSEL (Voltage Select): This pin is used to select the communication protocol. Connect to GND for I2C mode or VCC for SPI mode.
  • LV (Low Voltage) Side:
  • 4. LV1 (Low Voltage Channel 1): This pin is the input/output pin for Channel 1 of the LV side.
  • 5. LV2 (Low Voltage Channel 2): This pin is the input/output pin for Channel 2 of the LV side.
  • 6. LVC (Low Voltage Clock): This pin is the clock pin for I2C or SPI communication on the LV side.
  • 7. LVD (Low Voltage Data): This pin is the data pin for I2C or SPI communication on the LV side.
  • 8. LV3 (Low Voltage Channel 3): This pin is the input/output pin for Channel 3 of the LV side.
  • 9. LV4 (Low Voltage Channel 4): This pin is the input/output pin for Channel 4 of the LV side.
  • HV (High Voltage) Side:
  • 10. HV1 (High Voltage Channel 1): This pin is the input/output pin for Channel 1 of the HV side.
  • 11. HV2 (High Voltage Channel 2): This pin is the input/output pin for Channel 2 of the HV side.
  • 12. HVC (High Voltage Clock): This pin is the clock pin for I2C or SPI communication on the HV side.
  • 13. HVD (High Voltage Data): This pin is the data pin for I2C or SPI communication on the HV side.
  • 14. HV3 (High Voltage Channel 3): This pin is the input/output pin for Channel 3 of the HV side.
  • 15. HV4 (High Voltage Channel 4): This pin is the input/output pin for Channel 4 of the HV side.
  • How to Connect the Pins:
  • Connecting the VCC and GND Pins:
  • Connect VCC to a power source between 3.3V and 5V.
  • Connect GND to the ground of the power source and the circuit.
  • Connecting the I2C/SPI Interface:
  • Connect VSEL to GND for I2C mode or VCC for SPI mode.
  • Connecting the LV Side:
  • Connect LV1 to the corresponding channel on the LV-side device (e.g., I2C or SPI bus).
  • Connect LV2 to the corresponding channel on the LV-side device (e.g., I2C or SPI bus).
  • Connect LVC to the clock pin of the LV-side device (e.g., I2C or SPI clock).
  • Connect LVD to the data pin of the LV-side device (e.g., I2C or SPI data).
  • Connect LV3 and LV4 to the corresponding channels on the LV-side device (e.g., I2C or SPI bus).
  • Connecting the HV Side:
  • Connect HV1 to the corresponding channel on the HV-side device (e.g., I2C or SPI bus).
  • Connect HV2 to the corresponding channel on the HV-side device (e.g., I2C or SPI bus).
  • Connect HVC to the clock pin of the HV-side device (e.g., I2C or SPI clock).
  • Connect HVD to the data pin of the HV-side device (e.g., I2C or SPI data).
  • Connect HV3 and HV4 to the corresponding channels on the HV-side device (e.g., I2C or SPI bus).
  • Important Note:
  • Ensure that the voltage supplied to the VCC pin is within the specified range (3.3V to 5V) to maintain proper operation.
  • The voltage on the LV side is dependent on the voltage supplied to the VCC pin.
  • Always follow proper safety precautions when working with electronic circuits.

Code Examples

Component Documentation: 4 Channel (I2C or SPI) 3.3V-5V Bi-Directional Logic Level Converter
Overview
The 4 Channel Bi-Directional Logic Level Converter is a versatile component that enables communication between devices with different logic voltage levels. It can convert signals between 3.3V and 5V in both I2C and SPI protocols, making it an ideal solution for a wide range of IoT applications.
Features
4-channel bi-directional conversion
 Supports both I2C and SPI protocols
 Voltage conversion between 3.3V and 5V
 High-speed conversion up to 10MHz
 Low power consumption
 Compact design
Pinout
The component has a total of 10 pins, with the following pinout:
VCC (3.3V or 5V): Power supply voltage
 GND: Ground
 LV1-LV4 (3.3V): Low-voltage input/output pins
 HV1-HV4 (5V): High-voltage input/output pins
Code Examples
### Example 1: Using the Logic Level Converter with Arduino and I2C
In this example, we'll demonstrate how to use the logic level converter to communicate between an Arduino boards (operating at 5V) and an I2C sensor module (operating at 3.3V).
Arduino Code:
```c++
#include <Wire.h>
#define I2C_SENSOR_ADDRESS 0x1A
void setup() {
  Wire.begin(); // Initialize I2C bus
}
void loop() {
  byte data;
  Wire.beginTransmission(I2C_SENSOR_ADDRESS);
  Wire.write(0x00); // Register address
  Wire.endTransmission();
  Wire.requestFrom(I2C_SENSOR_ADDRESS, 1);
  data = Wire.read();
  Serial.print("Sensor data: ");
  Serial.println(data, HEX);
  delay(1000);
}
```
Connection:
Connect VCC to Arduino's 5V pin
 Connect GND to Arduino's GND pin
 Connect LV1 (I2C SCL) to Arduino's SCL pin
 Connect LV2 (I2C SDA) to Arduino's SDA pin
 Connect HV1 (I2C SCL) to I2C sensor module's SCL pin
 Connect HV2 (I2C SDA) to I2C sensor module's SDA pin
### Example 2: Using the Logic Level Converter with Raspberry Pi and SPI
In this example, we'll demonstrate how to use the logic level converter to communicate between a Raspberry Pi (operating at 3.3V) and an SPI peripheral device (operating at 5V).
Python Code (Raspberry Pi):
```python
import spidev
spi = spidev.SpiDev()
spi.open(0, 0)  # Open SPI bus 0, chip select 0
def read_data():
  resp = spi.xfer2([0x01, 0x02, 0x03, 0x04])
  return resp
while True:
  data = read_data()
  print("SPI data:", data)
  time.sleep(1)
```
Connection:
Connect VCC to Raspberry Pi's 3.3V pin
 Connect GND to Raspberry Pi's GND pin
 Connect LV1 (SPI SCLK) to Raspberry Pi's SPI CLK pin
 Connect LV2 (SPI MISO) to Raspberry Pi's SPI MISO pin
 Connect LV3 (SPI MOSI) to Raspberry Pi's SPI MOSI pin
 Connect HV1 (SPI SCLK) to SPI peripheral device's SCLK pin
 Connect HV2 (SPI MISO) to SPI peripheral device's MISO pin
 Connect HV3 (SPI MOSI) to SPI peripheral device's MOSI pin
Note: These code examples are for demonstration purposes only and may require modification to suit your specific project requirements. Always ensure the correct voltage levels and communication protocols are used when working with IoT components.