Pages: [1]   Go Down
Author Topic: 3x9 LED Matrix direct driven?  (Read 1226 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hy,
I wanne build a 3x3x3 LED cube, but I first want to check my programm (not yet written). Can I drive 27 LED's directly with the Arduino Uno in this way? Picture Below.

Thanks
Robohac


* 3d_Cdadadube_Schaltplan.jpg (122.78 KB, 1682x922 - viewed 35 times.)
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8967
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that is exactly how I would wire them.   Driving them directly off 5v logic signals without current dropping resistors might be a problem if you were going to have any one LED on for more than a few milliseconds at a time.
Logged

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

Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

should there be 3 Resistors for safety? and which resistance should they have? (I am using standard 5mm red)

5V-1,9V = 3,1V
R = 3,1V /20mA = 3,1/0,02 V/A = 155 Ohm

Is that right?
« Last Edit: March 18, 2011, 02:05:34 am by Robohac » Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8967
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I directly drove a red LED 4-digit 7-segment display directly without problems.  Each digit was lit for 2 mS.  The display was running for two days straight without problems.  I suspect if you put in the dropping resistors you would end up with a dim display.

If you want to put in the resistors the calculation is correct but you would need 9 of them,  one per 'column', because each column only has one LED on at a time but each 'row' might have more than one 'column' lit.
Logged

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

Netherlands
Offline Offline
God Member
*****
Karma: 7
Posts: 658
A naughty mind is a joy forever.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wouldn't one possibly get problems when Leds are driven for longer as a few mS ?
While testing/programming, they could... be lit much longer.
9 leds on, sinked by one pin seems  a lot to me.

A circuit I've used came from Ledstyles.de, it's in German, non C++ and it uses a smaller brother, the attiny2313. It uses 3 transistors to sink the current, but the rest... is basically the same. smiley-grin

http://www.ledstyles.de/index.php?page=Attachment&attachmentID=5162&h=14fd27d042c0853320f7f045e11838b113fe8373

Link to the complete article :
http://www.ledstyles.de/fpost99870.html#post99870
« Last Edit: March 18, 2011, 10:08:45 am by Simpson_Jr » Logged

Pages: [1]   Go Up
Jump to: