hi alli have a problem with working with the max7219cngi am reading the beginning arduino book and i did exactly like the books says but my dot matrix led 8x8 is on all the time

i got my max7219cng from ebay (i got 2 max7219cng) and i think its fake or maybe damaged but it's possible that i don't know how to work with the max7219cngi am quite new to electronics and arduino but i managed to get my dot matrix led 8x8 work with the 74hc595 chip even with 2 74hc595 and it works fine.

the problem is that i connect everything good (i even check with multiple sites ) but all the 64 leds are all the time on i even tried different resistor with no help i only get 2 modes everything is on or everything is off

iv'e added the code and the sketch

can anyone run this code and connect his max7219cng to dot matrix 8x8 and see if it's workingdoes anyone know what is my problem ?

i tried to test the max7219cng with wiring only 2 regular leds and see if i am able to control only 2 leds and i was unsuccessful(no matter what i did both of them were power on

A quick look at the drawing and the power, data & IREF look to be connected fine. I cannot check the 8x8 matrix connections as you have no pinout description for it. Is the matrix common cathode or common anode, the MAX7219 need common cathode.As to the code, I would suggest you download the LedControl library here http://playground.arduino.cc/Main/LedControl and check your wiring with the example programs it includes. It's tried and tested so you should be able to isolate if the problem is code/wiring quickly.

Well, just finished a small project using Max7219 -- a new buffer based led matrix library that is fast enough for games. During development, I encountered the same problem, but it turned out that I was not sending commands correctly -- I was not lowering and raising the LOAD/CS line for each command/data. So the MAX7219 was in some weird state that wouldn't shutdown, even starting from beginning.

To fix it, turn off the power and send in the correct sequence of command via SPI, now everything works fine.