Updating WLED Binary on ESP32-C3 Devices

I recently bought a WLED controller based on the ESP32-C3 microcontroller. It has a button and a 3-pin connector for NeoPixel-style LEDs (WS281x). Once connected to Wi-Fi, this device gives you full access to the configuration, colors, and effects via the WLED app. My goal is to update its code to the latest version of WLED… and maybe connect it to CheerLights.

ESP32-C3 WLED controller with a button, held in front of the WLED app color wheel, driving a lit cyan LED strip

WLED Installation on Windows

  • Download ‘esptool.exe’ app from the esptool releases area.
  • Download the latest release of WLED for the device that you are using.
  • Plug in the device and note the COM port.
  • Open the Command Prompt and enter this command:
esptool.exe -p COMXXXXX write_flash 0x010000 WLED_0.14.4_ESP32-C3.bin

Note: Change COMXXXXX to the actual COM port that your device is connected to. If your ESP device is on COM 9, then this would be COM9.

Here’s what it looks like when everything works successfully on Windows:

Command Prompt running esptool.exe to flash WLED_0.14.4_ESP32-C3.bin to an ESP32-C3 on COM9, ending with hash verified

WLED Configuration

This device’s button is on GPIO 9, and the data pin for LED lights is on GPIO 10. I need to set these in the WLED configuration for the lights to work.

  • From WLED, select Config -> LED Preferences.
  • Under LED outputs, enter ’10’ into the GPIO box.
WLED LED Preferences hardware setup with a WS281x output, GRB color order, length 30, and GPIO 10
WLED LED Settings
  • Scroll down to the GPIO button sections.
  • Select 9 for Button 0 and set to pushbutton.
WLED button settings with Button 0 on GPIO 9 set to Pushbutton and Buttons 1 to 3 unused
WLED Button Settings
  • Scroll to the bottom and select Save.

CheerLights Settings (optional)

If (and when) you want to connect this WLED controller to CheerLights, just add the CheerLights MQTT server address to the Sync Interfaces. For MQTT to work, you will need to cycle the power going to the board (i.e., unplug and plug back in).

WLED MQTT settings with MQTT enabled, broker mqtt.cheerlights.com on port 1883, device topic wled, group topic wled/all
WLED Settings for CheerLights

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.