Christmas Lights

A string of Christmas lights with individually addressable light bulbs, whose colours can be chosen using a web browser across the Internet.

Description

This project builds off of the work done by Robert Sun Quattlebaum with GE Color Effects Christmas Lights by providing an interface so the light colours can be set over the Internet.

The lights are controlled by two Arduinos. One sits inside the house and acts as the web server, the other is located outside the house and is dedicated to controlling the lights. The two Arduinos communicate with each other over a XBee wireless link.

Web Server

Hardware

The web page for the lights is served by an Arduino with an Ethernet shield to provide network connectivity and an XBee module with shield to provide wireless connectivity. The two shields are unmodified and are attached to the Arduino with stacking headers.

Software

The web server is running a modified version of the Basic Arduino Web Server sketch. It serves a page showing a graphic representation of the Christmas lights and a form that allows the colour for each bulb to be selected. When a user submits the form it transmits the colour for each bulb as RGB values to the light controller using the XBee link. The code for the web server is available for download below.

Light Controller

Hardware

On the exterior of the house the Christmas lights are controlled by an Arduino with an XBee module and shield for wireless connectivity. The lights are driven directly off of the Arduino with the data line connected to pin 4, and also powered by the Arduino with +5V connected to VIN and the grounds connected together. The entire assembly is contained within a waterproof casing.

Software

The light controller listens to the output of the XBee waiting for a RGB value to be received. After checking that the RGB value received is valid, it then sends the appropriate signal down the data line to update the bulb. The code for the light controller is available for download below.

Demonstration

More Information

Project Categories: 
An image of a microprocessor
A image of a file of code written in C
An image of a HTML file
A image of a LED
An image of an ethernet jack
Wireless icon

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.