Logic level converter 4 channels (BSS138) with ESP32
Supply 3.3 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| LV1 | Not wired to the ESP32 | — | Low-voltage (3.3 V) side, channel 1. Bidirectional: to an ESP32 GPIO |
| LV2 | Not wired to the ESP32 | — | Low-voltage side, channel 2 |
| LV | Power | 3V3 | 3V3 |
| GND | Ground | GND | |
| LV3 | Not wired to the ESP32 | — | Low-voltage side, channel 3 |
| LV4 | Not wired to the ESP32 | — | Low-voltage side, channel 4 |
| HV1 | Not wired to the ESP32 | — | High-voltage (5 V) side, channel 1 |
| HV2 | Not wired to the ESP32 | — | High-voltage side, channel 2 |
| HV | Not wired to the ESP32 | — | 5 V: to VIN or the 5 V supply |
| GND2 | Ground | GND | Second GND pad on the high-voltage side |
| HV3 | Not wired to the ESP32 | — | High-voltage side, channel 3 |
| HV4 | Not wired to the ESP32 | — | High-voltage side, channel 4. Slow edges: fine for I2C, too slow for WS2812 |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- SparkFun Logic Level Converter (BOB-12009) hookup guide, LV and HV sides, BSS138 with 10 kΩ pull-ups
- NXP AN10441 level shifting in I2C-bus systems, MOSFET bidirectional level shifter
Try it in 3D in BoardPilot
Related parts
18650 Li-ion cell in holder28BYJ-48 stepper + ULN2003 driver433 MHz transmitter (FS1000A)74HC595 shift registerA4988 stepper driverActive buzzer
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.