Raspberry Pi DALI master controller Hat from ATX LED











Raspberry Pi DALI Hat

Description

Our AL-DALI-HAT DALI master Controller connects your Raspberry Pi to LED lighting via the internationally used DALI bus, Digital Addressible Lighting Interface - you can read about DALI here on Wikipedia The DALI bus is not natively compatible with the GPIO pins of the Raspberry Pi - so our DALI HAT handles the interface.

Our AL-DALI-HAT DALI gateway has a microprocessor onboard to convert the Pi serial port ( TTYS0 at 19200 baud, one stop bit, no parity ) to the Manchester encoding and 16 volt signals used by DALI. You send ASCII strings to the Hat, it transmits them as DALI, then converts the responses to ASCII strings for the response.

We have provided sample code in Python to run on the Raspberry Pi, you can turn any light on/off or dim in individual, group or broadcast modes

The Pi has 2 serial ports - the one that we are connected to is on the 40 pin header pins 8 and 10. Then Pi now can turn lights on the DALI bus on, off, dim - can set fade rates and all other DALI features. Any DALI device can be addressed and configured.

A separately available complete DALI software package called LorControl can be installed on the Pi to assign short addresses, read advanced parameters and provide a friendly user interface, and communicate to Alexa or Google Home. Today, on this page, we are simply showing the basic code to get the hardware working for you.

We like to run the Monitor_DALI.py at startup automatically - you can do this by editing the autostart file and entering the run command edit this file: ~/.config/lxsession/LXDE-pi/autostart add this line at the end: @lxterminal --title=DALI_Monitor --geometry=70x66 --command python /home/pi/Monitor_DALI.py

Raspberry Pi code Samples

Example Type
link
Screen Shot Sample
DALI
tar
   Download    
F    Download    
Fixture On Off    Download    
Monitor DALI    Download    Monitor DALI
screen
   Download    
Read UPC SN    Download    
Send Raw DALI    Download    
Set Fixture Fade    Download    
Set Fixture Minimum    Download    

LorControl Sample User Interface