RGB LED (common cathode) with ESP32
Supply 3.3 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| R | Input (the ESP32 drives it) | D25 | Red, through a 220 Ω resistor |
| GND | Ground | GND | Longest leg, common cathode |
| G | Input (the ESP32 drives it) | D26 | Green, through a 220 Ω resistor |
| B | Input (the ESP32 drives it) | D27 | Blue, through a 220 Ω resistor |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Generic 5 mm RGB LED datasheet, Leg order R, common (longest), G, B
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.