No, 74xx595 is logically the same but has much more limited current capability. You would need to limit your leds to around 8mA each. Would that be bright enough?
I am surprised Paul__B did not suggest max7219 for your leds. Did i miss something? One max7219 can run up to 64 leds and needs only 3 digital outputs from the Arduino.
PaulRB:
I am surprised Paul__B did not suggest max7219 for your leds. Did i miss something? One max7219 can run up to 64 LEDs and needs only 3 digital outputs from the Arduino.
Hah! You caught me there!
I was thinking that he might want some serious current to drive the LEDs, so I mentioned the TPIC to "cover all bases". If they are only indicators, then a MAX7219 certainly is the go.
OK, if you have - or are getting - one of those boards which is virtually as cheap as the chip alone and the easiest way to wire it up, then assemble all except the headers that mount the matrix; just solder those connections to the matrix you have made of the LEDs you have. If you are making a permanent assembly, leave out the pins for the interface and solder those as well.
Did I say four octal shift registers? 36 LEDs - of course that would not be sufficient.
For 36 (or 40) LEDs, you use five columns or "digits" - that is, the first five cathode or digit driver lines only, and set up the Scan Limit register for five so you get maximum multiplex time for each.
A MAX7219 is arguably easier to drive than a string of octal shift registers (xxx595s) as you only need to address the particular register you wish to change, not all at once.
That is correct. The MAX7219 uses one resistor to control the max current per output, and the intensity register to divide it down further.
I offer a breakout board so you can easily connect to individual LEDs: http://www.crossroadsfencing.com/BobuinoRev17/