open-audiovisual
Search GitHub

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.

FactValueSource
What it isfirmware: a webserver on an ESP32 (or ESP8266) that drives LED stripsWLED Knowledge Base (kno.wled.ge): home
LED outputsup to 3 outputs per ESP8266, up to 10 per ESP32WLED Knowledge Base (kno.wled.ge): home
Wi-FiAccess Point and station mode, with an automatic failsafe APWLED Knowledge Base (kno.wled.ge): home
Real-time protocolsE1.31, Art-Net, DDP, TPM2.net, UDP realtimeWLED Knowledge Base (kno.wled.ge): home
Control APIsJSON API, HTTP request API, MQTTWLED Knowledge Base (kno.wled.ge): home
DDP port4048 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 universe170510 DMX channels per universe (E1.31, Art-Net).WLED Knowledge Base: E1.31 (DMX) / Art-Net
Universes9Up 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 modesDisabled, 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 sendersE1.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

  1. 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)
  2. 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

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.

javascript
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 below

What reaches it

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

Sources

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.

Next step

Where it goes next

The handbook chapter on the collection, and the package that drives WLED.