Go Down

Topic: 4X4 Matrix (Read 1 time) previous topic - next topic

FallenDemon


Your anodes: 11,10,9,8
Your cathodes: 7,6,5,4

The sketch pins:

const int anode[4]   = { 11, 9, 7, 5 };
const int cathode[4] = { 10, 8, 6, 4 };

Have you rewritten the sketch to account for your revised pin usage?



I tried plugging the anodes and cathodes according to the sketch. const int anode[4]   = { 11, 9, 7, 5 };
                                                                                                  const int cathode[4] = { 10, 8, 6, 4 };

When I did this nothing happens at all. No LEDs light up. Also the serial monitor is  supposed to print commands and it doesn't.

Nick Gammon


I think I have it wired correctly to the arduino.  


Photo please.

FallenDemon

According to the sketch the anode pins are 11, 9, 7, 5 and the cathode pins are 10, 8, 6, 4. The photo is how I have it wired. Yellow wires are cathode and orange are anode. I just really want to get it working. Thanks for your time.

Nick Gammon

Where are the resistors? Can you show them too please?

FallenDemon

The resistors are on the underside of the board. Wired in between from anode (orange wires) to arduino.

Go Up