DIY Christmas Lights Set to Music - Choreographed House Lights

by prabbit22m in Circuits > Electronics

127402 Views, 207 Favorites, 0 Comments

DIY Christmas Lights Set to Music - Choreographed House Lights

10box.jpg
DIY Christmas Lights Set To Music - Choreographed House Lights

This is NOT a beginner DIY. You will need a firm grasp on electronics, circuity, BASIC programming and general smarts about electrical safety. This DIY is for an experienced person so I will not go into detail about how to solder or how to read schematics etc. Sorry, it would take way too long to write an instructable that included schooling in electronics.

Here is a DIY to make your house christmas lights Choreographed to any song you want. It's not easy but if you're good at electronics YOU CAN DO IT!

The Components

1Mosfet.jpg
To get started you'll need 16 MOSFETS, 16 Relays rated at 9V 10A, blank PC board, Cat5 wire, hot glue, a transformer rated to drop down 110V to 9V a bridge rectifier and Capacitors from Radio Shack.

Schematic

2Schematic.jpg
Here's a diagram of the circuit you'll need to build. It's basically a transformer to power the 9V relays. Then a microcontroller (later steps) will send a signal to the MOSFETS which will then activate the relays which will turn the 110V power on to the individual plugs.

Mechanical Relay Pack

3Relays.jpg
Heres a picture of how I wired the relay pack. You can put them on a board if you want. I used CAT5 wire for all low voltage circuits and 12GA wire for the 110V applications. I recommend hot gluing all wires together to keep them from bending or breaking.

Relay Pack

4Relays.jpg
Here's another pic of the relay pack with the rest of the board we'll build soon.

MOSFET Pack

5Mosfets.jpg
Here's the MOSFET pack on the circuit board. You'll have to be creative when wiring them. If you like to etch your own board you cn do that but I just used wires and solder.

Wiring the MOSFETS

6UnderBoard.jpg
Here's the underside of the board where I wired the MOSFETS. I used 3 pieces of CAT5 wire. You can see the blue CAT5 wire to the left and right. This keeps it somewhat neat and organized.

Wired Circuit Board

7messy.jpg
Here's a pic of the entire board built. We'll get to the microcontroller board soon. But, now you can glue the transformer to the board, hook up the rectifire and capacitors and wire the relays to the mosfets. You'll have 16 large wires to go to the 110V AC outlets, a 110V AC Input and a strand of CAT5 to go to the microcontroller.

Wired Outlets

8outlets.jpg
I got this plastic box and individual 110C outlets on ebay. Here's the back of the outlets and switchs wired. I used all 10GA wire.

Wired Box

9box.jpg
Here's the box completed. I added a fan and fuse for safety. All we need now is the microcontroller.

Microcontroller

Parallax Board.jpg
BS2E.jpg
You can buy the board you see in my box for the microcontroller at parallax.com. It's the BASIC STAMP development board. I also used the BS2e module. You'll probably want to familiarize yourself with this software but it uses BASIC programing language so it's pretty easy. I'll attach a copy of one of the programs I wrote to the next step.

Writing the Program

This is what takes the most time. Since it's such a basic program you actually have to program every milisecond. It takes many hours to get this right but it's worth it! You can program the chip to turn lights off and on at any time in sequence. Here's an example of the wizards program.

'{$STAMP BS2e, Wizards2.bse, Wizards3.bse}

reps VAR Byte
freq VAR Word
repsl VAR Byte

LOW 1
LOW 2
LOW 3
LOW 4
LOW 5
LOW 6
LOW 7
LOW 8
LOW 9
LOW 10
LOW 11
LOW 12
LOW 13
LOW 14
LOW 15
LOW 16

PAUSE 4300

'first beats'
reps = 1
FOR reps = 1 TO 7
PAUSE 450
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
PAUSE 100
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
PAUSE 100
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
NEXT
'first run up'
freq = 200
HIGH 1
PAUSE freq
HIGH 2
PAUSE freq
HIGH 3
PAUSE freq
HIGH 4
PAUSE freq
HIGH 5
PAUSE freq
HIGH 7
HIGH 8
PAUSE freq
HIGH 12
HIGH 13
PAUSE freq
LOW 1
LOW 2
LOW 3
LOW 4
LOW 5
LOW 7
LOW 8
LOW 12
LOW 13
'second beats'
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
PAUSE 100
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
reps = 1
FOR reps = 1 TO 6
PAUSE 450
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
PAUSE 100
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
PAUSE 100
HIGH 15
HIGH 16
PAUSE 50
LOW 15
LOW 16
NEXT
'run up then down'
freq = 200
HIGH 2
PAUSE freq
HIGH 3
PAUSE freq
HIGH 4
PAUSE freq
HIGH 5
PAUSE freq
LOW 5
PAUSE freq
LOW 4
PAUSE freq
LOW 3
PAUSE freq
LOW 2

PAUSE 100
'first crazy up and down'
freq = 50
FOR reps = 1 TO 6

HIGH 7
HIGH 8
HIGH 9
PAUSE freq
HIGH 5
PAUSE freq
LOW 6
LOW 7
LOW 8
LOW 9
HIGH 4
PAUSE freq
LOW 5
HIGH 3
PAUSE freq
LOW 4
HIGH 2
PAUSE freq
LOW 3
HIGH 1
PAUSE freq
LOW 2
PAUSE freq
PAUSE freq
HIGH 1
PAUSE freq
HIGH 2
PAUSE freq
LOW 1
HIGH 3
PAUSE freq
LOW 2
HIGH 4
PAUSE freq
LOW 3
HIGH 5
PAUSE freq
LOW 4
HIGH 7
HIGH 8
HIGH 9
PAUSE freq
LOW 5
PAUSE freq
PAUSE freq
NEXT
LOW 7
LOW 8
LOW 9
END

Attached is a Word file containing the entire program. Also attached is the audio for it. Just flash it to your module and it's ready to go. Email me if you want more programs and I'll send them to you

Set It All Up

11cabinet.jpg
Now, find a spot in your garage to house the box. I had my laptop out there so I could flash different songs on the chip. Play the music loud in your house and trip the lights on at the appropriate time and you'll probably get your name and house in the newspaper like I did.

Here are some videos
The Best one
http://www.youtube.com/watch?v=2Cj-morKHPQ

Another good one
http://www.youtube.com/watch?v=co-eirSUmsk

No sound on this one. Just crazy capabilities of the system
http://www.youtube.com/watch?v=oZhcyr4RYLg

The Best Video

House.jpg
The Best One

It's a little repetative but it gets BETTER NEAR THE END so be sure to watch the whole thing!

BETTER NEAR THE END


Another Video

House.jpg

Capabilities

House.jpg
Here's a video of the capabilities of this system. The lights are all LED so they can turn off and on faster than the eye can see.