Found it quite a headache to be able to control the dimming/driving the LEDs.
So, I found a great solution: DMX LED downlights. Which there's an Arduino shield for, DMX master. Added bonus is that the LEDs are RGB, which means they're dimmable and can be set to any colour. The LED driving is all sorted for me. Takes DC power input per slave. I run ethernet cable to each lamp/slave to carry the DMX signal, which is daisy chained.
I'm using Raspberry Pi as a MQTT server as well as an Apache server for a browser GUI. It then communicates to the Arduino DMX master via MQTT, sends RGB values for each slave(lamp) that needs actioning.
Code: Select all
DmxSimple.write(address, brightness); // x3 per lamp: R,G,B. // 512 addresses = 170 RGB lamps on the one system
DMX is fast, silent (no relay clunks), cheap. Just thought I'd add my 5cents worth, if someone is starting out