Step 6Upload Sketch and Test Everything
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 Step | Download PDFView All Steps | Next Step » |















































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!