WLED for Mere Mortals
A strip of addressable LEDs is a string of lights that can each be a different colour — but the strip itself is dumb. It needs a conductor. WLED is the conductor: firmware you flash onto a microcontroller board that costs about as much as a sandwich (an ESP32, or its older sibling the ESP8266), which then joins your Wi-Fi and becomes a complete light controller — web page, phone app, hundreds of effects, timers, and an open API — with no hub, no cloud account, and nothing else left switched on.
This guide explains what WLED is and how it is put together, walks the hardware honestly (including the power arithmetic that keeps installations safe), and then does something most lighting guides cannot: it takes the firmware apart in a lab. The lab that wrote this guide had no board and no strip — nothing here was flashed and nothing glowed. Instead, it downloaded the project's own source code at the 16.0.1 release and did the two things that can be done completely honestly without hardware:
It compiled the real firmware for both chip families, with the project's own build system, and measured the resulting images — their sizes against the flash they must fit in, for the ESP32 and the ESP8266 alike.
And it read the source for
everything the guide states as fact:
the effect table (220 slots, 216 real
effects, 4 slots deliberately left
reserved), the palette table (72 built
in), the exact JSON the API exchanges,
and the two files — cfg.json and
presets.json — where a device's whole
life is stored.
What could not be done without hardware
— flashing a board, watching it light
30 LEDs orange, clicking through the
setup — is written from the project's
own documentation and labelled as
documented-only wherever it appears.
criteria.md keeps the full ledger.
What this guide covers
- What WLED is — firmware that turns a five-dollar microcontroller into a finished light controller, and what "addressable" really buys you
- The moving parts — the effect engine, the outputs, the two settings files, and the web pages baked into the chip
- The hardware — ESP32 versus ESP8266, the strip families, the right pins, and the level shifter that separates reliable from flickery
- Power and wiring — the 60 mA rule, power supplies, voltage drop, injection, fuses, and WLED's own brightness limiter
- Installing WLED — the web installer, flashing a release binary, and over-the-air updates
- First setup — the WLED-AP onboarding, naming your device, and finding it again
- The web UI and the app — the control page, the settings pages, and the built-in side rooms
- Segments — one strip, several zones, each with its own effect: the idea that makes WLED WLED
- Effects and palettes — 216 effects and 72 palettes, counted in the source rather than quoted from a brochure
- Presets, playlists and timers — saved looks, running orders, sunsets, and the nightlight
- The JSON API — the state and info objects, key by key, from the code that writes them
- Sync and integrations — devices that follow each other, buttons, MQTT, Home Assistant, Hue, and the stage-lighting doors
- Building WLED from source — the lab chapter: PlatformIO, the two builds, and what the numbers prove
- Recipes — sunset porch lights, two rooms one gesture, a door button, a script, a holiday rotation
- The neighbours — ESPHome, programming it yourself, shop-bought strips, and the holiday-display world
- Limits — Wi-Fi only, no accounts, build-dependent effects, and this guide's own limits
- Troubleshooting — dark strips, rogue first LEDs, orange far ends, and clocks that lie
How to use this guide
Read chapters 1 and 2 for the model —
knowing which part holds what turns
later confusion into a named problem.
Chapter 3 before buying anything, and
chapter 4 twice: once before choosing a
power supply and once before wiring.
Chapters 5 and 6 get a board flashed
and named. After that, read by need:
segments (8) before effects (9),
presets (10) before automating
anything, and chapter 13 whenever
someone tells you a firmware number you
would like to check. The lab's
transcripts and dissection notes live
in wled-lab/.
Part of the series
This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.
Related guides:
- ESPHome for Mere Mortals
- ESP32 for Mere Mortals
- Home Assistant for Mere Mortals
- MQTT for Mere Mortals
- PlatformIO for Mere Mortals
License
The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.