LED strip integrated in Domotica system

Now that the new floor is nearly finished, i can start working on some Home Automation related subjects again; the first was using LED strips in the kitchen.

LED strips

LED strips

In total 4 segments of LED strip are used; 2 near the floor at the plinths of the lower kitchen cabinets, 1 at the counter top and 1 on top of the upper kitchen cabinets.

Today i finished controlling all these LED strips individually.

I don’t have Ethernet in the kitchen, so i used the ZigBee approach (again :-)). I mounted a XBee on a Sparkfun XBee RS232 board and connected it to the Chromoflex RS232 RX input:

XBee and Chromoflex in a box

XBee and Chromoflex in a box

The XBee RS232 board is powered by the adapter that also powers the Chromoflex, so all i needed was a wall outlet for the Chromoflex adapter and the Chromoflex was “connected”.

Now it was time to add control functions to my Touchscreen application, running on my Asus TOP in the livingroom. I added a “LED” button on the floorplan, in the middle of the kitchen:

LED button on the floorplan

LED button on the floorplan

And i found a very cool Trackbar Control and created a new pop-up form with it, that appears when you push the “LED” button:

LED Trackbar

LED Trackbar

With this form i can control each LED segment individually. To minimize traffic, i used the same approach as i did earlier with controlling my thermostat; a timer event fires when the Trackbar value hasn’t changed for 1.5 seconds and sends the new value to my Domotica System by XMLRPC:

VB.Net code

That’s all there is to it. My Domotica system takes care of the rest e.g. building the Chromoflex packet based on the USP3 protocol, wrapping it in a XBee Transmit Request packet and sending it to the ZigBee coordinator. Home Automation is sooo cool 🙂

Tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *