Designing a Multi Node LED PWM Lamp

Designing a Multi Node LED PWM Lamp
This instructable will show how I designed a LED PWM Lamp controller. Multiple lamps can be strung together to make large strings of light.

Creating some blinky LED lights for Christmas has always been on my wish list. Last Christmas season I really started thinking about building something. My first thought was, each LED lamp could simply be connected to a pair of wires. The power to the LED lamps could be an AC signal that would sweep from a low frequency to a high frequency. A band-pass filter built into each lamp would turn on the LED when the frequency matched the center frequency of the band-pass filter. If the band-pass filters, were setup right, a LED chase sequence could be made. Really, by jumping to different frequencies instead of sweeping, any one of the LEDs could be turned on. Using an H-Bridge driver chip, driving the desired frequency down the wires should not be too hard.

Well, I just stink at analog design - I am more of software kinda of a guy. After a couple of bench tests, I quickly gave up on using analog.

What I really wanted was a LED lamp that could be fully controlled to display any color I wanted. Oh, and it should be capable of using PWM (pulse width modulation) so that the LEDs can be ramped on, or off in really cool patterns.

What follows in this instructable is a description of a really cool design based on the a Microchip microprocessor that fell out of my desire for Christmas tree lights.

Have a quick look at the video below to see quickly what the Kemper LED PWM Lamp Controller is capable of displaying.



Note, it is hard to get a good video of LEDs in action which are using PWM for intensity control. It is the same problem when you try to video a computer monitor. The 60Hz of the LEDs get into a beat frequency fight with the 30Hz of the camcorder. Therefore, while there are times that the video of the LEDs are a bit "glitchy", this is not really the case. The LEDs do not appear to have any glitches when viewed by the human eye. See the software step below for more discussion about video tapping of LEDs.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Design Goals

Design Goals
After spending the Christmas break thinking about this project I came up with a wish list.

Here are some of the features (sorted in order) I wanted with my LED Controller:
1) Each LED lamp must be as inexpensive as possible. A string of 100 lamps will cost a bunch if each lamp cost a lot. Cost, therefore, is a major factor.
2) Each lamp will have a tiny micro on board which will drive the LEDs. The tiny micro will generate PWM signals so that the LEDs can be dimmed, or faded. LEDs can look harsh when simply switched on, and off. Using PWM signals the LEDs can be faded up and down without the hard edges normal to LEDs.
3) To keep wiring simple each lamp will accept commands using a two-wire interface. Power and communications will share the same two wires. The commands to the lamps will tell the on board micro which of the LEDs to drive with PWM.
4) Must look cool! I guess this should really be renumbered so it's number one.

Here are some of the minor design goals (no particular order):
1) For development, must be easy to reflash / reprogram in-circuit.
2) A PC should be able to generate the commands to the lamps. This makes developing patterns much easier than using another embedded micro.
3) Each lamp should have a unique address. Each LED, within a lamp, must also be uniquely addressable.
4) The command protocol should support MANY lamps on one string of wires. The current design supports 128 lamps on one string. With 4 LEDs per lamp that works out to 512 LEDs on one string of two wires! Also note, each of those 512 LEDs has full PWM driving it.
5) The protocol should have a command that says, "Start fading the LED from this level to that level". Once fading starts, other LEDs can also be setup and set into fading on the same lamp. In other words, setup an LED into a fading pattern and then forget it knowing that the LED will carry out the command. This implies multitasking software on the micro!
6) There should be global commands that affect all lamps at once. Therefore, all LEDs can be commanded using just one command.

Here are some really minor design goals (again, no particular order):
1) Need a way to have a lamp report back when a comm error occurs. This would allow the command to be resent.
2) The command protocol needs a way to have a fancy global match pattern. This would allow every x number of lamps to be selected with one command. This would make it easier to make chase patterns with large numbers of lamps. As an example, this would allow a command to be sent to every third lamp on a string of lamps. Then, the next command could be sent to the next group of three.
3) An auto comm polarity detect logic system would also be great. Then, the polarity of the two feed wires to the LED lamps becomes unimportant. See hardware section for more on this feature.
« Previous StepDownload PDFView All StepsNext Step »
38 comments
Jan 15, 2011. 10:39 PMChicagoHOG27 says:
I would like to chat with you about your strand of lights, costs, etc. Please email me when you get a moment. I see you're in Detroit. I'm in Chicago. This has to do with a unique application of your lights, and I know nothing about electrical engineering, circuits or LEDs. You seem to know your stuff, so maybe we can help each other.
Jan 1, 2011. 6:57 AMcarl_can says:
(removed by author or community request)
Jan 3, 2011. 6:08 AMcarl_can says:
I will. Thanks again, your writings are interesting.
Jun 3, 2009. 11:34 AMCyberBill says:
Wow, this is fantastic!!! How do you handle addressing of the individual boards? Is each one programmed (hard coded) with an address when you flash them?
Dec 6, 2010. 5:53 AMcarl_can says:
(removed by author or community request)
Apr 27, 2010. 1:53 AMTruemusicfan says:
Excellent device.. but too hard to create. :(
Music base
Oct 8, 2010. 8:15 AMkAbad says:
Not that hard to create just follow the connector!

l-arginine
Oct 7, 2010. 6:59 AMcris2per says:
The simplest adapter uses a linear regulator. Switching adapters are much more complex. The attached reference shows the steps involved in constructing a typical linear power supply. It's a good place to start.

hollywood bistro
Jul 1, 2009. 1:06 PMdagenius says:
could you use one rgb led and a white, instead of having one of each? I think that it would actually be cheaper.
Sep 9, 2010. 8:03 AMbriantan says:
Marketing is the all-encompassing process of getting a product or service in the hands of your customers. The steps involved include market analysis, product creation, advertising strategy and distribution. advertising agency phoenix
Aug 25, 2010. 6:48 AMrhobb says:
Every smart investor may think of obtaining profits in the scenario of rising it's prices. What a better way than to sell your gold pieces that you no longer use!sell gold florida
Mar 23, 2010. 4:27 AMwaver says:
that was really pretty neat!
you are the BOSS always!

Thanks a lot for sharing your ideas with us.
Mar 2, 2010. 2:32 PMTgwizman says:
I Really Like The Idea!

I was wondering if you could create one that had spot to plug it into your pc, then when someone bought it, they could program what lights lit up when and where they wanted to. You should also create a program in visual basic to go along with this.

After all said and done, this "Programmable Light Strip" could be used for a lot of things. It would also bring in the cash!!! A strip of 50 lights in a row with a control box on one end that had a "stow away usb" computer plug-in is something I would pay big bucks for! (Along with a cd of the program...) If you started mass producing these, you could sell them for around fifty us dollars each!
Dec 6, 2009. 9:40 AMkmossman says:
(removed by author or community request)
Jan 20, 2010. 9:49 PMkmanju286 says:
hi , this is manjunath iam cureently working as an teraching assistant in dept of E.C.E . in kakinada.
  my home town is tirumala iam planning to make attractable frame photos with leds i had seen leds its very nice plz send ur mobile number if it is possible
Nov 5, 2009. 5:58 PMphingle says:
Very cool ,  didn't think i would be impressed with another LED project but this was great.

Keep it up
Aug 20, 2009. 10:36 PMhuntblack says:
I will pay for this how much ?
Oct 13, 2009. 6:19 PMtechgeek13 says:
Did you ever make that youtube video? I would like to see the simple version.
Oct 14, 2009. 1:17 PMtechgeek13 says:
Thanks, I really appreciate it.
Jul 20, 2009. 5:00 PMPAKIS-RULEZ says:
hi bro just a noob here 1: which led lamps u r using and where you are getting them from a place where we can buy this or if we can make our own. 2: you didn't list the things needed in quantity. 3: please post the circuit diagram and things needed for it. in list format thanks. i am realling looking forward to making this.
Jul 21, 2009. 12:24 PMPAKIS-RULEZ says:
thanks for hte quick reply bro y can't we use a rgb led instead of using r w b leds each rgb led will cost 0.38 cents 500 pcs 5mm Ultra RGB LED 2000-4000 mcd Free Resistors Buy It Now $186.99 Free shipping i am not that gud in electronics if we use a rgb then all you gotta do is program to flow right code to blink each color what ya think
Jun 6, 2009. 7:17 AMdagenius says:
this is some very useful info. not only on the project that you are doing, but also on some micros.
Jun 5, 2009. 7:40 PMGeekFans says:

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
53
Followers
16
Author:jimk3038(www.ph-elec.com)
Founder of Powerhouse Electronics. For more info goto: www.ph-elec.com