WLED integration - tuanchris/dune-weaver GitHub Wiki
Overview
Overview
Dune-Weaver integrates with WLED, an open-source firmware for ESP8266/ESP32-based LED controllers, allowing automation of lighting effects. You would need a separate ESP32 to control your addressable LED.
If you have WLED integration configured, your Dune Weaver will have the following light effects:
- Loading effect when the table is booting up
- Blinking green, signalling boot up completion
- Idle effect of your choosing (using WLED playlist or preset)
- Playing effect of your choosing (using WLED playlist or preset)
This guide walks you through:
- Installing WLED on an ESP32
- Wiring
- Setting up WLED with Dune-Weaver
- Configuring playlists for automated lighting control
Installing WLED
- Connect your ESP32 board to your computer via USB.
- Open WLED Web Installer in Google Chrome or Edge.
- Click “Install”, select your ESP32 device, and follow the instructions.
Setting up WLED Wi-Fi
- Use a WiFi device to connect to the access point WLED-AP using the default password
wled1234
- Click on the Config (gear) icon to edit your WLED module settings and choose "Wifi Setup".
- For most home networks, simply enter your Wifi network's name and network password. You can also change the mDNS address for your WLED module here.
- Click Save & Connect at the bottom of the page.
- Reconnect your device to your home's Wifi network.
- Check the device list in your router's user interface for the IP of the WLED device within your local network. For easy automatic discovery, use the WLED Native app! Have fun with the WLED software!
- You would want to set the wled ip to a static one (configured with your router), so the IP address does not change after every reboot.
Wiring
- An ESP32 can be powered with usb or 3.3/5V pins.
- If you are using addressable leds, be mindful of your led's power inpu (12V or 5V). You like will need a sperate power supply for you LED.
- you will need to share a ground pin from your ESP32 to your LED
Setting up WLED with Dune Weaver
- Go to settings and configure your WLED IP addres as follow:
- Now go to the WLED UI. We would want to set up two playlists, with id 1 -> Idle, and id 2 -> Playing. You must follow this ID assignment for the code to work.
- Here's a simple set up for Idle, auto turn off after 2 minutes:
- Here's a set up for the playing effect:
- That's it! You can customize the playlists to your heart's content. If you opt to go for preset, that will work, but you will not have the same level of control.