Pages: [1]   Go Down
Author Topic: RGB Matrix  (Read 655 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 198
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody !
I would like to know if one can use analogs demultiplexers on PWM outputs, to use the PWM on many LEDs independents. My objective is to use the RGB Matrix of Sparkfun with Arduino Board. I use the PWM and the demultiplexers to put the color of LEDs of the row (3 PWM, one for the red, one for the green and one for the blue).
Thank you  smiley
« Last Edit: December 20, 2006, 02:13:05 pm by Vincent » Logged

malmö / berlin
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
fhp>--vs--<k3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i guess you could use a analog demultiplexer (4051) to light up rbg colour leds, but  with a De/Multiplexer you can just light up one led(one line) at the same time, so you have to update your matrix quit fast and you will lose a lot of the brightness of the leds, further more you can not use long delays anymore.

there are better ways to ligth up a LED matrix, the best would be a LED-driver (max7219) or i don't know how does your matrix look like but you could also youse the pwm as the the source and your other digitalpins as the ground and build your own little matrix. If you write a digitalPin to LOW they will be direklty conectet  to ground.  you also have to update this matrix quit fast but not as fast as the demultiplexer matrix, so you will not lose so much brightness.
In the past had taking place a lot of discussion about LED matrixs in this forum so check out the older post and discussions.

ha det bra
tomek
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 198
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you  smiley
In fact, the column is connected to the ground with digitalPin, and I put the color in the first line, then the second ... I don't understand how to use a max7219, I have only three PWM, so, I can put the color of one led only at the same time.  smiley-razz

http://vincentlenoir.d.free.fr/schema.png
« Last Edit: December 23, 2006, 10:08:45 am by Vincent » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 198
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In fact, the problem is to add PWM outputs on the Arduino board  :-/
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 198
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, but on a PWM, only 1 led is put on in the same time, so the current is not divided by 8 (moreover when I test the current on a PWM, I have 85mA, it's sufficient)

Thank   smiley  
Logged

Pages: [1]   Go Up
Jump to: