Workbench Creations Blog

Workbench Creations

Workbench Creations is the place for conversation and discussion about do-it-yourself (DIY) projects. This DIY blog will feature projects completed by its owner as well as projects completed by other do-it-yourselfers. Workbench Creations is the place where DIYers can discuss ideas, learn about what others have done, and share their expertise.

Previous in Blog: Holiday Tables   Next in Blog: Punching Bag
Close
Close
Close
20 comments
Rating: Comments: Nested

Christmas Light Project

Posted November 28, 2007 11:00 AM by bhankiii
Pathfinder Tags: Christmas lights mosfet PIC

Hello, bhankiii here. frankd20 suggested I repost this on his Workbench Creations blog.

About this time last year, I was watching Star Trek - Generations, - the part where Picard is caught in the Nexus and he's looking at the Christmas tree. There are these glass balls on the tree that light up with little slow motion light explosions inside.And that made me want to make some. So, over the past year, with some input from CR4 members, I made a set.

I bought a bunch of blown glass balls - I think they sell them as garden gazing balls - at Hobby Lobby. They are in two sizes, soccer ball or basket ball size, and come in a variety of colors. Each ball has a neck about two inches long and 2 inches in diameter.

The idea was to place a circuit in each ball that would control a 12V xenon lamp - the kind they use in outdoor landscape lights - and have the lamp come on and off slowly, like you were controlling it with a dimmer.

My original plan was to make an analog circuit, using a 555 timer, and a ramp generator and pulse width modulator to control the light. I discussed the idea here on CR4,Someone recommended using a PIC microcontroller. I wasn't keen on the idea because "microcontroller" to me means a chip with 100 pins on it, and I didn't want to deal with that, but then I stumbled across Microchip's family of 8 pin microcontrollers, and I was sold.

I use the PIC chip to drive a MOSFET switch to pulse width modulate the lamp.

I programmed the microcontroller with variables for the ramp up/down time, the on time and the off time, and a value for the initial delay after power on. At first I thought I would make each ball with different timing variables - some would blink quickly, others would blink more slowly. Eventually I realized how boring that would be, and I modified the program. By playing around with a spreadsheet I was able to put together a set of values for each of the variables that gave me acceptable duty cycles. By cycling through the variables in a software loop, I was able to create 336 different timing combinations in a sequence that lasts about 1 1/2 hours.

The balls come on in sequence, over about three minutes, then execute the same series of 336 combinations, and then repeat. The effect looks somewhat random, but it's actually not, each timing instance moves from ball to ball. But the movement is so slow that the pattern is only subconsciously felt, if at all. The desired effect was to make people stop and watch for a few moments as they passed by.

This was my first prototype:

After verifying the electrical design I had to design the circuit board. I downloaded a free CAD program from the board manufacturer (PCBExpress) and laid it out:

I ordered 20 boards and parts, and built 18 units - enough for my 17 balls, plus a spare:

The next trick was to figure out how to mount the circuit board in the glass balls. It needed to be weatherproof and watertight, but also accessible in case I needed to repair something. I discovered that 2 inch PVC fittings just fit over the necks of the balls, so I glued threaded couplings over the necks, and mounted the circuit boards into threaded caps, sealing all the holes with silicone. I used standard brass lamp hardware and chain to put it all together:

Now, I just needed to program the microcontrollers. I had designed in a connector on each board that connected to the PIC programmer, so that was easy.

Next was the initial testing / burn-in. I set them up in my den and ran them 24 hours a day for a week. Here's the link to a youtube video of that:

http://www.youtube.com/watch?v=coVGu0wy3X4

All that remained was to string the 12V cable and hang them in my tree:

Night fell, and this is how they look:

http://www.youtube.com/watch?v=O2V5ekXMxjU

They've been up for a about a week now. The response from the neighbors and passing traffic has been great.

If you're interested in the details of the schematic, or the PIC assembly code, shoot me an email and I'll send it to you.

Reply

Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United States - Member - New Member Technical Fields - Technical Writing - New Member Popular Science - Weaponology - Organizer Hobbies - Target Shooting - New Member Engineering Fields - Nuclear Engineering - New Member

Join Date: Mar 2005
Posts: 2969
Good Answers: 33
#1

Re: Christmas light project

11/28/2007 11:34 AM

Thanks for sharing this, bhankiii. The written part alone is very informative, and the pictures and YouTube video are a real plus. Your efforts here are greatly appreciated.

Hopefully, seeing you take the proverbial "first step" will encourage other CR4ers to share their own DIY stories. If anyone out there would like to contribute to Workbench Creations, please send a private message to frankd20 (the blog's owner) or to me, Moose. You don't need to be the next Ernest Hemingway. You just need to have an interesting DIY project and a tale to tell. We'd like to hear from you.

Reply
Power-User
United States - Member - Popular Science - Evolution - Aren't we still evolving?

Join Date: Feb 2007
Location: Troy, NY
Posts: 194
#2

Re: Christmas Light Project

11/28/2007 11:45 AM

bhankiii,

These are beautiful! I want some for my yard! All year round, not just Christmas time.

Julie

Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#3
In reply to #2

Re: Christmas Light Project

11/28/2007 11:47 AM

Thanks. I won't keep them up all year, but I do think I'm going to leave the 12V wiring in the tree - maybe I'll hook up something else.

Reply
Anonymous Poster
#4

Re: Christmas Light Project

11/29/2007 10:31 AM

Your lights are fantastic and just what I need for a tree in my front garden - should look good with the River Forth behind them. The lighting sets available here are too tiny to give a good effect but those should do the trick and I'm impressed with your design work.

Hope the rest of your Christmas hits as good a note as the son et lumiere.

Tom

Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#5
In reply to #4

Re: Christmas Light Project

11/29/2007 10:45 AM

Thanks! Email me if you need the details to make a set.

Reply
Guru
Popular Science - Cosmology - New Member United States - Member - New Member

Join Date: Apr 2007
Location: 33.49N, 84.19W
Posts: 1475
Good Answers: 3
#6

Re: Christmas Light Project

11/29/2007 7:49 PM

Hi bhankii,

Great project. I just watched the video with my wife and she loves it. She did make a constructive suggestion though. She thought it would be more interesting if all the lights came on in unison and then began going off in a random manner. Sort of like the inverse of what you have now.

Or maybe switch from all off, going on randomly to all on, going off randomly.

Just a thought.

-John

__________________
All worthwhile programmers know that constants always vary.
Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#11
In reply to #6

Re: Christmas Light Project

11/30/2007 5:01 PM

That wouldn't be all that hard to do. I actually have to invert the control signal coming out of the logic - a "high" output turns the lights "off".

Reply
Guru
Popular Science - Cosmology - New Member United States - Member - New Member

Join Date: Apr 2007
Location: 33.49N, 84.19W
Posts: 1475
Good Answers: 3
#12
In reply to #11

Re: Christmas Light Project

11/30/2007 5:32 PM

If you do it I (& the wife) would like to see the video of it (for comparison).

Love your dog!

-John

__________________
All worthwhile programmers know that constants always vary.
Reply
Guru
Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Brecksville, OH
Posts: 1621
Good Answers: 18
#7

Re: Christmas Light Project

11/29/2007 9:07 PM

Hi bhankii,


What a beautiful display. The You Tube video is great. What a nice way to brighten up the night.

__________________
"Consensus Science got us into this mess, then why can't it get us out?" : Rephrase of Will Rogers Comment
Reply
The Architect
Engineering Fields - Software Engineering - S/W Architect Popular Science - Evolution - Fascinating! Fans of Old Computers - TRS-80 - A fine computer United States - US - Statue of Liberty - NY

Join Date: Dec 2004
Location: GlobalSpec, Troy NY
Posts: 386
Good Answers: 5
#8
In reply to #7

Re: Christmas Light Project

11/30/2007 4:49 PM

Yes, this is a nice project and the video really brings is home.

I also wandered into bhankii's other videos, including this dog video that had me laughing. (YouTube is such a great time waster!)

__________________
Mark Gaulin
Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#9
In reply to #8

Re: Christmas Light Project

11/30/2007 4:57 PM

I resent the implication that watching my dog is not a good use of your time!

Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#10
In reply to #7

Re: Christmas Light Project

11/30/2007 4:59 PM

Thanks!

Reply
Anonymous Poster
#13

Re: Christmas Light Project

12/05/2007 1:23 PM

i did not realize that workbench creations was 'open to the public'... The only posts i have seen here are from/by frankd20, it would be interesting to also see what others have created.

Reply
Anonymous Poster
#14

Re: Christmas Light Project

02/11/2008 7:38 PM

Newbie, here. I'd love to try this. Could you pls send schematic, etc.? Thanks in advance.

Surfer (DOT) Gurl (AT) gmail (DOT) com

web addy protected from bots

Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#15
In reply to #14

Re: Christmas Light Project

02/12/2008 10:06 AM

I will send you a zipfile later today.

Reply
Anonymous Poster
#18
In reply to #15

Re: Christmas Light Project

02/13/2008 9:36 AM

Thanks so much! This looks daunting, but fun.

Reply
Guru
Popular Science - Weaponology - New Member Engineering Fields - Engineering Physics - New Member Engineering Fields - Nuclear Engineering - New Member

Join Date: Dec 2007
Location: No. VA, USA (No, it does NOTu mean "won't go"!)
Posts: 1796
Good Answers: 75
#16

Re: Christmas Light Project

02/13/2008 8:21 AM

Hey, I can't watch the vids on my PC, since YouTube is blocked to us (sort of a "YouTube is not for YOUtube!" arrangement. I think my bosses think watching your dog is a waste of time, too!!), but I'd love to get the zip file you mention sending to another correspondent, because I would LOVE to build some of these. And I think my wife would really be pleased by them.

Great design, and thanks a heap.

Micah

__________________
Been away a while. Miss all my old friends. Some of you I KNOW are still around. Where are the rest?
Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#17
In reply to #16

Re: Christmas Light Project

02/13/2008 9:32 AM

Send me an email (on CR4) with your email address and I'm send you the file.

Reply
Anonymous Poster
#19

Re: Christmas Light Project

10/26/2008 12:48 PM

That´s great and I would like to build one. Can you send to my e-mail your project files?

thanks and congratulations

Charles

apacneiva@hotmail.com

Reply
Participant

Join Date: Dec 2007
Posts: 1
#20

Re: Christmas Light Project

11/01/2008 12:49 PM

anyone know where I can get 10w 12v Xenon bulbs in the UK? Have tried both RS and Maplin. Going to have a look in Halfords as a last ditched effort..

Reply
Reply to Blog Entry 20 comments
Copy to Clipboard

Users who posted comments:

agua_doc (1); Anonymous Poster (5); bhankiii (7); Johnjohn (2); julie (1); mgaulin (1); micahd02 (1); scot101 (1); Steve Melito (1)

Previous in Blog: Holiday Tables   Next in Blog: Punching Bag
You might be interested in: Ball Bearings, Ball Splines

Advertisement