3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

3 Channel arduino Powered Christmas Light Controller!

3 Channel arduino Powered Christmas Light Controller!
For Christmas this year, I wanted to make a really cool project but didn't quite know what to make. As I was getting the Christmas lights out to decorate, there was an old busted Christmas light timer. I took it apart and looked around at the low-voltage circuit. Before this I had never experimented with AC circuits. I decided instead of hacking the timer to just make a whole new circuit, thus starting the AC electronics hobbyist side of me. And here it is, the 3 channel arduino powered Christmas light controller!


CAUTION!! If you decide to build this project you must be CAREFUL! This project is built with AC voltage which CAN BE DEADLY! If you have never worked with AC before, please get supervision from someone that has. Instructables and/or myself are NOT responsible for any injuries caused by the misuse of this project.


If you need any help or perhaps a more detailed description of the schematic, leave a comment.





 
Remove these adsRemove these ads by Signing Up
 

Step 1Tools, Materials and Skills

Tools, Materials and Skills
«
  • SDC11626.JPG
  • SDC11685.JPG
  • SDC11704.JPG
  • SDC11630.JPG
  • SDC11632.JPG
  • SDC11628.JPG
  • SDC11627.JPG
  • SDC11625.JPG
  • SDC11607.JPG
  • SDC11634.JPG
  • SDC11666.JPG
  • last photo ←
»
For this project you will need the following tools, materials and skills:

TOOLS:

Soldering iron- you can get one of these for cheap at radioshack or online

Solder- can also be bought at radioshack

Wire cutters and wire strippers- radioshack has them

Something to mark with- I used a sharpie

Sand-paper




MATERIALS:

3, 5 volt relays- I bought mine at radioshack but they can also be bought for cheap online

3, 1N914 diodes

3, NPN transistors- I used 2n3904 but 2n2222 will also work.

Solid and Stranded core Wire- radioshack

Perforated board A.K.A. proto-board- radioshack

male and female header pins- online

Arduino microcontroller- I used an UNO but older versions will also work. You can buy them online and at some radioshacks

Electrical Cord- radioshack or home-improvement store

Electrical outlets- home improvement store or radioshack

electrical tape




SKILLS:

For this project you will have to know how to do the following:

Solder

Read schematics

Work with AC volatge

Have basic knowledge of electronic circuits

how to program and arduino

« Previous StepDownload PDFView All StepsNext Step »
26 comments
Apr 11, 2012. 5:24 PMdanielemur says:
Would it be possible to use this circuit with light switches instead? I dont mean the ones on the light itself, but the wall switches.
Dec 29, 2011. 11:46 AMklaurens says:
In SA we use 220-250V, what relays would I have to use for that amount of voltage?
Dec 30, 2011. 1:11 AMklaurens says:
Thanks man, do you know anyone on instructables that I could ask??
Dec 20, 2011. 10:34 PMDstrcto says:
Most relays have contact ratings... are these rated for 120VAC?
Dec 20, 2011. 10:37 PMDstrcto says:
Nevermind, I found info on the contacts 125VAC @ 1A. Gotta watch the amperage or you'll weld the contact.
Dec 18, 2011. 9:32 AMfjordcarver says:
Way to go!!! You are on Hack-A-Day!!!
http://hackaday.com/2011/12/18/controlling-your-christmas-lights-without-ever-getting-off-the-couch/
Cheers!
Dec 4, 2011. 6:50 PMHenry_Best says:
Your scematic doesn't show any loads on the AC lines, which means that as each relay closes it will cause a dead short across the AC supply! Noobs to AC might not know this, with disasterous results!
Dec 5, 2011. 12:40 PMHenry_Best says:
You're welcome.
Dec 4, 2011. 10:41 AMhcaz-301 says:
Then link it up to the internet or a timer, so the light turn on when your away from home
Dec 1, 2011. 10:59 AMsoshimo says:
You might want to add a rectifying diode across the relay pins. When current stops moving through the coil (the adruino pin is brought low) you get a flyback effect which could smoke your android. Also a project encasement would be great - you can pick them up at radio shack for about 5-10 bucks depending on size (a definite requirement when working with mains voltage and current). Finally, you mention the npn transistors but I don't see you using them anywhere. Were you maybe thinking of using them as a current controlling device for the relay coils? Otherwise, great tut.
Dec 3, 2011. 2:33 PMSparkysWidgets says:
If it has a coil or any inductive part then it will create a voltage spike when you remove current. Inductors resist current change, so when you remove power from a coil and give the residual current no place to travel a voltage spike will form. By placing a diode "backwards" you give a path for the current to slowly fade. Here is a scope cap of a 5v I just tested without a diode, pk-pkv =183v.
Dec 3, 2011. 5:53 PMSparkysWidgets says:
Not a problem at all :) I generally start with "fast" diodes like a 1n4148, but rectifiers like the 1n400X series work just fine too. Most pks I measure on those 5v relays are about 59v but, every once in a while they sure get up there. Luckily they are very short (IIRC that one was 147uSec).
Dec 3, 2011. 7:35 PMSparkysWidgets says:
That scope cap was taken with a QuantAsylum100 we are evaluating for carrying in our shop. For a usb scope and analyzer I'm pretty impressed with it, but you cant go wrong with a hacked Rigol :) A scope is a very handy tool while not necessary, when you do get one, you'll wonder how you did anything without it :)
Dec 1, 2011. 11:00 AMsoshimo says:
I meant "smoke your arduino", I have Android on my mind today.
Dec 2, 2011. 1:29 PMcanucksgirl says:
Good idea Robot Lover. However I feel a heads-up call is warranted to my local fire department if I so chose to try this. - Electricity scares me. That and propane bbq's... Thanks for starting the Instructable Advent Calendar 2011 - I look forward to seeing all the entries. - oh what fun.
Dec 1, 2011. 9:37 AMfjordcarver says:
Great job!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
42
Followers
6
Author:Robot Lover(My project blog)
I love making things. I always found electronics and stuff like that fun. When I was little I always took apart my toys and put them back together. I thank God for giving me my gift of my creativity a...
more »