LED bar graph 10 segments with ESP32

Supply 3.3-5 V Bus GPIO
A1A2A3A4A5A6A7A8A9A10K1K2K3K4K5K6K7K8K9K10

Pins and ESP32 wiring

PinRoleESP32 pinNotes
A1Input (the ESP32 drives it)D25Anode, through a 220 Ω resistor. Which side is anode varies: check with a multimeter (diode mode)
A2Input (the ESP32 drives it)D26
A3Input (the ESP32 drives it)D27
A4Input (the ESP32 drives it)D32
A5Input (the ESP32 drives it)D33
A6Input (the ESP32 drives it)D23
A7Input (the ESP32 drives it)D19
A8Input (the ESP32 drives it)D18
A9Input (the ESP32 drives it)D4
A10Input (the ESP32 drives it)D13
K1GroundGNDCathode: to GND
K2GroundGND
K3GroundGND
K4GroundGND
K5GroundGND
K6GroundGND
K7GroundGND
K8GroundGND
K9GroundGND
K10GroundGND

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.