Pages: [1]   Go Down
Author Topic: 4X4 Matrix  (Read 992 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found a tutorial online for a 4X4 matrix. So I built it and all my LEDs are wired properly. Here is the link. http://minipenguin.com/?p=107
I think there may be an issue with the code. I think I have it wired correctly to the arduino. Anodes in rows and cathodes in columns. The diagram is staright forward. Anyways when I upload the code it works with no errors but only 4 of my LEDs are lit and it does nothing past that. In the code there is  Serial.begin(baudRate); Serial.println("Commands: on, off, auto, happy, sad, spin, wipe, bigchecker, smallchecker");
However when I open serial monitor, nothing is there. Can someone please take a look at the project and code and see if anything is wrong? This is my first built LED matrix and really want to get it going soon. Thanks.

P.S. I have the Arduino Uno R3 board.(If that makes a difference)
  
« Last Edit: May 13, 2012, 11:43:23 pm by FallenDemon » Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1287
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you need to include a sketch?
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you mean? I have the sketch. It's the one from that site I copied and pasted into arduino.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19356
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



This is the "touch the wires against the terminal and hope they connect" technique.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19356
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think I have it wired correctly to the arduino.  

Photo please.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* IMAG0070.jpg (1730.35 KB, 3264x1952 - viewed 33 times.)
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19356
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19356
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you show the wiring side? All we see is some LEDs poking out of holes.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure. I am fairly confident my wiring is correct because I tested each row and column and all LEDs light accordingly. The resistors are in my breadboard. Orange wires go to one side of them. Then other side of resistors go to arduino. Individually of course.


* IMAG0071.jpg (1303.72 KB, 3264x1952 - viewed 31 times.)
« Last Edit: May 14, 2012, 05:49:18 pm by FallenDemon » Logged

Pages: [1]   Go Up
Jump to: