Computer Controlled Christmas Lights using the BS2
In November I did a project for Computer Controlled Christmas lights. The Basic Stamp 2 is the heart of the controller. I call it the Griswold Board, a la Christmas Vacation. It is not a dimming controller, only on and off. It reads a 9600 baud data stream from a PC. Based on what data is sent, it will turn off and on up to 15 Solid State Relays. Each SSR is capable of carrying 12 amps of current @ 120 volts AC. (Though the traces on the circuit board cannot support that amount of current) I had the board for the light controller etched by http://expresspcb.com . The board is housed in a small circuit breaker panel from Homedepot. The AC connections into the board are made from the cheapest extension cords I could find. [noparse]:)[/noparse]
The software is a Windows .NET application that uses a Windows Media Player "wrapper" as its core. The "wrapper" exposes a microsecond accurate timecode property of the given song that is being played. That property is used to sync changes of the lights with the song. Building this software was the trickiest bit for me. Took about 30 hours of my time to get it to a point where the shows could be edited and played.
Videos
Christmas Vacation
Carol of The Bells
Christmas in Hollis
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-- Terry
Post Edited (ke4pjw) : 3/27/2010 5:30:08 AM GMT
The software is a Windows .NET application that uses a Windows Media Player "wrapper" as its core. The "wrapper" exposes a microsecond accurate timecode property of the given song that is being played. That property is used to sync changes of the lights with the song. Building this software was the trickiest bit for me. Took about 30 hours of my time to get it to a point where the shows could be edited and played.
Videos
Christmas Vacation
Carol of The Bells
Christmas in Hollis
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-- Terry
Post Edited (ke4pjw) : 3/27/2010 5:30:08 AM GMT
Comments
Thanks for the post. My son, who is ten, is very interested in learning everything I know about exterior illumination and we hope to have many twinkling lights on the house and in the yard this year. I will have time tomorrow to review all that you have uploaded and learn from your work. We have been planning on using the EFK-TEK RC-4 board with SSRs, but I wouldn't mind building it myself.
Tony
Tony B., this board isn't the most cost effective one. It is a bit over built on the SSR current capability but dirt simple in design. MY dad taught me everything I know about exterior illumination as well [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-- Terry
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-- Terry
73's
ke4pjw
Loved what you did. want to try the same thing. How does the wraparound/interface installed. also loved the videos.
Dave
N8KVD
Those videos made me grin from ear to ear!
Merry Christmas!
--Bill
Thanks
N8KVD
The forum would not allow me to upload a .zip file at the time. Just remove the .bin extension and you should be able to open it.
The application uses the Interop.WMPlib.dll to expose the winamp controls.
The only annoying big bug I found with it was that if you used a variable bit rate music source, it would shift the timecode around enough to cause issues with the synchronization. I would just transcode the music to a fixed bit rate mp3 to solve the problem before building the sequence.
Merry Christmas and Enjoy,
Terry
Thanks for the comments maldridge. At the time I did not know about Vixen. I just wanted to build a soup to nuts solution. To me this was more about the challenge of creating the whole thing than just buying a box that works.
This year, I designed a new board based on the Propeller that uses discrete TRIACs and opto-isolators. It is a board that can dim the lights and uses DMX-512 as the communications protocol. It is a much less expensive board so I have 96 channels this year I also built a DMX-512 encoder based on the propeller that interfaces with Vixen via a plugin that I wrote.
I will try and share the details of the new boards when I have some free time. Here is a video of this year's setup, 100% Propeller powered.
Merry Christmas!
73's
N8KVD
Dave
N8KVD
Thanks,
Terry
Thanks for all youre responses. If you would like my email, let me know. This is FUN
PS, No time for Ham Radio....LOL
N8KVD
I used the BS2 "board of education" for development (Turning on LEDs as tests). It did the job just fine.
I haven't looked at this code in a year, but I am sure there are some rough edges I can clean up.
Feel free to PM me or post here if you have any specific questions. I am really glad you are enjoying it. I had a blast last year putting it together. The propeller based one I did this year has been alot of fun too! (And a lot cheaper to build)
73 DE KE4PJW
(not much time for me to get on the air either, HIHI)
--Terry
That's got to be one of the most entertaining uses of the BS2(along with .NET) that I've ssen to date.
Can't help but wonder what your plans are for next year...
73
N3LJP
Hope you had good Holidays.
73's DE N8KVD
Dave
I seem to have the same random problem I have a USB to Serial adapter. Can you show me the code you added to fix the problem?
I would really like to get this going for a christmas boat parade.
Thanks,
Mark