New York
Offline
Full Member
Karma: 2
Posts: 231
xronosclock.com
|
 |
« on: November 06, 2012, 11:40:50 am » |
I need to connect 4 MAX7219 chips (to drive 2 bicolor 8x8 LED Matricies). Do I need to put pair of decoupling capacitors (ceramic and polarized) near each IC or one pair will be enough for 4? I had no issues using 1 pair for 2 chips, but not sure what will happen if I use 4. I'm basing my design on this schematic: http://arduino.cc/playground/Main/MAX72XXHardware
|
|
|
|
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16434
Available for Design & Build services
|
 |
« Reply #1 on: November 06, 2012, 12:00:46 pm » |
1 pair each. Lot of current draw in each part, caps add local current buffering.
|
|
|
|
|
Logged
|
|
|
|
|
New York
Offline
Full Member
Karma: 2
Posts: 231
xronosclock.com
|
 |
« Reply #2 on: November 06, 2012, 12:05:04 pm » |
1 pair each. Lot of current draw in each part, caps add local current buffering.
Thank you!
|
|
|
|
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1318
|
 |
« Reply #3 on: November 06, 2012, 12:11:48 pm » |
I'm with Crossroads in both caps per chip but minimum should be a 0.1uF per chip and maybe 10uF a pair. Are you intending on driving both colours from same chip of different chip. Same seems possible but from different will probably be a headache.
|
|
|
|
|
Logged
|
|
|
|
|
New York
Offline
Full Member
Karma: 2
Posts: 231
xronosclock.com
|
 |
« Reply #4 on: November 06, 2012, 12:20:46 pm » |
I'm with Crossroads in both caps per chip but minimum should be a 0.1uF per chip and maybe 10uF a pair. Are you intending on driving both colours from same chip of different chip. Same seems possible but from different will probably be a headache.
Are you sure it's possible to drive both colors with same chip? How? If it's possible, I'd love to do it instead of using separate chip for each color...
|
|
|
|
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16434
Available for Design & Build services
|
 |
« Reply #5 on: November 06, 2012, 12:43:45 pm » |
"To minimize power-supply ripple due to the peak digit driver currents, connect a 10μF electrolytic and a 0.1μF ceramic capacitor between V+ and GND as close to the device as possible. The MAX7219/MAX7221 should be placed in close proximity to the LED display, and connections should be kept as short as possible to minimize the effects of wiring inductance and electromagnetic interference. Also, both GND pins must be connected to ground."
I'm also curious about driving dual color matrix. Typically a matrix would have a shared cathode and 2 sets of anodes for the 2 colors, so 24 pins total on the matrix.
You can't really share the cathodes between MAX7219s by alternately putting each chip into shutdown - they don't stop driving their outputs. I could see doing that with a MAX7221:
"When the MAX7219 is in shutdown mode, the scan oscillator is halted, all segment current sources are pulled to ground, and all digit drivers are pulled to V+, thereby blanking the display. The MAX7221 is identical, except the drivers are high-impedance. Data in the digit and control registers remains unaltered. Shutdown can be used to save power or as an alarm to flash the display by successively entering and leaving shutdown mode. For minimum supply current in shutdown mode, logic inputs should be at ground or V+ (CMOS-logic levels)."
I suppose if the cathodes were only weakly driven high, the 2nd device could pull it low. The software would have to coordinate which device was shut down to prevent drive conflicts.
In Shutdown: Digit Drive Source Current (MAX7219 only) IDIGIT. Digit off, VDIGIT = (V+ - 0.3V): -2 mA minimum Segment Drive Sink Current (MAX7219 only) ISEG. Segment off, VSEG = 0.3V: 5 mA
When Active: Digit Drive Sink Current IDIGIT. V+ = 5V, VOUT = 0.65V: 320 mA min.
So I suppose if 1 part is sourcing -2mA to make the cathode High, and the other is pulling 320mA to make it Low, it's going Low!
That would achieve one color or the other - would alternating quickly give the perception of combined color?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16434
Available for Design & Build services
|
 |
« Reply #6 on: November 06, 2012, 12:52:07 pm » |
Hmm, or maybe put 0.3V schottky diodes on the cathode drivers so they could only sink current and not be able to source. If the anodes for that color are already low, then driving the cathodes high at the same time just seems like overkill, would you agree?
|
|
|
|
|
Logged
|
|
|
|
|
Samplefinger
Offline
God Member
Karma: 8
Posts: 818
ALWAYS ASK FOR THREE. One to use. One to lose. One to abuse.
|
 |
« Reply #7 on: November 06, 2012, 04:40:39 pm » |
I have a project right now with a daisy chain of 20 MAX7219s driving 20 8x8 monochrome matricies (the 0.8" "cute" matricies from Adafruit in a 4x5 configuration). I have one 10uF tantalum cap on each chip (and one on the 1284 plus 2 22pF caps on the crystal) and it seems to be working fine. Obviously this is a lab environment with a really nice power supply. It draws 60-70mA @ 5V. Hopefully it continues to behave, I don't think I have room for a second cap the way I have set up the board.
|
|
|
|
|
Logged
|
Latest Sampling Scores: ATXMEGA64A3U-MH x3, ATXMEGA256A3U-MH x3, SST38VF6404-90-5C-EKE x3, SST38VF6402-90-5C-EKE x3, PGA870 x3, THS770006 x3
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #8 on: November 06, 2012, 04:58:14 pm » |
Schematic n code?
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #9 on: November 06, 2012, 07:22:09 pm » |
Like Rita said.... I'm with Crossroads in both caps per chip but minimum should be a 0.1uF per chip and maybe 10uF a pair. I'm going to need to redo the caps I have..... check out my WIP
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #10 on: November 06, 2012, 07:22:57 pm » |
Riva ****** I'm sorry about that.....I said Rita before
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #11 on: November 06, 2012, 07:34:57 pm » |
Taken from the Playground site we are mentioning here...I have it in my posting about the scrolling on matrices.....
"By no means these 2 capacitors can be ommitted (Left out), as it might lead to sporadic or permanent malfunctions. These types of errors are really hard to track down. Both capacitors must be placed as near as possible to the V+ and the Gnd pins of the MAX72XX. "
I need to re place the caps closer.....and not just on Vcc and ground planes.....
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1318
|
 |
« Reply #12 on: November 07, 2012, 04:01:54 am » |
I'm also curious about driving dual color matrix. Typically a matrix would have a shared cathode and 2 sets of anodes for the 2 colors, so 24 pins total on the matrix. I don't think it would be easy to drive bi-colour led using separate MAX7219 chips because of the way they do all the row and column scanning on chip but if your using common anode bi-colour LED's and double up the segment to anode and maintain the separate cathode to digit then it could maybe work but be a right nightmare to program.
|
|
|
|
|
Logged
|
|
|
|
|
New York
Offline
Full Member
Karma: 2
Posts: 231
xronosclock.com
|
 |
« Reply #13 on: November 07, 2012, 08:27:04 am » |
Here's schematic that I came up with for 4 MAX2719 chips. I just started to learn Eagle (pretty much my first diagram), so it might be laughable, but hopefully it's correct  I connected common Anodes (SEGA-G pins) together, but Eagle is cursing with Errors "More than one OUPUT pin on net N$...". I hope I can safely ignore those errors... Now just looking at PCB mess I'm already having nightmares 
|
|
|
|
« Last Edit: November 07, 2012, 08:29:16 am by bratan »
|
Logged
|
Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info 
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1318
|
 |
« Reply #14 on: November 07, 2012, 09:17:23 am » |
I'm worried your idea will run into problems as you cannot sync the scanning between the MAX7219 chips. I foolishly think the below may be betterwork as your not connecting between driver chips. I only drew one led as I'm meant to me working.
|
|
|
|
|
Logged
|
|
|
|
|
|