simple 8x8 matrix

hi, im working on a simple 8x8 LED matrix. the 74HC595 seems like a pretty popular package, it goods enough for simple applications and can source and sink current. ive been reading for a few hours today about LED matrices:

if it(74HC595) can both source and sink, why does this scheme: https://blob-s-docs.googlegroups.com/docs/OgAAADCXUu6XJKCdIeO-sqNQ2HeE6-GhjRewTfyYTyp1_WBNu4_aOFZM90EpRAviUX7Wwf4mwmumhVdCRagxLZ6E5S4A15jOjCY4kbfQtC2i_PFgZ8TahVpahz0m have a uln2003 on the sinking side?

also, this IC is pretty lame on current ability(75ma max, +/-6ma per out pin). what is another arduino compatible, High current, PWM enabled(to dim LEDS), and can both source+sink current? if this doesn't exist whats the easiest way to still use ~3 arduino pins.

i don't think what i want exists, instead i would need a TLC5940 for sinking and then a MIC2981 for sourcing. but, the TLC5940 can be daisy chained and the MIC cant. could i use a 74HC595 to reduce the number of arduino pins the MIC uses?

thanks

The ULN2003 provides the necessary current to the matrix (presumably from an external power source) because the arduino does not have the capability to power that many LEDs.

could i use a 74HC595 to reduce the number of arduino pins the MIC uses?

yes.

so if i wanted to use these: http://parts.digikey.com/1/parts/684595-led-5mm-5v-red-diffused-ssl-lx5093id-5v.html (Current - Test 20mA)

i would need to use the the higher current setup then right?

I used 6 TLC5940's for my stairs project. I have grown fond of these controllers. They offer so much capability for the price. I've bought 20 of them off eBay for a very good price.

http://arduino.cc/forum/index.php/topic,76094.0.html

I could have used 3 and multiplexed but I wanted to ensure the every LED had the most current available to it. :slight_smile:

They are working great!

I started the project trying to use AS1107's but couldn't get it stable with RGB LEDs. They source and sink current and have digital and analog brightness control. I will be using them on a LED matrix in the near future.

If you are willing to wait a bit, look to eBay for your LED needs as well. I've bought common anode diffused, common cathode diffused and common anode non-diffused RGB LEDs from there as well as 1000 blue LEDs. As a matter of fact, I've spent about $1000 over the past two months on eBay buying stuff mostly from overseas. LOL. I'm new to this hobby and have gone overboard like I do with my other hobbies.

"Millicandela Rating: 20mcd "

Not very bright parts.

Might want to look at these instead

Will be much brighter with 6-8mA from a 74HC595.

Set them up like this. Arduino can drive Anodes high directly, or drive from 74HC595 if need to save a few pins.
NPN transistors can be be replaced with ULN2803, on output of Arduino pins, or from 74HC595.
Or use this
http://www.ti.com/lit/ds/symlink/tpic6595.pdf Shift register with high current sink capability.

that was my first time buying LEDs, and i was going more for status LEDs not light shows(like i am now). but i did get some RGB LEDs (3 of them for testing) that are ~750mcd with same 20ma. thanks for the link, i guess digikey isn't so great(.5 vs .16 cents)

would the tpic6595 replace both the uln2003 and the 74HC595 for sinking current?

crap! i just realized that my RGB LEDs are only 3.3v, 1.9v and i put 5v into them... :D. They're not broke, but where can i get bulk RGB LEDs for cheap? i cant find any, and what about the voltage, are their any that use 5v instead of 3.3 or 1.9v etc? or do i have power them individually(each color)?

tpic6595 replaces both uln2803 (8 bits, ULN2003 is only 7) & 74HC595.

Current limit resistors dissipate the voltage that the LED does not.
Did you put 5V across them with ground on the other side?

How'd you jump from simple 8x8 matrix to needing RGB LEDs?

How do these compare to what you've found?
http://www.superbrightleds.com/cat/component-leds/filter/Color,RGB,3,103:

You need a current limit resistor on the unique cathodes (for a common anode part) or on the unique anodes (for a common cathode part).
Or use a part like TLC5940, 16 outputs, so can control 5 common anode RGB LEDs, plus 1/3 of another, and has built in current limiting so no resistors are needed.

"Did you put 5V across them with ground on the other side?"
nah i had resistors, so i think im good. they were random values from 220ohm to 330 ohm, as i didn't take the time to separate them from the bag.

"How'd you jump from simple 8x8 matrix to needing RGB LEDs?"
im eventually planning on using GRB LEDs and i just plugged in the 3 RGB that i had to test them.

"http://www.superbrightleds.com/cat/component-leds/filter/Color,RGB,3,103"
nice link, 79 cents a piece for common cathode or anode. the 3 RGB LEDs(common cathode) i bought to mess around with were a little over a dollar a piece.

"The ULN2003 provides the necessary current to the matrix (presumably from an external power source) because the arduino does not have the capability to power that many LEDs."
so i wouldnt have to use the uln2803 if i used a 5v 10A computer PSU to power the whole setup?

ok so i drew up ways i could do this project(warning: some really crappy scheme):
https://blob-s-docs.googlegroups.com/docs/OgAAADCXUu6XJKCdIeO-sqNQ2HeE6-GhjRewTfyYTyp1_WBNu4_aOFZM90EpRAviUX7Wwf4mwmumhVdCRagxLZ6E5S4A15jOjCY4kbfQtC2i_PFgZ8TahVpahz0m
(attached)
(attached)

i think ill go with the MAX1719s, they are much easier to use.

I've had good experience buying RGB LEDs from eBay. If you buy in bulk you can get good prices. For example, I was able to buy 200 7000mcd RGBs for $30 (they list the price as about $5, and then pull $25 from you for shipping). Comes out to about .15 per part. If youre willing to wait around a couple weeks for shipping id say that's definitely the cheapest option.