LED controller
WLED
WLED is an LED controller over Wi-Fi. What OAV knows about it, each fact with the page it was read from, how to set it up, what goes wrong, and the code that reaches it.
Also called: WLED firmware · ESP32 LED controller · ESP8266 LED controller · LED strip controller · 燈條控制器
- hand-written record
- not checked on a unit yet
- Kind
- LED controller
- Manufacturer
- WLED project
- Connections
- Wi-Fi
- Protocols
- DDP · sACN (E1.31) · Art-Net · TPM2.net · WLED UDP realtime · HTTP · JSON API · MQTT
- Licence
- MIT
- Verified
- not checked on a unit yet
Facts
What WLED is
Each value is read from the page in its row. What could not be read is under “To be confirmed”, not guessed.
| Fact | Value | Source |
|---|---|---|
| What it is | firmware: a webserver on an ESP32 (or ESP8266) that drives LED strips | WLED Knowledge Base (kno.wled.ge): home |
| LED outputs | up to 3 outputs per ESP8266, up to 10 per ESP32 | WLED Knowledge Base (kno.wled.ge): home |
| Wi-Fi | Access Point and station mode, with an automatic failsafe AP | WLED Knowledge Base (kno.wled.ge): home |
| Real-time protocols | E1.31, Art-Net, DDP, TPM2.net, UDP realtime | WLED Knowledge Base (kno.wled.ge): home |
| Control APIs | JSON API, HTTP request API, MQTT | WLED Knowledge Base (kno.wled.ge): home |
| DDP port | 4048 UDP portWLED listens for DDP packets on port 4048 and does not read the optional timecodes in the header. | WLED Knowledge Base: DDP |
| LEDs per universe | 170510 DMX channels per universe (E1.31, Art-Net). | WLED Knowledge Base: E1.31 (DMX) / Art-Net |
| Universes | 9Up to 9 adjacent universes; no more than 3 universes (510 LEDs) for a smooth 25 ms (40 fps) frame rate. | WLED Knowledge Base: E1.31 (DMX) / Art-Net |
| DMX modes | Disabled, Single RGB, Single DRGB, Effect, Effect + White, Effect Segment, Effect Segment + White, Multiple RGB, Multiple RGBW, Dimmer + Multi RGB, Dimmer + Multi RGBW, PresetMultiple RGB is the default: 3 channels per LED. | WLED Knowledge Base: E1.31 (DMX) / Art-Net |
| Two senders | E1.31 priority is set in the UI; higher-priority senders override lower ones with a 3 s timeout; senders of the same priority are not merged (no HTP). | WLED Knowledge Base: E1.31 (DMX) / Art-Net |
Connect
How it plugs in and what it speaks
Connections
Wi-Fi
Protocols
DDP · sACN (E1.31) · Art-Net · TPM2.net · WLED UDP realtime · HTTP · JSON API · MQTT
Setup
Set it up
- For DDP, give the out-bridge a ddp route to the WLED's address: { "match": "light/*", "sink": "ddp", "host": "192.168.1.50", "port": 4048, "pixels": 60 }; light/<i>/r|g|b, 0..1, is pixel i from 0. open-audiovisual: packages/out README (the ddp sink, its config, WLED's fallback)
- For Art-Net or E1.31 instead, switch WLED to that mode in its Sync settings and reboot it once, then send through the out-bridge's artnet or sacn sink. WLED Knowledge Base: E1.31 (DMX) / Art-Net
Known problems
- WLED goes back to its own effect about 2.5 s after the last DDP packet, on top of the bridge's watchdog: a page that stops sending loses the strip. open-audiovisual: packages/out README (the ddp sink, its config, WLED's fallback)
- Two senders at the same E1.31 priority are not merged: one page and a lighting desk on one strip fight. WLED Knowledge Base: E1.31 (DMX) / Art-Net
Use it
WLED in your code
Paste it into a <script type="module"> on any page: it loads the packages from this site. It asks for nothing until you press the button it adds.
import { device } from 'https://openaudiovisual.com/packages/devices/index.js';
import { OutClient } from 'https://openaudiovisual.com/packages/out/client.js';
const strip = await device('wled'); // WLED
console.log(strip.record.use.map((u) => `${u.package} ${u.sink}`).join(', '));
// → @openav/out ddp, @openav/dmx artnet
const button = document.body.appendChild(Object.assign(document.createElement('button'), { textContent: "Pixel 0 red" }));
button.onclick = () => new OutClient({ url: 'ws://127.0.0.1:6450/out' }).connect().set('light/0/r', 1); // through the out-bridge, out.json belowWhat reaches it
@openav/out·OutClient· sinkddpnew OutClient({ url: 'ws://127.0.0.1:6450/out' }).connect().set('light/0/r', 1)Page values go to the out-bridge, whose ddp sink packs light/<i>/r|g|b into DDP for the strip, at most 60 times a second, with a watchdog.
@openav/dmx·dmxTransport· sinkartnetdmxTransport('bridge', { patch, client })Patched as RGB fixtures, the strip takes the DMX engine's looks through the out-bridge's artnet (or sacn) sink, with the flash cap.
Files
Take it with you
The record (JSON, open-audiovisual/device@1): the facts with their sources, the setup steps, the problems and the code that reaches it. Other tools can read it with the JSON Schema.
An out-bridge config (out.json) with the route for this device: node packages/out/bridge/out-bridge.mjs --config out.json. Change the address or the port to yours.
Status
How sure this page is
Not checked on a unit yet: every value is as its source says. Only a person with the unit can change that.
To be confirmed
- Ethernet: the knowledge base has a page on Ethernet (LAN) boards that was not read, so only Wi-Fi is listed.
- The 2.5 s fallback is what the out-bridge's notes say; the DDP page that was read does not give a number.
Sources
- WLED Knowledge Base (kno.wled.ge): home read 2026-11-25
- WLED Knowledge Base: DDP read 2026-11-25
- WLED Knowledge Base: E1.31 (DMX) / Art-Net read 2026-11-25
- open-audiovisual: packages/out README (the ddp sink, its config, WLED's fallback) read 2026-11-25
GitHub
Wrong data?
Every value on this page comes from one file in the repository. Open an issue that says which value and where you read the right one, or change the file in a pull request.