I am trying to run the example code provided by you, and even the one provided by codemasters for the LW-09 01module. I am trying to usit with a MW PWM-120-24DA converter (https://asset.conrad.com/media10/add/16 ... ievate.pdf) with DALI output for a DALI controller. The code which was provided has failed to set the pwms for the LEDsconnected to the MW PWM-120-24DA converter. I am using an arduino nano every to controll the LW09 via I2C BUS.
Do you have any suggestionwhat am I doing wrong.
Do you have a bus power supply connected to the bus? DALI needs a special kind of power supply that provides the power for the bus itself to function. Like our LED-Warrior11.
The bus did it as you suggested. May I have one more question about the addressing process. I have a PWM-120-24DA converter dali device connected and is working only if I send broadcast commands but I need to find out the address for the send_command procedure. Is there a way to get the devices address or do I have to make one. I already tried to iterate through 0 -63 and 0-255 to try every possible address, but only the broadcast 255 address triggers a response.
Most DALI devices will have no short address by default.
You have to set one by yourself using the "random procedure" DALI devices supports or setting it by send a DALI address using the DTR register method. The DTR methodis not recommended if you have a running bus, because each device on the bus will get this address if you are send this via broadcast
However, the LW08 is not designed for this type of commands. For this you need a LW14 or another DALI Master.
If you using the LW14 as a module, we have no sample code for addressing with the "random address" method.
The DTR method will work but for this I have to build some sample code (not part of our githib repository at the moment).
Or you using the LW14U-DR, for this we have a Windows appliction to setup DALI devices incl. set, change and switch addresses.
The library above does not work well with an arduino but I've found an alternative to it https://github.com/davideloba/daliMaster. I ll try it with the lw-14 when it arrives. Thanks for your help.
I'd suggest you keep an eye on this issue in this project: https://github.com/sde1000/python-dali/issues/147 - not ready for use yet but I think it shows promise for Raspberry Pi uses and I suspect that porting to Arduino hardware will also be possible.