Pages: [1]   Go Down
Author Topic: LED Matrix Fading with TLC5940 in column-row scanning possible?  (Read 768 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I want to make dynamic patterns on a 8x24 LED matrix, with fading effects on each individual LED. I know I can use TLC5940 to expand the PWM outputs of my arduino nano. But can I connect the LEDs in the column-row scanning configuration while still having these effects? I hope to save up the number of pins I have to use. Thanks
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5494
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I want to make dynamic patterns on a 8x24 LED matrix, with fading effects on each individual LED. I know I can use TLC5940 to expand the PWM outputs of my arduino nano. But can I connect the LEDs in the column-row scanning configuration while still having these effects? I hope to save up the number of pins I have to use. Thanks

It should be possible, yes. You'll probably have to scan 8x8 then 8x16, so 16 steps in total for the scan (ie. 8+8).

If you're using the TLC5940 library you'll have to add the code to switch the rows into the interrupt handler which generates the XLAT pulses.

(You'll see what that means when you dig into the library code...)
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1098
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The answer to this is yes.  You can do either column or row scanning depending on the type of matrix.  The TLC5940 can only drive the anodes so if the matrix is "Anode Row Cathode Column" you have to drive it row-wise with the TLC5940 and scan the columns with +5V.  If the matrix is "Anode Column Cathode Row" you have to drive it column-wise with the TLC5940 and scan the rows with +5V .  So you set the "channels" for the next row or column and move the current row or column +5V on to the next one, repeat at about 800Hz.  So there is no choice there, but it can drive either type of matrix.  Personally, I like row-scanning.  It makes scrolling text very easy.  Here are some people doing it:

 

« Last Edit: October 11, 2012, 02:45:18 pm by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Pages: [1]   Go Up
Jump to: