to multiplex or not to multiplex..
Interactives
Posts: 83
Hello again smart people, I have another question about a project of mine for work. I have a map that requires 100 leds.. 50 blue, 50 green. Upon pushing a button, 25 of the blue lights blink for 3sec, go out, trigger an incandescent bulb to go on, then 5 green lights blink, go out, then trigger another incandescent bulb- all stays the same for five seconds or so, then resets. From a previous project I ordered some LN2803s that I was gonna use to run some relays with- so I suppose I could use one of those to control several different segments, though I'm not sure I could power all 100 leds. It seem like I would need a huge voltage source, since the blues and greens drop like 2V each. I've read some articles about multplexing led displays with stamp, but that seems like it might be overkill, since really only 30 out of the 100 LEDs have to do anything. Any suggestions?
Comments
If I correctly understood your post, there will be a maximum of 30 leds on at one time, is that correct?
Assuming so, with each led running at ~15 mA, that would require just less than 1/2 amp. Not such a big power supply.
Regarding the control of the leds to multiplex or not, for me one factor to determine the answer would depend on available board space. A very simple approach would be to cascade several shift registers, like the '595. The parallax sight has example code on using the '595s.
A single chip approach multiplexing is to use a MAX7219, which can control up to 64 individual LEDs.
Hope this info helps more than it confuses.
K
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA