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.

IMG_0306 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.

IMG_0304 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.

Platine_ver4 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.

 

 

 

flattr this!



Urspünglich gepostet: Mai 25th, 2013
Tags: Allgemein

Reader's Comments

  1. Daliguy | Juli 6th, 2013 at 00:58

    How did you load the source code into the at90pwm316?

  2. Timm | Juli 10th, 2013 at 08:39

    You need to compile the sources with a tool named “scons”. The “SConstruct”-file is published. After that you can upload the generated hex-file with your favourite programmer to the microcontroller.

  3. DALIguy | Juli 10th, 2013 at 14:42

    Hi Timm

    Thank you.

    I cannot seem to open the board layout in EAGLE it says is not an eagle file. Can you let me know what PCB tool you used to create these files.

    Thanks

  4. hadez | Juli 10th, 2013 at 14:49

    It’s for Eagle 6.3. Starting with Eagle 6 the file format changed from binary to XML.

  5. DALIguy | Juli 10th, 2013 at 15:56

    Hi

    I downloaded Eagle 6.4 for MAC.

    But no joy.

    Thanks

  6. DALIguy | Juli 10th, 2013 at 17:09

    Timm

    I would like to talk to you further about the project do you can you send me your email?

  7. DALIguy | Juli 11th, 2013 at 14:52

    Error:

    line 5, column 6: This is not an EAGLE file.

  8. hadez | Juli 11th, 2013 at 15:56

    make sure that your line endings weren’t mangled during checkout using git. this _could_ potentially cause issues like this.
    Windows uses \r\n, Mac uses \r, Unix uses \n

  9. Daliguy | Juli 12th, 2013 at 00:45

    Thanks the checkout had broken something. Re checked out and it’s working now. Would love to talk about a possible commercial project is there an email for you guys?

  10. hadez | Juli 12th, 2013 at 08:33

    Timm has your email address and might get in touch if time permits :)

  11. Daliguy | Juli 13th, 2013 at 22:12

    Thanks

  12. Rai | August 29th, 2013 at 16:30

    What Inductance (uH) has the component SDR0805 SMD Power Inductor?

    Thank you.

  13. paul | März 2nd, 2014 at 17:00

    hallo,

    wollte fragen ob es möglich wäre an eine genaue bauteilliste für das dali interface zu kommen?
    im eagle file kann ich nicht alle bezeichnungen finden.
    oder gibt es vielleicht sogar nen passenden warenkorb?

    vielen dank

    paul

  14. Timm | März 2nd, 2014 at 21:02

    Hallo Paul,

    ich habe gerade mal die noch nicht ausgecheckten Änderungen auf Github hochgeladen.

    Neu ist auch eine Datei mit Teilen, die ich bei Digikey bestellt habe. Diese Liste ist vermutlich unvollstendig. Da ich mehrere Exemplare von dem Dali-Master aufgebaut habe, habe ich mehrmals bestellt. Ein paar der Bauteile waren vergriffen, deswegen musste ich auf Alternativtypen zurückgreifen. Diese Alternativtypen sind auch in der Liste vorhanden.

    Ich hoffe du kannst damit etwas anfangen.

    Gruß

    Timm

  15. paul | März 4th, 2014 at 16:08

    vielen dank für die rasche antwort.
    wo kann ich denn das file mit der liste finden?

    gruß

    paul

  16. Timm | März 4th, 2014 at 16:56

    Oh, ich habe die Änderungen nur lokal eingecheckt und vergessen sie hochzuladen. Jetzt sollten die Dateien da sein…

Leave a Comment