Matrix 8x8 and Max7219

Bonjour Tout le monde, :slight_smile:

je suis en train de programmer une matrice 8x8 verte avec un MAX7219.
Cependant après que mon programme a boucler une fois, ma matrice n'affiche plus rien ... =(
et si je reset ma mega, c'est pareil ... =(

Pouvez vous m'aider ? :blush:
Merci. :slight_smile:

En pièce jointe : mon code et mon câblage

Hello Everyone, :slight_smile:

I'm trying to program a 8x8 green matrix with a MAX7219.
However, after my program loop once, my matrix does not show anything ... =(
and if I reset my mega, it's the same ... =(

Can you help me? :blush:
Thank you. :slight_smile:

Attachment: my code and my wiring

#include "LedControl.h" // need the library
#include <binary.h>

byte monster[]={B00011000,B00100100,B01000010,B01000010,B01000010,B01000010,B00100100,B00011000};
byte letter[]={B01111110,B01000000,B01000000,B01111110,B01000000,B01000000,B01000000,B01111110};
byte oeil[]={B00000000,B00111100,B01000010,B10000001,B10000001,B01000010,B00111100,B00000000};
byte invader[]={B00011000,B01000010,B01000010,B01011010,B00100100,B11011011,B10111101,B00100100};
byte mech[]={B01111110,B10111101,B10011001,B11111111,B00111100,B10011001,B11000011,B10011001};

LedControl lc=LedControl(12,11,10,1); // lc is our object
// pin 12 is connected to the MAX7219 pin 1
// pin 11 is connected to the CLK pin 13
// pin 10 is connected to LOAD pin 12
// 1 as we are only using 1 MAX7219
void setup()
{
// the zero refers to the MAX7219 number, it is zero for 1 chip
lc.shutdown(0,false);// turn off power saving, enables display
lc.setIntensity(0,8);// sets brightness (0~15 possible values)
lc.clearDisplay(0);// clear screen
}
void loop()
{
   for(int a=0;a<8;a++)
  {
    lc.setRow(0,a,monster[a]);
    delay(100);
  }
  delay(2000);
  lc.clearDisplay(0);
//  delay(500);
//  for(int a=7;a>-1;a--)
//  {
//    lc.setRow(0,a,letter[a]);  
//  }
//  delay(2000);
//  lc.clearDisplay(0);  
}

MATRIX_LED NFM-12881ABx-11.pdf (170 KB)

Visio-Matrice led.pdf (101 KB)

ci dessous mon post concerné :

http://arduino.cc/forum/index.php/topic,119664.0.html

@plus

concerned my post below:

http://arduino.cc/forum/index.php/topic,119664.0.html

Bye

Looking at your wiring diagram (Visio-Matrice led.pdf) and the LED matrix you have is common anode but the MAX7219 is a common cathode driver.

Riva:
Looking at your wiring diagram (Visio-Matrice led.pdf) and the LED matrix you have is common anode but the MAX7219 is a common cathode driver.

Hi ! :slight_smile:

Thank you for your answer :slight_smile:
But I was told that I could use this ... :blush:

Okay well, I'm going to see it

Bye ! :slight_smile:

piflechien54:

Riva:
Looking at your wiring diagram (Visio-Matrice led.pdf) and the LED matrix you have is common anode but the MAX7219 is a common cathode driver.

But I was told that I could use this ... :blush:

Okay well, I'm going to see it

Yes you can use it with common anode LED's but the chips drive current is lower than it's sink current so you risk damage or dim LED's if you try and drive it hard. Also I don't think the LedControl library won't be much use as it stands as rows become columns (in theory)

J'ai utilisé ledcontrol.h et Matrix.h pour afficher un "smiley". :stuck_out_tongue:
Après quelques réglages ... ça marchait bien ... pendant une à deux boucle ... après plus rien ! =(
vous pensez que c'est dû au MAX7219 ? car ma Mega fonctionne très bien ...

Pour voir, je vais essayer ma matrice sur une Lilypad en branchement direct.
et voir si mon programme est en cause...

après je ne sais plus quoi faire ...

Merci :wink:

I used ledcontrol.h and Matrix.h to display a "smiley". :stuck_out_tongue:
After a few adjustments ... it worked ... for one to two loop ... after nothing! =(
you think this is the MAX7219? because my Mega works very well ...

To see, I'll try my matrix on a Lilypad in direct connection.
and see if my program is concerned ...

then I do not know what to do ...

Thanks :wink:

It might be over driving the chip as it wired backwards.
Alter "lc.setIntensity(0,8);" to "lc.setIntensity(0,1);" and try it again. The LED's will be dimmer but if it's a chip overload problem then it should run a bit longer before blanking out.

Ok, je vais essayer ça :slight_smile:
mais à force il risque de griller, non ? :~

Ok, I'll try it :slight_smile:
but by dint it may burn, right ? :~