gebi
Posts: 2
Joined: Wed Apr 18, 2018 6:53 am

Dali Light Management with RaspberryPi

Wed Apr 18, 2018 10:55 am

Dear Raspberry-Users

I'm relatively new to the RaspberryPi community and don't have too much experience with programming, etc in general.

However my first project is rather ambitious and I was hoping for the input of you experts, your general experience with Dali and if there are ready made solutions or if i have to start from scratch.
__________________
I have around 25 Dali Lamps which i want to control individually and in groups with for example EnOcean buttons or others. A Webbrowser-Site or App to control the lamps is ok too.

For Example with 1 button i want to activate lamp 1 to 80% light, with button 2 I want to activate lamp 2 to 60% and lamp 1 to 40% and lamp 3 to 90%, with button 3 i want to activate lamps 1 to 25, with button 4 I want to activate lamp 4 to 100% and lamp 2 to 60%....etc.... you catch my drift.

Additionally all of the lamps or different groups of them should turn off if a light sensor detects a certain amount of light. I'm also thinking about having a proximity sensor per lamp installed, all the sensors should be Dali enabled for this.
___________________

So there are some very expensive software solutions out there but I think it should also be able to achieve with a RaspberryPi.

I was hoping that Kunbus would be finished with his RevPi Controller with Dali, but he says he has some issues buying/getting the Dali License. He estimates he will be able to ship by end of the year, which is sadly too late for me (https://revolution.kunbus.com/gateways/).

So I was hoping you guys might give me some good ideas i could research on?
If my Raspberry is the controller, than I need a DALI readable Interface/OS and a module which has Dali Entrances for all the lamps and sensors.

Thankyou for your help!

gebi
Posts: 2
Joined: Wed Apr 18, 2018 6:53 am

Re: Dali Light Management with RaspberryPi

Wed Jun 13, 2018 6:43 am

Anybody? Maybe you have a tip to another forum or thread here, where this or smthg similar was already discussed... Or you have a totally different and other low-cost open source approach to my problem...?
Any help is welcome and badly needed. Thankyou

User avatar
bensimmo
Posts: 4071
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Dali Light Management with RaspberryPi

Wed Jun 13, 2018 7:38 am

I've not seen DALI mentioned in the forum before (just looked it up on Wikipedia).
I would look at the home automation projects (some examples in this month MagPi) and see if anyone has implemented anything for them.
https://www.raspberrypi.org/magpi/

User avatar
mark3112
Posts: 38
Joined: Mon Apr 09, 2018 10:39 am

Re: Dali Light Management with RaspberryPi

Wed Jun 13, 2018 3:25 pm

I use a Microchip DALI Interface (DM160215) that works OK but its USB to Windoze (USB HID).
Have a look at DM160214-1, No comms channel but if you can rework the PIC code perhaps you could implement something.
You can make a real CPU in a FPGA, but you can’t make a real FPGA in a CPU.

dcomin
Posts: 2
Joined: Wed Oct 10, 2018 6:55 am

Re: Dali Light Management with RaspberryPi

Wed Oct 10, 2018 7:12 am

Hi mark, gebi,

I also have Microchip DALI Interface (DM160215) that seems to work fine with its Windows application (USB HID). Someone of you could make a communication between DM160215 and Raspberry Pi with USB? I used pyUSB to test it, it works fine in some of cases but it is not 100% effective and I am searching for an optimal communication between them.

Have someone made Raspberry PI - DM160215 project?

Regards,

Diego Comín

atxled
Posts: 6
Joined: Tue Oct 30, 2018 5:36 am
Location: Austin Texas
Contact: Website Facebook

Re: Dali Light Management with RaspberryPi

Tue Oct 30, 2018 5:41 am

Hello
we have designed a HAT to connect a Pi B or B+ ( with PoE) to a DALI bus. So you don't need any other hardware.

Our HAT has a DALI power supply, a Raspberry Pi power supply, and the hardware interface for DALI, and a pre-processor to eliminate the real time aspects of DALI ( the Manchester encoding / decoding is done on-board). You power it with a 24v to 48v power supply or passive PoE.

Contact us for info.

Murray
https://atxled.com/Pi/
Last edited by atxled on Tue Mar 12, 2019 9:37 pm, edited 1 time in total.

neophilipp
Posts: 1
Joined: Thu Nov 01, 2018 6:18 pm

Re: Dali Light Management with RaspberryPi

Thu Nov 01, 2018 6:21 pm

Hey, sounds Great!

At your Website I can not find more information about the hat. Do you have a shop or where can i find it, for buying it?

Thanks a lot!

atxled
Posts: 6
Joined: Tue Oct 30, 2018 5:36 am
Location: Austin Texas
Contact: Website Facebook

Re: Dali Light Management with RaspberryPi

Tue Nov 20, 2018 9:53 pm

Hi
we have now created a link about the DALI HAT

https://atxled.com/Pi/

it is in stock in the USA https://www.shop.atxled.com/products/da ... pi-b-and-b
and in Europe https://www.amazon.co.uk/dp/B07NBZTN81/

It is working great!
Murray
Last edited by atxled on Tue Mar 12, 2019 9:36 pm, edited 1 time in total.

ttauno
Posts: 1
Joined: Mon Jan 28, 2019 10:41 pm

Re: Dali Light Management with RaspberryPi

Mon Jan 28, 2019 10:55 pm

atxled wrote:
Tue Nov 20, 2018 9:53 pm
Hi
we have now created a link about the DALI HAT
https://www.shop.atxled.com/products/da ... pi-b-and-b

It is working great!
Murray
Hi,

Just started with a "small" hobby project at my house and started automating it with the help of Rasberry Pi unit. Overall goalwill be to use the same unit to control DALI based lighting system and possibly plugs, curtains, heating, alarms, tv, etc via this central unit.
I am quite new to DALI systems and I am also trying to figure out the best way to solve my hobby project with DALI lighting control.
I have a couple of questions regarding this DALI HAT.

1) It seems to have 2 separate connections for DALI circuits. Does this mean that it can control 2 circuits? or it just means that you can connect 2 different circuits into one with this connection?
2) Can I use this HAT to also manage/program my DALI circuit also, or do I need a separate USB master unit or software for this? I can do Python, so it would be ideal if I could use this also to manage and program groups, addresses, dimming etc that a decent DALI system is able to do.
3) I seem to be just in the beginning of my journey and this maybe a stupid question, but my so called hobby project is a small private house lighting. Assuming that the number of lighting fixtures controlled by DALI is not going to exceed 64 units, would it be something to consider to run the whole house within one DALI circuit?

Trying to figure out if it is the right solution for my project.
Thank you in advance!
Toni

atxled
Posts: 6
Joined: Tue Oct 30, 2018 5:36 am
Location: Austin Texas
Contact: Website Facebook

Re: Dali Light Management with RaspberryPi

Fri Feb 01, 2019 2:34 am

Hello

Thanks for your question!

Our Pi Hat has just one DALI interface - the double connections are to allow feed thru of the DALI bus to avoid making wire connections

It is powered by a 24v to 48v source, and that source also powers the Pi, and the DALI bus.

Until we have our own DALI Master software - you would need to purchase something like the DALIpro USB or the DALI-100 USB or other DALI master to convert the default 'long' DALI addresses into the 'short addresses" used to actually turn lights on and off.

It is easy to write your own code in Python or something to send DALI commands to the Pi Hat, and to monitor all DALI traffic on the bus. Emulating a DALI master is possible - just more work. We have shipped devices to 5 countries so far...

Best Regards
Murray

loba
Posts: 1
Joined: Sat May 11, 2019 7:29 am

Re: Dali Light Management with RaspberryPi

Sat May 11, 2019 7:50 am

Hi everybody,
If you are interested into use your Rpi with DALI, take a look of my project here, an easy to use DALI Hat:

https://www.ebay.it/itm/DALI-Master-hat ... 4220148656

This Hat transforms your Rpi in a DALI Master, able to control all the ballasts on the bus.
See the python library on github, with many examples to getting started:

https://github.com/davideloba/daliMaster_rpi

Regards.
Loba

atxled
Posts: 6
Joined: Tue Oct 30, 2018 5:36 am
Location: Austin Texas
Contact: Website Facebook

Re: Dali Light Management with RaspberryPi

Thu Jun 13, 2019 2:37 pm

An update from ATX LED

we have uploaded a script to install all the controls to enable http control of a DALI bus. You can find the description on our wiki at https://atxled.com/Pi/

With this setup, it allows any RPI to be configured automatically from scratch. Besides the GUI interface - you also have 15 sample python scripts to control anything on the DALI bus, and a locally hosted web page that allows manual or automated control from a web page or using Curl. We support Dataplicity for remote access.

We have fine tuned our DALI Hat to hit over 33 packets per second and to support 12v to 56 volt operation by passive PoE. In stock at Amazon Europe and USA.

Thanks everyone for the feedback and requests!
Murray

atxled
Posts: 6
Joined: Tue Oct 30, 2018 5:36 am
Location: Austin Texas
Contact: Website Facebook

Re: Dali Light Management with RaspberryPi

Tue Jun 25, 2019 6:51 am

Hi Folks

we have recently added Philips Hue emulation using DIYHue. This means that the entire DALI bus can be accessed from the Hue App including tunable white.

With this, Amazon Alexa has control of the DALI bus fixtures

Contact us for more information.

Best Regards
Murray

Return to “Automation, sensing and robotics”