Offline
Newbie
Karma: 0
Posts: 11
|
 |
« on: July 13, 2011, 11:42:46 am » |
First, I'm an Arduino noob although I am getting comfortable with many concepts. I have excellent C programming skills but minimal electronics skills. I need some help assessing a project. My project is a lighting a small scale fake tree (24 inches tall) with between 25 and 30 LEDs that will be animated in a number of patterns (twinkling, chases, etc.) so independently controlling the LEDs is a must.
I would like to use RGB LEDs. However, I could get by with bi-color LEDs. I would prefer PWM the LEDs for fading effects if feasible.
I guess one question is whether there are ways to independently control RGB LEDs with less than 3 pins per LED. Such as pulsing the color information on three pins to multiple LEDs and control the cathode to light the correct LED (I'm thinking like how an interlaced computer display draws every other line).
Is there a shield that would allow me to control 25-30 RGB LEDs independently?
Any ideas would be helpful.
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #1 on: July 13, 2011, 12:10:06 pm » |
Standard 3-color LED has 4 pins, anode/3 cathode, or cathode/3 anode. If you use a part like TLC5940, can have uC controlled PWM to 16 current sink LEDs simultaneoulsy, so anode/3cathode is preferred to keep parts count down. 25-30 LEDs = 75-90 outputs to control. /16 = 5 or 6 [edit ->] TLC5940s.
However, you say 'RGB LEDs with less than 3 pins per LED" - do you have a link to the part you have in mind?
|
|
|
|
« Last Edit: July 13, 2011, 12:12:07 pm by CrossRoads »
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« Reply #2 on: July 13, 2011, 12:24:53 pm » |
Crossroads, I think the OP is asking if there is a way to control them using less than 3 pins for each LED. My recommendation would be as many TLC5940s as needed, daisychained together.
|
|
|
|
|
Logged
|
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?" The cat asked, "Where do you want to go?" "I don't know," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #3 on: July 13, 2011, 01:26:59 pm » |
Correct Bilbo - I was hoping for way to be more efficient with less pins (via code) but it sounds like "as many TLC5940s as needed" is the best approach. Or I was hoping for a pre-existing shield with that many PWM outputs.
Thanks for the input.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Tesla Member
Karma: 71
Posts: 6596
Arduino rocks
|
 |
« Reply #5 on: July 13, 2011, 06:36:09 pm » |
You might be interested to know you can now get RGB LEDs in strip form complete with driver chips that allow individual control via some sort of serial interface to every LED - not cheap, but then 32 RGB leds aren't that cheap anyway - looks interesting and might be useful for this project: http://www.sparkfun.com/products/10312
|
|
|
|
|
Logged
|
|
|
|
|
Los Angeles, CA, United States
Offline
Full Member
Karma: 2
Posts: 206
|
 |
« Reply #6 on: July 13, 2011, 07:51:34 pm » |
You might be interested to know you can now get RGB LEDs in strip form complete with driver chips that allow individual control via some sort of serial interface to every LED - not cheap, but then 32 RGB leds aren't that cheap anyway - looks interesting and might be useful for this project: http://www.sparkfun.com/products/10312And as a bonus, Sparkfun has supplied a example code! I am already getting this for light painting.
|
|
|
|
|
Logged
|
C program run. C program crash. C programmer quit.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 11
|
 |
« Reply #7 on: July 14, 2011, 12:44:48 am » |
That shield looks great but can you really independently control 64 RGB LEDs? There doesn't seem to be enough pins! Or is this some sort of multiplexing scheme that share color information between neighboring LEDs? Keep in mind that I am not building a matrix or a cube. The design would be 25-30 LEDs that appear to be randomly placed in a model tree (kinda like independent RGB lights on a little Christmas tree).
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #8 on: July 14, 2011, 01:19:21 am » |
I would go 5 RGBs each on 5 TLC5940's then, using 15 of 16 pins. 5 1/3 if you can keep track of one LED being spread over 2 parts.
|
|
|
|
|
Logged
|
|
|
|
|
|