Pages: [1]   Go Down
Author Topic: MAX7219 problems  (Read 755 times)
0 Members and 1 Guest are viewing this topic.
Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I have two MAX7219 boards wired up with leds but I can only sort of get communication with them going.
Also when the leds turn off I hear noise through my speakers and the regulator on the board gets very hot all the time.

When power is applied, all the LEDs are on at full power. The datasheet seems to say that they should be all off.
And when they are 'off' they are only dimmed. Still easily visible though.

With the standard code on the playground (and all the modifications to it that I've done) I can only get all on or all off.
With some code xSmurf used I could get a kind of 'ripple' effect but the effect had nothing to do with what the code was doing although the timing was right (delays stopped the ripple).

I'm kind of out of ideas. They are behaving rather weirdly.
Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 293
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi cheater,
you probably just connected the leds the wrong way!?

Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Would that cause the symptoms I'm seeing?
I thought that would have just inverted the display. :-?
Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 293
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i'm not sure about all symptoms (speaker noise) but as far as i can tell, you cannot simply reverse the LEDs to invert the display. the led matrix won't work the other way around. at least not with the max chip, which i think PWMs the rows and columns.
i'm not toooo sure here, so before you're going to desolder 64 Leds, maybe try it with another chip first.

kuk
Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh you've misread my first post. The stakes are much higher.
We arent talking about 64 leds. We are talking about 128 leds. :'(

I just checked by putting a led on another's leads but reversed and unfortunately it appears to be working.
Will someone please come up with a better reason why its not working so I dont have to desolder that many LEDs? smiley-wink
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 507
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

aww man, u gotta desolder over 200 pins?

that blows, i feel for you. Good luck, and just do it, don't think about it...
Logged

malmö / berlin
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
fhp>--vs--<k3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

cann't you just invert the code, so when the led should be on, you write them to low,....
just a short idea, with out any real thinking ,...ahhmmm...

anyway
tomek
Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
cann't you just invert the code, so when the led should be on, you write them to low,....
just a short idea, with out any real thinking ,...ahhmmm...
Thats what I was thinking but apparently not.
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Quote
...
I just checked by putting a led on another's leads but reversed and unfortunately it appears to be working.
I came across the problem you reported a few times now. I had no idea what could be the reason for this strange effects.
It still doesn't make sense to me that LEDs which are wired the wrong way light up at all, but well ... you proved it!??
I' going tol build a small "Not-working-inverted matrix" over the weekend and see if I can make sense of the whole thing.

You probably solved some "MAX7219 Mysterious Light-Effects" postings, because you are the first one coming up with an explanation for the problem.

Quote
Will someone please come up with a better reason why its not working so I dont have to desolder that many LEDs? smiley-wink
If the LEDs are on a PCB, you are probably out of luck. But if you build something like this (which would be the correct wiring for the LEDs) with wires that run from the matrix to the MAX7219

and you inverted every LED on the matrix, you can swap all the segment- and digit-connections and end up with a correct matrix.
You have to wire :
Dig0 on your matrix to the SegDP-connector of the MAX7219 and SegDP from your matrix to Dig0 on the MAX7219.
Dig1 on your matrix to the SegA-connector of the MAX7219 and SegA from your matrix to Dig1 on the MAX7219.
and so on...

That should do the trick
Eberhard
Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It still doesn't make sense to me that LEDs which are wired the wrong way light up at all, but well ... you proved it!??
Its because its HIGH and LOW not on and off.
When wired up incorrectly, it just happens to light up with the correct polarity when its trying to light up another led.

Quote
You probably solved some "MAX7219 Mysterious Light-Effects" postings, because you are the first one coming up with an explanation for the problem.
Oh wonderful. I'm still busy procrastinating about those 128 leds I need to desolder. smiley-wink
They are on a custom pcb of course so its not simple.
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wayoda wrote
Quote
I'm going to build a small "Not-working-inverted matrix" over the weekend and see if I can make sense of the whole thing.
I did, but couldn't replicate the "weird blinking" problem. Probably because I use only MAX7221.
With these chips all LEDs stay dark, no matter which command is send to them.
This "weird blinking"-debugger is a true advantage of a MAX7219.

@cheater
Did you solve your problem yet. If everything works fine with your LEDs in correct polarity, I would add a troubleshooting  section to the playground article http://www.arduino.cc/playground/Main/MAX72XXHardware

Eberhard
Logged

Pages: [1]   Go Up
Jump to: