Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Completed Projects > Christmas Lights!!!!  Forum Quick Jump
 
New Topic Post Reply Printable Version
42 posts in this thread.
Viewing Page :
 1  2 
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/18/2008 9:00 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi All
 
Thought i would share my christmas project with everyone. I have always wanted to copy those crazy uTube videos of christmas light to music. Well i finally looked into it and found that everyone is generally using Light O Rama. Which is cool, but cost dam near 800 bucks for 32 channels. So i thought i would build it all myself. So i grabbed my BS2 from my Boe Bot, bought 20 1AMP PC board relays off of ebay for 15 bucks, (Spent way to much for transistors, resistors, soldier, diodes and pcb board from Radio Shack, (Hate that place.) and went to work. Took me about 3 weeks total so (Which is way to long, I made a few stupid mistakes since i don't do this stuff often, and used visual studio C++ for the first time.). Anyways, I made my own relay boards, threw together a very dirty housing for them with 16 outlets, put up all my lights, laid out alot of extension cord and wrote a gui in Visual C++ to controll the lights over serial. At first i tried just programming the BS2, quickly found that to be very limiting, not really surprising. Overall it is working out very well. I did rip off the actual sequences from other people. I was finding that actually writing the sequence manually was taking way way to long. I took a look at Light O Rama software and i must say, it is very nice for writing a sequence. Then i struck gold and found that their Version 2.0 software stores the files as xml. So from that i found a couple sights where people post there LOR files, downloaded some good ones for 16 channels and wrote a parser into my gui. Worked out great. The tricky part is assigning the channels in their sequence to the appropriate thing in my yard. I plan on having a total of 4 songs this year. I have 2 tuned out and working great so far, just a little bit more work and the other 2 will be done. Now i am waiting and hoping the FM transmitter i ordered off of Ebay from hong kong makes it here in time for christmas. That way people will be able to hear the music in their car.
 
It worked out that I seem to only be able to send the serial commands every 40 milliseconds reliably.
Which is ok I think.
The LOR stuff has twinkle and shimmer effects.
I think i can do that next year by using the pulsout command on the BS2 side of things.
 
A couple lessons learned, should have used bigger relays. 1 Amp isn't much and doesn't allow me to expand alot. I actually had to build a 17'th circuit because the porch lights were drawing to much current to go thru 1 relay.
 
I used mechanical relays, and there lifetime at full load is 100,000 cycles no load 5 million.
Running lights like this I do not expect them to last more than 2-3 years. confused
 
Managed C++ appears to be a big pain in the butt.
 
Without LOR software i don't think i can easily expand my number off relays much without making things to complicated.
 
Never assume those transistors in that old parts draw are NPN because they are labeled as such.
 
My wife has been great, she has let me take alot of time to do this.
 
Here is the youtube link to my best song so far.
Will post more later.
 
Also here are a couple pics of the setup, will open up the housing and show the relay boards later.
 
And here is the BS2 code. (I know someone will ask for it.) Simple ehh.
 
And here is the C++ code and gui.
Please go easy on me when viewing the code.
I know there are some really bad things in there, but it does work and will slowly get cleaned up.
If anyone knows why "delete thread" or thread.Dispose() will not work please please let me know. (See comments in form1.h)
That confused me for a whole night. (I found a way around it, but it would be really nice to be able to kill a thread.)
 
Also if you have never heard of Holdman, google Holdman Family Christmas and watch his YouTube video.
That dude is amazing.

Post Edited (lboucher) : 12/6/2009 2:26:46 PM GMT


Image Attachment :
Image Preview
DSCF3001.JPG
  397KB (image/pjpeg)
This image has been viewed 1085 time(s).
Image Attachment :
Image Preview
DSCF3002.JPG
  410KB (image/pjpeg)
This image has been viewed 833 time(s).
Image Attachment :
Image Preview
DSCF3003.JPG
  407KB (image/pjpeg)
This image has been viewed 914 time(s).
Image Attachment :
Image Preview
DSCF3004.JPG
  397KB (image/pjpeg)
This image has been viewed 803 time(s).

File Attachment :
BS2 and C++ Code and GUI.zip   192KB (application/x-zip-compressed)
This file has been downloaded 392 time(s).
Back to Top
 

abbtech
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 1
 
   Posted 12/18/2008 10:09 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Great job,

Looks like it works very well!
Back to Top
 

NetHog
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2007
Total Posts : 100
 
   Posted 12/18/2008 11:00 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Wow, normally I see people only use Managed C++ as a shim layer to C# / VB, rather than using it to write UI :)

Threads can die, but they should never be killed. Languages/environments that allow you to kill or suspend a thread find themselves dealing with "strange" deadlocks. This is why cancellation is cooperative.

Analogy:
"Kill Thread" is like ground control being able to switch off power on a 747. They might typically get it right and do it while the 747 is on the ground, but if they don't know what the 747 is doing, switching off power could cause the 747 to crash.

"CancelAsync / CancellationPending" on the other hand is like ground control radioing the pilot of the 747 to turn off power. The Pilot could ignore it, but typically the Pilot would honor the request and turn off the engine when it's safe to do so.
Back to Top
 

humanoido
Creative Parallax Projects



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 1274
 
   Posted 12/19/2008 2:01 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Great project! I like the youtube movie!
What made you use C++ instead of going with a straight PBASIC menu driven code?
humanoido
Back to Top
 

Whit
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 1249
 
   Posted 12/19/2008 4:37 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Very nice project and a fantastic example of geek Christmas spirit! smilewinkgrin
 
Merry Christmas!


Whit+
 
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney

Back to Top
 

Cole Logan
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2008
Total Posts : 136
 
   Posted 12/19/2008 6:12 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
That is really cool I have been wanting to do something like this for a while too.
Back to Top
 

NetHog
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2007
Total Posts : 100
 
   Posted 12/19/2008 6:36 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
I keep promising myself every year to do this :)
Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/19/2008 8:03 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

Not quite sure what you mean by "menu driven code".

But i used C++ for several reason. Knowing more C++ will help me in my job, PBASIC would not.

With a laptop and C++ and can define as many variables as i want. The BS2 can only store so much.

Easily defined functions.

Using a C++ gui i can kick off the music in windows media player at the same time the lights start. cannot do that with PBASIC

ETC ETC...

humanoido said...
Great project! I like the youtube movie!
What made you use C++ instead of going with a straight PBASIC menu driven code?
humanoido
Back to Top
 

dRudRudRu
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 126
 
   Posted 12/19/2008 2:07 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
This is great. My wife and I were just discussing how my "box of Parallax stuff" could be used to animate Christmas lights. It's on our to-do list for next year. The light control is the cake part. The synchronization is where I am stumped. Thanks for all the info!

PS I looked into the Light o Rama stuff too. It is expensive if you go for the complete kits. However, you can get the 16 channel deluxe high power unit in kit form for $159. That's why I am uncertain which way to go. I would love to see a Parallax based open source controller get off the ground...........


~~ dRu ~~

Post Edited (dRudRudRu) : 12/19/2008 11:51:06 PM GMT

Back to Top
 

Oldbitcollector
Professional Stuntman



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 3665
 
   Posted 12/19/2008 3:34 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
NICE! Congrats on making the front of hackaday.com

OBC


New to the Propeller?

Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS

Back to Top
 

Cole Logan
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2008
Total Posts : 136
 
   Posted 12/20/2008 8:14 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Actually because of this post I'm now working on a prop based light sequencer that will play its own music.

Thanks for the inspiration.
Back to Top
 

Timothy D. Swieter
Overly Enthusiastic Entertainment Engineer



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2006
Total Posts : 1271
 
   Posted 12/20/2008 11:51 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Nice. I love doing things like this and helping others also do it.


Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com

Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/20/2008 7:22 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Wanted to show everyone the gui i use to control the lights.
Still has a couple bugs, but it is generally working very well.
 
Ohh and by the way. I have had my first relay failure, I was working quick to get it up and running and did not notice i had 1 relay running 1.5 amps. (They are only rated for 1.0 amps.) Tested my other strands and found the porch relay was also a bit over amps. So i will be fixing those up tomorrow or monday. Still hoping to get that FM transmitter. My sign with the radio station will be ready to go.
 
Merry Christmas
Image Attachment :
Image Preview
Light_Controller.jpg
  47KB (image/pjpeg)
This image has been viewed 520 time(s).
Back to Top
 

bennettdan
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Sep 2005
Total Posts : 512
 
   Posted 12/20/2008 10:23 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
lboucher,
   I like your project and I have been working on a simular project but work did not allow me to finish with the hardware design I have some software I wrote in VB2008 that you might like it controls 32 channels over a serial port.
 
It saves its sequences in an xml fial also on your C: drive look for the name you created in the software and you can view the file directly and also edit it in notepad.
 
Their might be some bugs in the software so let me know.
 
All you have to do is have your stamp setup to recieve the serial data and when a channel is on the coresponding 1 is on in the string. Just seperate the string and use if then statement in your stamp code if you need help let me know.
 
Also their is a free software called Vixen alot of people use check out their websight they have a plugin for using the Efx hardware parralax stocks at it allows dimming of each circuit. http://www.vixenlights.com/
good luck
 
Attached is the source code for my GUI IN VB2008.... anyone can use the free VB2008 express from Microsoft to veim and modifiy the code.

File Attachment :
Music Sequencer.zip   767KB (application/x-zip-compressed)
This file has been downloaded 231 time(s).
Back to Top
 

Ugha
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 547
 
   Posted 12/21/2008 3:34 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Great project and great GUI!

When you get some of the bugs worked out, do you intend to release the GUI?
Back to Top
 

bennettdan
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Sep 2005
Total Posts : 512
 
   Posted 12/21/2008 7:11 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

Ugha,

   I if you are talking to me I might release it but am not sure I might start a sight and make it open source so others can help make it better.

I did not mean to Highjack the thread and if anyone is more interested in the software I can start a new thread.

I want to add dimming to the program on each channel next.

Back to Top
 

mazola
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 2
 
   Posted 12/23/2008 9:46 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
I WANT TO DO THAT!!!! can you sho pictures of inside the boxes and maybe a set of instructions please!?!?!?!?!?
Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/23/2008 7:13 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Here is a picture inside. It is really ugly i know.
Just scrounged it together from parts i had.
 
I do not suggest anypne make anything to this low of a standard.
 
Anyways here is a link on the circuit.
 
Merry Christmas

Post Edited (lboucher) : 12/24/2008 4:15:34 AM GMT


Image Attachment :
Image Preview
DSCF3020.JPG
  1.90Mb (image/pjpeg)
This image has been viewed 439 time(s).
Back to Top
 

andrewsweet4
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 1
 
   Posted 12/24/2008 5:28 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Very, very, very nice project! WELL DONE! I have already made the relay board, but when i try to load your GUI, an error message pops up.sad  And guess what! It does not load!cry  Have you got any idea of what the problem is?confused  Can you  PM me the GUI again? please!smilewinkgrin
Back to Top
 

mazola
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 2
 
   Posted 12/24/2008 10:07 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Damn thats a mess. are there pictures a noob like me could look at and know what to do next?

arial view of the relay?
Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/24/2008 11:06 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

 

This link should be enough to figure out the circuit.

http://www.kpsec.freeuk.com/trancirc.htm

As for the GUI not loading.
I ran into that on a work computer also.
 
My best suggestion is installing visual studio express 2008. Google it, it is free.
Then build the project yourself.
Probably something in the .Net framework not installed on you computer.
Installing visual studio should fix that.
 
You will also need to load up the BS2 with the Serial Communition Fast.bs2 file.
Look in the zip file attached to my first post
 
And you will need to put the attached XML's into the C:/ directory along with the approriate MP3's
I will let you download those legally or illegally yourself.
Look in the code for the specific names.
Then you need to assign the pins to the appriote lights in your yard.
 
I know my code is hard to read, i need to clean it up a bit.
 
Its not going to be just plug and play, you will at least have to adjust the channel layout in the C++ code for the different songs.
 
 
 
 
 
 

File Attachment :
Here Comes Santa Clause.txt   231KB (text/plain)
This file has been downloaded 182 time(s).

File Attachment :
Jingle Bells Remix.txt   514KB (text/plain)
This file has been downloaded 112 time(s).

File Attachment :
Let It Snow.txt   439KB (text/plain)
This file has been downloaded 108 time(s).

File Attachment :
Wizards In Winter.txt   494KB (text/plain)
This file has been downloaded 116 time(s).
Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/24/2008 11:11 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

If anyone wants the full project directory just email me lboucher@vt.edu.

Then you can easilly open it up in visual studio express 2008.

Also i have fixed several bugs since my first post, so you will want the latest code.

Also this is hardcoded to use COM4, so a user would need to edit that.

Lucas


Back to Top
 

lboucher
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 118
 
   Posted 12/25/2008 9:17 PM (GMT -8)    Quote This PostAlert An Admin About This Post.

Added video of two more songs.

My lights to Let It Snow
http://www.youtube.com/watch?v=6nZLGOxQDnA

My lights to Jingle Bells Techno
http://www.youtube.com/watch?v=6QhCEZxfU38

Back to Top
 

sam_sam_sam
Soldering Junkie



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined May 2005
Total Posts : 1409
 
   Posted 12/26/2008 5:02 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Iboucher
 
Thank You for sharing this web page on how to use Transistors this will help me out a lot
 
 
http://www.kpsec.freeuk.com/trancirc.htm


  Thanks for any idea that you may have and all of your time finding them
 
 
 
 
Sam

Back to Top
 

SmiSmiles
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2008
Total Posts : 1
 
   Posted 12/26/2008 12:50 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Wow, thank you, it's inspired me for next year. My wife i know won't be as forgiving about the time it will take as yours was, so I'm spanning it out over an 11 month period.

Planning on using triacs and optocouplers instead of relays and transistors, already have them ordered from Mouser. They should last a much longer time then the 100,000 cycles for the relays, and give me much more available current for each channel, and cheaper. The only thing I know I'll miss is the clicking of all the relays.
Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
42 posts in this thread.
Viewing Page :
 1  2 
 
Forum Information
Currently it is Tuesday, February 09, 2010 3:16 AM (GMT -8)
There are a total of 415,988 posts in 57,637 threads.
In the last 3 days there were 78 new threads and 885 reply posts. View Active Threads
Who's Online
This forum has 18517 registered members. Please welcome our newest member, try388.
49 Guest(s), 7 Registered Member(s) are currently online.  Details
Graham Stabler, humanoido, Bob Lawrence (VE1RLL), computer guy, Rick Brooks, JohnandElspeth, mikestefoy