WS2811 12 V addressable LED strip with ESP32
Supply 12 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| 12V | Not wired to the ESP32 | — | 12 V from a separate supply. Never to the ESP32 |
| DIN | Input (the ESP32 drives it) | D25 | Data in. A 3.3 V to 5 V level shifter makes it reliable |
| GND | Ground | GND | Share it with the 12 V supply and the ESP32 GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Starter code (Arduino)
void setup() { pinMode(25, OUTPUT); } // DIN
void loop() {
digitalWrite(25, HIGH);
delay(500);
digitalWrite(25, LOW);
delay(500);
}
Sources
- Worldsemi WS2811 datasheet, One IC drives 3 LEDs (one pixel); data input high level 0.7 × VDD
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)LED bar graph 10 segmentsNeoPixel Stick 8 LEDs
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.