hardware · wled-controller

WLED controller

Three addressable LED strips, one safe cased box, all in Home Assistant through WLED.

Top view of the WLED controller
Bottom view of the WLED controller, where the factory places the small parts
Every SMD part is underneath for one-pass assembly, including the chip that lifts 3.3 V data to the 5 V the strips expect. The 68 uH coil is on top because JLC stocks power inductors only as extended parts.

An 81 x 37 mm KiCad PCB that runs three 12 V addressable LED strips from a Wemos D1 mini socket. It takes 12 V in, steps it down to 5 V for the D1 mini, shifts the data lines to 5 V, and fuses each output with a 3 A PTC. It ships in a 3D-printed wall-mount case with a grille for an INMP441 microphone.

Specs

  • Wire it backwards, nothing burns

    J1
    C1

    Q1 to Q4 AO3400A · R5/R6 10k/10k bias the gates to about 6 V · D1 SMBJ15A TVS

    Four N-channel MOSFETs in the ground return only switch on when 12 V arrives the right way round. In parallel they share the full 9 A at about 0.15 W each.

  • 5 V for the brain, from 12 V

    L1
    C4

    XL1509-5.0 · 68 uH 2.5 A+ radial · 220 uF 25 V low-ESR · D3 stops USB back-feed

    An XL1509 buck makes 5 V for the D1 mini. The 220 uF electrolytic is on purpose: this chip needs some output ESR, and ceramics alone don't give it.

  • Every strip gets its own fuse

    J2
    J3
    J4
    F1
    F2
    F3

    MF-RHT300 hold current: 3.0 A at 23 °C · 2.65 A at 40 °C · 2.4 A at 50 °C

    Each output has its own 3 A resettable fuse, so one shorted strip trips alone. The fuses sit under the lid vents because a warm PTC holds less current.

  • Pick the brain later

    U2

    Two 1x8 sockets · CH1 on GPIO2, the ESP8266's second UART · 9 mm no-copper zone under the antenna

    The controller sits in sockets, so an ESP8266 D1 mini or an ESP32 MiniKit drops in. RX stays free, so USB flashing never clashes with a strip.

  • Lights that hear the room

    J5

    INMP441 I2S mic header, sound-reactive WLED needs an ESP32

    With an ESP32, an INMP441 mic stood upright behind the grille lets the strips react to sound.

  • Reverse-polarity guard

    Q1
    Q2
    Q3
    Q4
    R5
    R6
    D1

    4x AO3400A in the ground return · SMBJ15A TVS

    Q1 to Q4 sit in parallel between the input ground and the board ground. R5/R6 bias their gates to about 6 V, so reversed 12 V leaves them off and the board unpowered. D1 clamps surges.

  • 12 V to 5 V buck

    U1
    D2
    D3

    XL1509-5.0 with 68 uH 2.5 A+ inductor

    Steps 12 V down to 5 V for the D1 mini with an SS34 catch diode. D3 feeds the D1 mini's 5V pin, so plugging in USB does not back-feed the buck.

  • Level-shifted data

    U3
    R1
    R2
    R3

    SN74LVC4245A shifts 3.3 V data to 5 V

    Each output carries 12 V, data and GND. Data comes from D4, D2 and D1 through an SN74LVC4245A level shifter and a 100 ohm series resistor.

Downloads

Build notes

  1. Trim every through-hole lead under the board to 2 mm or less.
  2. Screw the board to the base at H1 and H2 with two M3x6 self-tapping screws.
  3. Plug in the D1 mini (an ESP8266 D1 mini or an ESP32 MH-ET Live MiniKit) and wire the terminals.
  4. Fit the lid with four M3x12 self-tapping screws into the corner bosses.
  5. The INMP441 microphone cannot lie flat on J5. Stand it upright on a right-angle header (about 16 mm tall) with its sound port facing the grille, or run it on short wires. Sound-reactive WLED needs an ESP32.
  6. Print in PETG with a 0.4 mm nozzle, 0.2 mm layers, 3 walls and 20 % infill, no supports. Print the base upright and the lid top face down.
  7. In a closed case near the 12 V trunk, plan on about 2.4 A continuous per LED channel: the PTC fuses lose hold current as they warm up.