LCD 16x2 (parallel, 16 pins) with ESP32
Supply 5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VSS | Ground | GND | |
| VDD | Power | VIN | Needs 5 V: use VIN |
| V0 | Not wired to the ESP32 | — | Contrast: to the middle of a 10 kΩ potentiometer |
| RS | Input (the ESP32 drives it) | D25 | Register select |
| RW | Ground | GND | Tie to GND (write only), so the LCD never drives 5 V into the ESP32 |
| E | Input (the ESP32 drives it) | D26 | Enable |
| D0 | Not wired to the ESP32 | — | Not used in 4-bit mode |
| D1 | Not wired to the ESP32 | — | Not used in 4-bit mode |
| D2 | Not wired to the ESP32 | — | Not used in 4-bit mode |
| D3 | Not wired to the ESP32 | — | Not used in 4-bit mode |
| D4 | Input (the ESP32 drives it) | D27 | |
| D5 | Input (the ESP32 drives it) | D32 | |
| D6 | Input (the ESP32 drives it) | D33 | |
| D7 | Input (the ESP32 drives it) | D23 | |
| A | Not wired to the ESP32 | — | Backlight anode: to 5 V (most modules have a resistor) |
| K | Not wired to the ESP32 | — | Backlight cathode: to GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.
Sources
- Hitachi HD44780U datasheet, Pin functions RS, R/W, E, DB0-DB7; 4-bit interface
- Generic 1602 LCD module datasheet, Pin 1 VSS to 16 K
Try it in 3D in BoardPilot
Related parts
7-segment 4 digits 0.56" common cathode (12 pins)7-segment digit 0.56" common anode7-segment digit 0.56" common cathodeLED bar graph 10 segmentsNeoPixel Stick 8 LEDsSK6812 RGBW addressable LED strip
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.