WS2811 12 V addressable LED strip with ESP32

Supply 12 V Bus GPIO
12VDINGND

Pins and ESP32 wiring

PinRoleESP32 pinNotes
12VNot wired to the ESP32—12 V from a separate supply. Never to the ESP32
DINInput (the ESP32 drives it)D25Data in. A 3.3 V to 5 V level shifter makes it reliable
GNDGroundGNDShare 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

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.