What is the best way to wire up 30 LED's to a Propeller?
CAJ2
Posts: 2
Hi Everyone,
I am wondering what is the best way to wire up 30 LED's to a Propeller? I actually have the Robot Control Board that is on the Stingray, and I don't know how exactly to go about doing this. If anyone can help me I would appreciate it.
CAJ2
I am wondering what is the best way to wire up 30 LED's to a Propeller? I actually have the Robot Control Board that is on the Stingray, and I don't know how exactly to go about doing this. If anyone can help me I would appreciate it.
CAJ2
Comments
Thanks,
CAJ2
http://bildr.org/2011/02/74hc595/
You can also use an LED driver like the TLC5940 from Texas Instruments - This chip gives you a 12-bit brightness value for each LED, and doesn't require the current limiting resistor because it has a constant current driver built in. They can be daisy chained together like shift registers. There are at least two drivers for them in the Obex, too.
Actually, for this, your job is easier - Yes, you can program them to come on at once - Wire them all up in parallel. Give each LED (or strip of them) a current limiting resistor, and use a transistor to switch the power to them. You can run a number of LEDs in series as long as the sum of their forward voltage ratings is lower than the supply voltage. So, if you have a 1.5v forward voltage LED, two of them in series could be wired up to a 3.3v supply, but 3 of them in series wouldn't light up.
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=AS1108WL-ND
I have working code that supports nearly all its features, and my own blinking code as well.
requires SPI
regards
Dave M