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.

Christmas Lights to Music Using Arduino

Step 6Upload Sketch and Test Everything

Upload Sketch and Test Everything
I used a short length of the landscape wire to test the setup.  I connected the black wire to the neutral wire terminal, and each of the other six conductors to the first six SSR hot wire terminals.  On the other end of the landscape wire, I connected all the neutrals to the black conductor and each of the other six conductors to the hot wire of each of six female electrical outlets (see photo below).  To supply power, I connected one of the six foot male power cords left over from harvesting the female connectors into the 120v input wire terminals (see photo below)

I used xmas_box.pde from here and set debug to true while testing everything.  I plan on editing the code once I get everything set up outside but for now it works without modification.

Update 2010-06-22: I've attached a 7-zip file containing code I might have used (besides the original code from above).  I'll upload new code later this year when I put the controller back together and implement some of the ideas I had for future expansion.

Update 2010-12-11: I've re-written the program using the daphc example from the WaveHC library and the VuMeter code from the xmas_box Instructable linked above.  It will now play any song it finds on the WaveShield's SD card in a continuous loop.  The program is Christmas_Lights_2010.pde below.  I've also included Christmas_Lights_2010_Channel_Test.pde which just cycles through all 8 channels so you know that they work.
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Oct 18, 2011. 8:30 PMbruce-f says:
I was wondering if there was going to be any code improvements for this year?

Could the Arduino possibly do a fast Fourier transform on the WAV file then control different channels to turn on and off depending on the WAVE file frequency? What I mean is a set of lights turning on and off with the "high" notes of the song, and another with the "low" notes or bass? Could there be different patterns depending on the "volume" of the song?

I think you've done great work so far. Thanks!

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!
9
Followers
4
Author:MRedmon(Matt's Photo Gallery)