Allgemein Mai 25th, 2013
DALI (Digital Addressable Lighting Interface Wikipedia-Artikel) is an open standard for controlling lighting in buildings. shackspace hacker Timm (@timmedia) has built a bus master for DALI based on a TP-Link TLMR3020 mini-router which is the same model that has been targeted previously by project minikrebs. This mini-rounter was combined with some custom electronics and firmware and you can find full schematics and sourcecode on GitHub.
The system consists of a self designed circuit board with a microcontroller, switching voltage regulator, constant current source and the bus interface connected with the router. The circuit board is designed to fit into the housing of the TP-Link router. The router runs a OpenWRT distribution and a webserver with a custom cgi-script. Using UART the router sends commands to the DALI master circuit board.
The main part of the DALI master circuit board is a Atmel AT90PWM316 which has a on-board peripheral to talk DALI frames in hardware. The frames are manchaster encoded with a length of 16 bits in forward direction and 8 bits in backward direction. Because the AT90PWM316 has only one UART interface the connection to the router is handled by an emulated software UART-interface.
The interface will be used to control the beautiful new ceiling lights in shackspace’s recent room addition. As an added bonus, the ceiling lights in one of the rooms also come with built-in RGB LED mood-lights which can be accessed via an easy to use web interface.