Go Down

Topic: LED Driver and PWM (Read 1 time) previous topic - next topic

sansmojo

Okay, I got my shift registers and am able to turn many LEDs on and off.  Your multiple LED circuit lets me light those LEDs at the same intensity (using PWM pins without the shift register).  But I need to combine these.  I need many LEDS at many different intensities.  Here is exactly what I'm doing:

I'll have 5 sets of LEDS.  Each set will be made up of 4 Red, 4 Green, and 4 Blue.  For one set of LEDs, I might want to set all Greens to 100, Reds to 255, Blues to 100.  The next set of LEDs will have different values.  This way each set of LEDs can be installed behind a sheet of paper ans something to diffuse the light into one color - thus all colors of the rainbow, hopefully!

Is my original assumption that I need a LED driver correct?  Or is there some way to force the shift register to output a PWM so I can have one pin of the shift register control one color of a set?  I've tried making the shift register do this with delays - lighting a red for 10ms, then off, then on for 10ms hoping it would be the same as sending a PWM of 30 to the Red.

Thanks!  Sorry I'm so confused.  I'm still learning.

Branton

Daniel

#6
Mar 15, 2007, 06:13 am Last Edit: Mar 15, 2007, 06:15 am by Daniel Reason: 1
hi

yes it sounds like you will need drivers. The general rule is that one Arduino pin can drive one LED. For multiple LED's driven from the same pin or signal you need a driver circuit.

If I understand you correctly, you want different levels for numerous groups of LED's: instead of a group of LED's going on/off, you want them to be able to be able to put out a range of light levels from dark to bright.

So....if you have more than 3 batches (for the existing PWM outs), you'll need some kind of analog expander chip.

You can't fake the PWM expander as you have been trying to do above.. it won't work. You'll need something that multiplexes one output into many.
They are talking about just that problem here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1173831471


D


Go Up