LED bar graph 10 segments with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| A1 | Input (the ESP32 drives it) | D25 | Anode, through a 220 Ω resistor. Which side is anode varies: check with a multimeter (diode mode) |
| A2 | Input (the ESP32 drives it) | D26 | |
| A3 | Input (the ESP32 drives it) | D27 | |
| A4 | Input (the ESP32 drives it) | D32 | |
| A5 | Input (the ESP32 drives it) | D33 | |
| A6 | Input (the ESP32 drives it) | D23 | |
| A7 | Input (the ESP32 drives it) | D19 | |
| A8 | Input (the ESP32 drives it) | D18 | |
| A9 | Input (the ESP32 drives it) | D4 | |
| A10 | Input (the ESP32 drives it) | D13 | |
| K1 | Ground | GND | Cathode: to GND |
| K2 | Ground | GND | |
| K3 | Ground | GND | |
| K4 | Ground | GND | |
| K5 | Ground | GND | |
| K6 | Ground | GND | |
| K7 | Ground | GND | |
| K8 | Ground | GND | |
| K9 | Ground | GND | |
| K10 | Ground | GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Kingbright DC-10 series bar graph datasheet, Pin connection (anodes one side, cathodes the other)
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 cathodeLCD 16x2 (parallel, 16 pins)NeoPixel Stick 8 LEDsSK6812 RGBW addressable LED strip
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.