/daliMaster

Control your lamps with a Dali shield for Arduino™

Primary LanguageC++MIT LicenseMIT

daliMaster

This is an Arduino™ library to control your DALI lamps with the brand new daliMaster shield, with built-in DALI bus power supply system. B:boom::boom:m!
Do you want to use this board with your Raspberry Pi also? Take a look here..double B:boom::boom:m!

Description

What is DALI?

DALI (Digital Addressable Lighting Interface) is a powerful protocol to control lighting. Through DALI you can dimmer your led lamps, ask them status, recall a predefined scenario and so on. If you want more information about DALI you can find many useful links to the bottom of this page.

Can I use DALI with my Arduino™?

Well, the answer is YES.

How?

With daliMaster shield! As the name suggests, that shield transforms your Arduino™ in a DALI master, acting as a bridge between I2C interface and DALI bus. Let's make an example to explain how it works.

Getting Started

  • Fit daliMaster shield on your Arduino™

  • Make connections (you can find an example here)

    • Connect your lamps to their ballasts
    • Connect your ballast to mains..be careful!
    • Connect your ballasts and daliMaster shield to DALI bus
    • Connect your 24V DC power supply to mains and to daliMaster..again, be careful!
  • If I'm right, now you should have all of lamps on. Let's turn them off.

  • Connect Arduino™ to your computer.

  • Download this library and load daliMaster/examples/serialControl.ino

  • Now open serial monitor, select 115000 as baudrate and you should see:

daliMaster start..
i2c master begin..
device(0x23) is ready!
  • Well, write and send this command:
-d -b 0
  • If everything went well your lamps now are off. But we don't like darkness, so let's switch them on to the minimum:
-d -b 1
  • Cool! Let's push them to maximum:
-d -b 254

Easy, isn't it? Now you can modulate all lamps from 0 up to 254 with those simple commands. 👍

Next

See more informations about serial commands here. See other examples to play with your lamps (I suggest to try Pulse.ino). See also the following links to know more about DALI and LW14, the chip from which the daliMaster is powered by.

Useful links

LW14

DALI

Built With

Versioning

  • v.1 First release 21/01/2018

Credits

  • Code Mercenaries - Original Raspberry Pi library for LW14 Modules - LED-Warrior14

see credits.md file for details.

License

This project is licensed under the MIT License - see the LICENSE.md file for details