If you're not familiar with WLED, WLED is an open-source firmware designed to control addressable LED strips (such as WS2812B, SK6812, and similar) using ESP8266 or ESP32 microcontrollers. It provides an easy-to-use web interface, mobile app, and integration with smart home systems like Home Assistant, Alexa, and MQTT, allowing users to create stunning lighting effects without complex programming. With features like presets, playlists, real-time control via UDP, and compatibility with popular effects libraries, WLED has become a go-to solution for DIY lighting projects, ambient room setups, and creative installations. Its lightweight design, active community, and continuous development make it one of the most popular and versatile LED control platforms available.
You can find many WLED lamp builds online, most of which are custom solutions. These typically require combining an ESP32 with a power converter, as well as designing a custom PCB. To simplify these kinds of LED projects, Seeed Studio has introduced an LED driver board for the Seeed Studio XIAO, which features a plug-and-play design. In this project, we will utilise this LED driver board to build an RGB WiFi LED lamp with WLED. So let’s get to it
- Seeed Studio XIAO ESP32C3
- LED driver board for Seeed Studio XIAO
- WS2812B 5V 60 LED/M
- 12V 2A DC adapter
- Connecting wires
To do this, go to the WLED installation page on GitHub; you can find the link in my description. Connect your XIAO ESP32-C3 to your computer, select "ESP32-C3" as the board type, click "Install, " and choose your XIAO from the port options. After installing, enter your Wi-Fi password and SSID, and click "OK."
My previous blog hear it will help you install WLED
https://www.hackster.io/Gokux/how-to-flash-wled-on-xiao-esp32-c3-db5a55
We can use the WLED Android app to control this LED lamp. To ensure that all LEDs work by default without any additional configuration, we need to adjust certain settings. WLED has the default settings to control 30 LEDs, but we want to increase this to 60 LEDs. The DATA IN pin for the WS2812b is connected to GPIO 2 (D0) of the XIAO, so no changes are needed to that connection. The only modification required is to update the number of LEDs configured in the app.
3D PrintingAll the components of this project are 3D printed, consisting of three main parts:
1. LED Diffuser
2. LED Support
3. Lamp Base
The LED Diffuser and LED Support should be printed in white, while the Lamp Base can be printed in any colour of your choice. For the diffuser, it is recommended to use a semi-transparent filament.
Assembly1. Attach XIAO onto the WLED driver board also make sure to power on the driver by the slide switch
2. Use an M2.5 screw to secure the PCB onto the base
3. Attach the antenna
4. Connect the LED wire to the driver
5v to 5v
A0 to DIN
GND to GND
5. Use three M3 screw to secure the LED support to the base
6. Stick the LED strip around the LED support
7. Put the Diffuser over it
8. Use a 12V source to power up everything
9. Use the WLED app to configure and control the lamp. Ensure that both the lamp and phone are connected to the same network to control the lamp via the app.
There are many things you can do with WLED, such as home automation and DMX control. You can experiment with different colours and patterns, as well as configure on and off times. There's even more to explore in the app—just play around with it!
Comments