Tuesday, November 20, 2012

Arduino Christmas Lights

This is my Arduino Christmas light project.  I will do my best to show exactly how I was able to accomplish this using an Arduino Uno Rev 3, a Sainsmart Solid State Relay board, some outlets and of course, Christmas lights.

Item List:
Arduino Uno
Sainsmart 8 Solid State Relay Board
8 basic outlets
Breadboard jumper wires
Electrical wires - to hook stuff up
4 count outlet box
1 old 3 prong power cable
Christmas lights
Arduino Uno Rev 3
Sainsmart Relay board

The first thing I did was break of the tab on the plate between the two screws on the hot side of the outlets.  This turns 4 connected outlets into 8 independent outlets, only do this on the hot side; the neutral (white) side does not need this.

Next, I wired up the neutrals and grounds for all of the outlets.



The following image is for wiring the relay board.  The top left two terminals for the 5V and Ground from the Arduino board.  The 8 terminals on the top left are for the 8 digital outputs from the Arduino board.

The terminals on the bottom are for power.  I've chosen the terminal on the far right as the main power for the other terminals.  The black wire from the power cable will go into that one and I chain power to one of the other terminals on that side of the board.  The open terminal is for the hot side of the outlet to connect to.

Relay Board Wiring