← Back

Music-reactive LED strip

Built on XDAI built a cheap music-controlled RGB LED strip with ESP32 and it's better than any store-bought oneBy Samir Makwana
ESP32-DevKitC V4

WS2812B LED strip, 60 LEDs (1m)

DINGPIO4resistorGNDGND5V5V supply

INMP441 I2S microphone

VDD3V3GNDGNDSDGPIO32L/RGNDWSGPIO25SCKGPIO26

Compatibility checks

1 warning

  • WS2812B LED strip, 60 LEDs needs its own 5V supply.

Wiring steps

  1. 1

    Optional: Solder headers onto INMP441 I2S microphone.

  2. 2

    Solder wires to the pads on WS2812B LED strip, 60 LEDs.

  3. 3

    Push the board into the breadboard.

  4. 4

    Plug the 5V supply into the screw terminal adapter. Connect its ground to GND on WS2812B LED strip, 60 LEDs.

  5. 5

    Put the 470 Ω resistor in the data line near DIN on WS2812B LED strip, 60 LEDs.

  6. 6

    Connect the 1000 µF capacitor across power and GND on WS2812B LED strip, 60 LEDs, with the negative leg to GND.

  7. 7

    WS2812B LED strip, 60 LEDs

    • GNDtoGND
    • 5Vtothe 5V supply
    • DINtoGPIO4through a 470 Ω resistor
  8. 8

    INMP441 I2S microphone

    • GNDtoGND
    • VDDto3V3
    • SCKtoGPIO26
    • WStoGPIO25
    • SDtoGPIO32
    • L/RtoGND
  9. 9

    Plug in the USB cable last.

Code

Runs WLED. Setup instructions

Some board drawings are from Wokwi and Seeed Studio.