Pages: [1]   Go Down
Author Topic: fading multiple led's  (Read 832 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

i am working on a poster with printed quotes, the idea is the behind every quote it will be a row of LED's, every quote ( row of LED ) will fade in and out, in a way that the quotes will be enlightened in a random fashion.

i will need 29 rows of LEDS, my problem how to connect these to the arduino, can i use shift registers to accomplish that ? what is the best way to do it ? any help will be appreciated since i am a beginner in arduino.

Thanks
Logged

Central Europe
Offline Offline
Edison Member
*
Karma: 6
Posts: 1220
Use the Source, Luke.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Doing it with regular shift registers will be a pain. I would take 2 of the 16 channel LED drivers from Texas Instruments TLC59xx. They offer individual PWM for each channel and exist even in version that can drive up to 120mA per channel. They cost a little more, but are worth the money.

Korman
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8107
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Another way to get that many PWM outputs, if you only need one or two at a time, is two 74159 1 of 16 decoders.  You hook four data pins to the address pins and one PWM output to the strobe pin on each chip.   You will even be able to cross-fade between the two sets of 16 lights because each will be on a different PWM output.  That would be cool.  You will probably need a transistor to drive each line of LEDs.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for some quick answers, i 'am quite a newbie in electronics and since i couldn't really find documentation for the SN74159, i will go with the TLC5940, and if i understand you correct

- i need to have 29 TLC5940, each one controlling a row of LED's ( 10 led's in each row )
- each TLC5940 will have it is own resistance
- the TLC5940 will have their own power supply.

is it understood right ?

how will i hook the TLC5940 together, and to the arduino ?
Logged

Manchester, New Hampshire
Offline Offline
Edison Member
*
Karma: 1
Posts: 1291
Propmaker
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you fading a whole row at a time?  If so, you don't need one shift register per row.  You need one channel per row, and each shift register will have 8.  So you will need 4 shift registers.
Logged

Derby
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or if he uses the TLC5940, he'll just need 2 of them.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ah i see ..  then a row of LED for every output pin of the TLC5940 ?
And yes i need to fade one row at a time

but did i miss something, can i really use shift registers ti fade a row of LED's i thought i can only switch these on and off, with them
Logged

Manchester, New Hampshire
Offline Offline
Edison Member
*
Karma: 1
Posts: 1291
Propmaker
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All fading an LED is is switching it on and off really fast.  The TLC5940 will do it for you.  With a high power shift register like the TPIC6B595, you'd have to do it manually.  If you do it manually, that uses a lot of CPU time, but if you're not doing much else, that won't be a problem.
Logged

Pages: [1]   Go Up
Jump to: