Raspberry Pi using node.js to control RGB LEDs

Over at Tinkerlog, they’ve been playing with that super cheap, yet super powerful micro-computer Raspberry Pi. With multi-coloured LEDs becoming increasingly more common in commercial and residential interior design,...

RaberryPi LED Lights

Over at Tinkerlog, they’ve been playing with that super cheap, yet super powerful micro-computer Raspberry Pi. With multi-coloured LEDs becoming increasingly more common in commercial and residential interior design, wouldn’t be it great if you had a way to control them exactly the way you want.

In a video Alex Weber, also of Make Magazine, shows off his creation. He took a string of RGB LEDs (Adafruit RGB pixel – WS2801), and connected it to a connected Raspberry Pi. Thanks to a bit of Node.js magic, he’s able to control the colours of individual LEDs at the click of a mouse. The coding also allows for groups to be selected, then a colour applied. We then see the same application operated via an iPhone app which kicks off an animated light sequence.

The possibilities here are endless, with the cost of the lights being higher than the controller (Raspberry Pi). The lights also have a library up on github for those developers amongst you to communicate with the hardware. Because the commands are broadcast via web sockets, colour changes updates the lights on all connected clients.

This has huge potential for multiple installations around your house or business. If you scale this up, you could have a computer / phone controlled lighting scheme for your Christmas decorations. Or you may want to add some scheduling or add some motion detection for lighting around the home.

More information @ Tinkerlog

Categories
Hardware

Creator of techAU.com.au (formerly techAU.tv) - the technology website provides a way to share the best content with an audience of millions each year. Also an app developer for Win8 and WP8 and Founder & CEO of Constructiv.co - Changing the way products are developed.
2 Comments on this post.

Leave a Reply

  • Andrew Williams
    21 January 2013 at 2:33 am

    Is node.js running on the rPi?

  • kachan64
    21 January 2013 at 11:13 pm

    The device he created connects to a PC and it’s powered by Raspberry Pi. Then he uses a javascript he created and load it on a browser and control those LEDs. On the phone he might have PC control or something.

  • Advertisements
     
    Subscribe via email

    RELATED BY