DALI Lighting Control Explained: A Practical Guide
Switch on the lights in a modern office, hotel or hospital and there is a good chance the fittings are not just "on" or "off". They dim to a set level in the morning, brighten when someone walks in, turn down near the windows on sunny days, and report a failed driver to the maintenance team. In many of these buildings, the system doing that work is DALI.
DALI โ the Digital Addressable Lighting Interface โ is an open international standard (IEC 62386) for digital lighting control. This article explains how it works, how DALI-2 and D4i extend it, how to wire and commission a DALI line, and what matters when you design hardware or firmware for it.
Why Digital Lighting Control?
The older and still common way of dimming LED fittings is the analogue 0-10 V / 1-10 V interface. It is simple, but it has clear limits:
- One control signal per zone โ every fitting on that pair of wires does the same thing.
- Changing which fittings belong to which zone means rewiring.
- No feedback โ the controller cannot know if a driver has failed.
- Voltage drop on long runs makes the light level inaccurate.
- On/off still needs a separate relay on the mains supply.
DALI solves these problems by giving every driver its own digital address on a shared two-wire bus. Zones become software settings, not wiring, and the system can ask each device about its status.
How a DALI System Is Built
A DALI line has four kinds of parts:
- Control gear โ usually LED drivers, but also emergency lighting units, relays and colour-control drivers. These are the devices that actually control light.
- Control devices โ in DALI-2, these include application controllers (the "brain" that runs the logic) and input devices such as push-buttons, occupancy sensors and light sensors.
- Bus power supply โ DALI needs a dedicated, current-limited supply on the bus. It may be a separate unit or built into a controller.
- The bus itself โ two wires, often labelled DA+ and DAโ.
The bus at a glance
| Parameter | Value |
|---|---|
| Wires | 2, polarity-insensitive at most control gear |
| Nominal bus voltage | Around 16 V (specified range about 9.5โ22.5 V) |
| Maximum bus current | 250 mA |
| Maximum voltage drop | 2 V across the line |
| Maximum cable length | Typically 300 m with 1.5 mmยฒ conductors |
| Data rate | 1200 bit/s, Manchester (bi-phase) encoded |
| Topology | Line, star, tree or mixed โ no closed loops |
| Termination | None required |
Because the data rate is low, DALI is very tolerant of cable type and topology. There are no terminating resistors and no special twisted-pair cable.
Addresses, groups and scenes
- 64 short addresses (0โ63) for control gear on one line.
- 16 groups โ each driver can belong to any combination of groups, so "Meeting Room", "Window Row" and "All Corridor" can overlap.
- 16 scenes โ each driver stores its own light level for each scene in its memory. One "recall scene 3" command changes the whole room at once.
- Broadcast โ a command to every device on the line.
In DALI-2, control devices (sensors, buttons) have their own separate set of 64 addresses, so a line can hold up to 64 drivers and 64 input devices.
Two-way communication
DALI is not just a command channel. A controller can query each driver for:
- Actual light level
- Lamp or LED failure
- Control gear failure
- Device type, version and settings
This is what makes centralised maintenance and emergency-lighting reporting possible.
What Happens on the Wire
Frames
- Forward frames go from the controller to devices. Commands to control gear use a 16-bit frame (address byte + command or level byte). DALI-2 commands to control devices use a 24-bit frame.
- Backward frames are the 8-bit answers from a device to a query.
Each bit is Manchester encoded, so every bit has a transition in the middle. At 1200 bit/s, each half-bit lasts about 417 ยตs.
Light levels
Light level is sent as an arc power level from 0 to 254, where 0 is off. The default dimming curve is logarithmic: the levels are spread so that each step looks like an equal change to the human eye, which is far more natural than a linear curve. The value 255 ("MASK") means "no change".
Each driver also stores settings such as minimum and maximum level, fade time, power-on level and system failure level โ the light level it goes to if the bus loses power. That last one is an important safety feature: a corridor can be set to stay at full brightness if the control system fails.
Device types
The standard is split into parts. A few common ones:
| Part | Device |
|---|---|
| 202 | Self-contained emergency lighting (with test functions) |
| 207 | LED modules (Device Type 6) |
| 209 | Colour control โ tunable white, RGBW (Device Type 8) |
| 301 | Push-buttons |
| 303 | Occupancy sensors |
| 304 | Light sensors |
DALI-2 and D4i
DALI-2
The original DALI standard left some features open to interpretation, so products from different vendors did not always work well together. DALI-2 tightens the specification, adds the control device parts (controllers, sensors, buttons) and comes with a certification programme run by the DALI Alliance. A DALI-2 certified driver and a DALI-2 certified controller from different manufacturers are tested to work together.
D4i
D4i is a DALI-2 extension for intelligent luminaires. It defines:
- A small bus power supply inside the driver, so a sensor can be mounted directly on the luminaire
- Standard memory banks for luminaire information (manufacturer, model, ratings)
- Energy and power reporting
- Diagnostics โ operating time, start counts, temperature, failure history
For facility managers, this means each luminaire can report how much energy it uses and when it is likely to need maintenance.
Wiring Rules That Prevent Most Problems
- Size the cable for voltage drop. Keep the total drop under 2 V at full bus current. For long runs, use thicker conductors or move the bus supply closer to the middle of the line.
- Respect the 250 mA limit. Add up the current of every device on the bus โ drivers draw a little, but sensors and buttons can draw more. Do not connect two bus supplies unless both are designed to share a line.
- No loops. Any topology works, but the bus must not form a closed ring.
- Treat DALI wiring as mains-rated. DALI is not SELV. In many installations, it is allowed to run in the same multi-core cable as the mains supply, but it must be insulated and handled as if it carries mains voltage. Follow local wiring rules.
- Label lines clearly. Large buildings have many DALI lines, each with its own 64 addresses. Clear panel labelling makes commissioning and maintenance much easier.
Commissioning a DALI Line
Since every driver must have a unique short address, commissioning follows a standard sequence:
- Check the bus โ measure the bus voltage and confirm the power supply is working.
- Address the devices โ the controller runs a random address search: each driver picks a 24-bit random number, and the controller narrows down one device at a time and assigns it a short address.
- Identify fittings โ flash each address in turn and note its physical location on the floor plan.
- Create groups for each zone.
- Store scenes and fade times.
- Set safety levels โ power-on and system-failure levels.
- Link sensors and buttons โ configure occupancy hold times, daylight targets and button actions.
- Test and document โ keep a record of addresses, groups and scenes for future maintenance.
Designing DALI Products: Embedded Notes
If you are building a DALI driver, sensor, controller or gateway, these points decide how reliable the product will be.
- Isolation. The DALI interface should be isolated from the rest of the circuit, usually with optocouplers or digital isolators, because the bus is treated as mains-potential wiring.
- Transmitter. A device sends a "low" by shorting the bus through a transistor; the bus supply's current limit keeps this safe. The transmitter must handle the full 250 mA current.
- Receiver thresholds. The receiver must correctly separate high and low levels within the voltage ranges the standard allows, with hysteresis to reject noise.
- Polarity independence. A bridge rectifier at the input makes the device insensitive to how the installer connected DA+ and DAโ.
- Timing in firmware. Manchester decoding, the gaps required between frames, and the time allowed for a backward frame must all be implemented carefully. A hardware timer with input capture is the usual approach on a microcontroller.
- Multi-master behaviour. DALI-2 allows more than one control device to send on the same bus, so devices that transmit forward frames must detect collisions and back off.
- Non-volatile memory. Addresses, groups, scenes and settings must survive power loss โ plan flash or EEPROM writes so they do not wear out the memory.
- Certification. For a commercial product, plan for DALI-2 testing from the start rather than at the end.
Connecting DALI to the Rest of the Building
DALI controls the lights; the rest of the building often uses something else. Gateways connect DALI lines to:
- BACnet or Modbus, for the building management system (BMS)
- Ethernet, Wi-Fi or MQTT, for cloud dashboards and mobile apps
- DMX or pixel controllers, where architectural or entertainment lighting meets general lighting
This is where lighting becomes a data source โ occupancy, energy use and maintenance data from every fitting.
Troubleshooting Checklist
- No response from any device โ check bus voltage. No voltage means no bus supply, or a short circuit on the line.
- Bus voltage low โ too many devices, too long a cable or too thin a conductor. Recalculate current and voltage drop.
- Some drivers do not respond โ duplicate or missing short addresses. Re-run the address search.
- Lights go to an unexpected level โ the bus may be dropping out and drivers are going to their system-failure level.
- Intermittent errors โ two bus supplies fighting, a loose terminal, or a device that does not meet timing.
- Sensor works but lights do not follow โ check the controller logic and group links, not just the wiring.
Summary
DALI turns lighting into a digital, addressable system: two wires, up to 64 drivers per line, 16 groups and 16 scenes stored in each driver, and two-way feedback for maintenance. DALI-2 brings real multi-vendor interoperability and standard sensors and buttons, and D4i adds energy and diagnostic data from each luminaire.
Get the basics right โ bus current, voltage drop, mains-rated wiring and careful commissioning โ and a DALI installation will stay flexible for the life of the building.
How EmTantra Can Help
At EmTantra Technologies, Mangaluru, we design embedded hardware and firmware for lighting control โ including DALI, DMX and pixel lighting interfaces, controllers, sensor nodes and gateways that connect lighting to building management and IoT platforms.
If you are developing a lighting control product or need a custom DALI interface for your system, get in touch with our team.
Engineering Ideas into Intelligent Products.