7-segment 4 digits 0.56" common cathode (12 pins) with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| E | Input (the ESP32 drives it) | D25 | Segment. Each segment through a 220 Ω resistor |
| D | Input (the ESP32 drives it) | D26 | |
| DP | Input (the ESP32 drives it) | D27 | Decimal point |
| C | Input (the ESP32 drives it) | D32 | |
| G | Input (the ESP32 drives it) | D33 | |
| DIG4 | Input (the ESP32 drives it) | D23 | Digit 4 cathode: LOW = digit on. A transistor per digit is safer (up to 8 segments) |
| B | Input (the ESP32 drives it) | D19 | |
| DIG3 | Input (the ESP32 drives it) | D18 | Digit 3 cathode |
| DIG2 | Input (the ESP32 drives it) | D4 | Digit 2 cathode |
| F | Input (the ESP32 drives it) | D13 | |
| A | Input (the ESP32 drives it) | D14 | |
| DIG1 | Input (the ESP32 drives it) | RX2 | Digit 1 cathode |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- 5641AS 0.56" 4-digit 7-segment datasheet, Pins 1 to 12: E D DP C G D4 B D3 D2 F A D1
Try it in 3D in BoardPilot
Related parts
7-segment digit 0.56" common anode7-segment digit 0.56" common cathodeLCD 16x2 (parallel, 16 pins)LED bar graph 10 segmentsNeoPixel Stick 8 LEDsSK6812 RGBW addressable LED strip
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.