Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #30 on: November 05, 2012, 04:20:09 pm » |
Got 3 matrices wired up with 1 to go...heres the issue now.....the 3rd matrix blinks when I power up but then goes out...so I probed the row and its column and I'm measuring negative voltage....????? why is the Max7219 supplying negative voltage to the matrix rows?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #31 on: November 05, 2012, 04:29:26 pm » |
If anode is Low when Cathodes are high (i.e. off) for the next high anode, it can look like a negative voltage. The LEDs for the low anode column are reverse biased and just turned off.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #32 on: November 05, 2012, 04:33:09 pm » |
I did up a sort of flowchart showing the program execution summary. The code itself is 21 landscape pages long, but this lets you see the idea behind it.
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #33 on: November 05, 2012, 04:49:04 pm » |
My code is way too long to post in this forum...could you give me your email possibly and I can send you a schematic capture and my code and see if you can see something I'm doing wrong .....making the LEDs have negative voltage,...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #34 on: November 05, 2012, 05:40:26 pm » |
I already explained that. If you have the meter- on a cathode that is driven high, and the meter+ on an anode that is driven low, you will see a negative voltage. Perfectly normal.
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #35 on: November 05, 2012, 07:35:38 pm » |
Well there's something up with either the code or the sequence I have the chips ....I dont understand why 2 of 3 matrices are full on .....all 64 LEDs on 2 and the next matrix is totally off.
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #36 on: November 05, 2012, 07:44:18 pm » |
Guess I will wire up #4 and see if any scrolling takes place.....
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #37 on: November 05, 2012, 07:51:51 pm » |
Sequence will not matter - the code works the same whether the MAX7219's are connected or not. I did a lot of debugging just using Serial.print statements. Any chance the display is just flipped end for end?
You have the serial monitor opened and a few characters entered?
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #38 on: November 05, 2012, 09:32:12 pm » |
So far I have 3 of 4 matrices wired up. I paid extra close attention to the columns and rows ......the first 2 are lit up totally....all 64 on the first 2. The third has none lit up and that's when I probed the anodes(+) and cathodes(-) in rows vs. Columns and saw the negative voltage. I opened the serial monitor and typed hello, but didn't see any effect......I still have the 4th to wire up.....ill update you on how that one reacts. Oh I don't doubt your code and debug, you had yours working........I think there maybe an issue with the integration of what I have and integrating yours in. I have a lot of lines that control an LCD , some buttons and LEDs too.....
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #39 on: November 05, 2012, 10:51:16 pm » |
I guess I should mention this: so I have ss0 plugged into max7219 #1 which in the 32x8 display is the farthest on the left...then 2 goes to the second matrix from left and then 3 second from right and 4 farthest matrix to the right. MOSI all parallel, SCK all parallel, each ss (load) hooked up to individual chips......the matrices are wired up correctly too.....I just wanted to make that clear....
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #40 on: November 05, 2012, 11:01:48 pm » |
Layout sounds correct & ss usage agree with the code. May take some tweaking to make it all play nice. Usually when they all light up its due to having had bad data sent in, or its in display test mode, or ... I think setup is coded to have display test turn each one on/off briefly, 50mS or something. I started with just putting a simple pattern in during setup to confirm that I could send data to each one correctly. Small steps.
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #41 on: November 06, 2012, 01:18:25 pm » |
This is rediculous.....I have all 4 matrices wired up now 1 each to each MAX7219..
SCK all in parallel
MOSI all in parallel
SS to each Max7219 (Pinouts assigned)
I'm using 10K resistors for Iset
I would like to email you....I want to include my code in an .ino and see if you could take a minute and browse through it and see if theres anything wrong...
Also, I open the serial monitor and just type hello
it makes everything reset......
IDK
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #42 on: November 06, 2012, 01:23:53 pm » |
Put the code here as an attachment (pasting in text), can get some other eyes on it too.
How are you powering things? USB port? Any chance it is overloaded?
|
|
|
|
|
Logged
|
|
|
|
|
Raleigh, NC.
Offline
Full Member
Karma: 0
Posts: 129
Addicted to Arduino
|
 |
« Reply #43 on: November 06, 2012, 01:29:43 pm » |
I emailed you the .ino file
I will have to shrink down the code to try and put it here..it exceeds the 9500 character limit...
To upload, I'm using the USB, but after upload, I have 2 (3.9 V ) lithium batteries = 7.8 V powering it all...
I'll try and shrink it down..
I have a lot of LED commands that would be irrelevant here...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16504
Available for Design & Build services
|
 |
« Reply #44 on: November 06, 2012, 01:34:44 pm » |
I won't be able to look at that until 8:30pm. Add it as an attachment here so others might look at it in the meantime. (Click Additional Options below, browse to your file, and then post)
|
|
|
|
|
Logged
|
|
|
|
|
|