I love the new possibilities that modern leds provide (cheap, efficient, small, ...) and I wanted a nice project to play with for my home automation. As I could only find a dimmer for one-color-leds and domoticz and mysensors recently added support for rgb(w) lighting I started to build a control pcb for just that.
I got some help here.
The board should be relativly easy to build and use and shouldn't be too big. The maximum size was 5x5cm as thats what cheap pcb manufactures mostly support. In the end I used a 30 by 50mm board with rounded edges and 2 mounting holes.
I tried to use small but easy to solder components. IRML2502 mosfets in a smd formfactor are used to control the channels of the leds. They are pretty small but one can still solder them by hand without too many problems. I had an earlier version where I used through hole mosfets but these take up a lot of space. An AMS1117 is used to generated the 3.3V from the 12V (led power) input. I tried a buckconverter for more efficiency but these need a lot of filters otherwise the radio doesn't work anymore. As the whole thing doesn't draw too much power a linear regulator should be sufficient. The core is an arduino pro mini. That one is cheap and already has all components it needs to run. Perhaps I will create another version with just the atmega 328P but at the moment this is the easiest solution. Beside the NRF24L01+ radio I and some passive components I also added an ISP programmer 6-pin port to be able to change the program without using the serial connection if need be.
At the moment the software relies on domoticz as a controller or some software that sends the same kind of information. The program stores the current target level for the leds which it gets from domoticz and then fades from its current values to the target ones. As the human eye doesn't see changes in brightness linearly I tried to use non linear scaling for but that doesn't seem to work yet.
I build a custom lighting system for my living room which uses this controller. It's still work in progress but I will try to upload some pictures soon.
The old version (that I have tested and where these pictures are from) had an error where I switched outputs for the mosfets! They have to be rotated to work! In the newest (gerber) files in the linked github repo I fixed these mistakes. Although I haven't tested these new boards (yet) they should work without this fix now. Wrong: Right:
5 RGBW controllers using the first generation (with the switched mosfets) have been running here for months now without error.
The pcb can be bought here. Read the error part above!
|Qty||Value||Device||Package||Parts||Description||MF||MPN||Aliexpress or Ebay link|
|1||Arduino Pro Mini|
|1||6 Pin Connector|
|1||22uF tantal capacitor|
|4||10k resistor||SMD 1206|
|1||5 pin screw terminal|
|1||2 pin screw terminal|