It works great and I've had fun experimenting with shifting data to them.
I have a couple of MAX7219 and I'd like to use one to power these 16 LEDs. I understand I wouldn't need a resistor for each one any longer. I've read the datasheet for the MAX7219, and looked at various tutorials online, but they mainly seem to talk about how to use an 8x8 LED matrix.
Instead of a matrix, I want to drive individual LEDs.
Here's my thought:
Should I design the circuit so 8 of my LEDs would be row 0 (with 8 columns, obviously), and the next eight would be row 1? It feels weird hooking it up that way, but if the chip handles all the multiplexing then I guess it makes sense.
Or am I going about this all wrong?
Basically, I'm building myself up. I started with a single LED. I then moved on to a few controlled by different pins on the Arduino. Then I moved to a single 74HC595, then a double.
My ultimate goal is to have a mini-light show on a miniature set. I just want to learn it piece by piece as I go.
Sorry if this is too much of a newbie question. I've tried to explain myself, provide the schematic I have working for the 74HC595, and did my research (but failed) at finding much beyond matrices on the MAX7219.
Tahii:
Should I design the circuit so 8 of my LEDs would be row 0 (with 8 columns, obviously), and the next eight would be row 1? It feels weird hooking it up that way, but if the chip handles all the multiplexing then I guess it makes sense.
Or am I going about this all wrong?
No, that's correct. Remember to tell the chip you only have two rows.
(nb. It might be two columns instead of two rows, I can never remember which way it does the multiplexing...)
You tell the chip 2 digits.
Each digit will have 8 LEDs - anodes between digits are connected in parallel (a,b,c,d,e,f,g,dp) to the Segment pins, and each digit will have a common cathode connected to a Digit pin, Digit0 and Digit1. Then you set the Scan limit register to 0x01 to tell it 2 digits.
Writing to Digit0 then controls 8 LEDs, and writing to Digit1 controls the other 8.
how can they be both common anode and common cathode??
anyways..
@OP..
here is a wiring diagram I did along time ago when I played with my first MAX chip..
I too wanted individual leds... and not a 'matrix'.. but in the end.. how you arrange/align the leds is up to you..
(as long as they are WIRED in a matrix array type set-up)