Pages: 1 [2] 3   Go Down
Author Topic: 5x7 LED Matrix Issue  (Read 3874 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

like this?


* Untitled Sketch_bb.jpg (1101.08 KB, 1815x1467 - viewed 25 times.)
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The ULN2003 looks a lot better.
Now the matrix is not wired like the data sheet is it.
The data sheet shows pins 9, 14, 12 & 8, 1, 7, 2 all being anodes. These anodes should be connected to the arduino outputs.
The data sheet shows pins 13, 3, 4 & 11, 10, 6 as all being cathodes these should be connected to your ULN2003.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ahh i think i finally understand it all!

Thank you!

Just one last question, what is the advantage/or disadvantage of using a matrix with transistors instead of the IC?

It is so great to have such a helpful community!!
smiley
thanks
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not much, that IC is a darlington transistor array so it already contains the base resistor you would need if you used a normal transistor. It is smaller so there is less wiring up.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27118
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

The LED wiring is off still.
Note that the pins are shown as going across the short length of the body. So you may want to plug the chip in across the middle divider.

I have labelled them A1-7 for the anodes,
and C1-5 for the cathodes.

A1 is pin 9
A2 pin 14
A3 pin 8
A4 pin 4 (also available on pin 12)
A5 pin 1
A6 pin 7
A7 pin 2

C1 pin 13
C2 pin 3
C3 pin 4 (also available on pin 11)
C4 pin 10
C5 pin 6

If you look on the bottom of the part you may see a 1 next to one of the corner pins.
Plug it in and drive the output pin for C1 high (display pin 13) and for R1 low (display pin 9) - should see the corner LED turn on.  If not, rotate the display 180 degrees around and try again.
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.

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

there are 7 pins on each side of the LED matrix..
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27118
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

The pin numbers I gave above correspond to those 14 pins.
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.

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have built the circuit but the matrix is not working correctly

could you take a look and see if i have made a mistake.

(the resistors are not connected on purpose, was checking if they were limiting matrix too much. BUT are connected during tests)

The results are slightly dim LEDs slightly brighter LEDs, some off.


* IMG-20121025-00048.jpg (459.43 KB, 1600x1200 - viewed 31 times.)
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have built the circuit but the matrix is not working correctly
We need to know exactly what it does and what you expect it to do.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27118
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

Pin 1 on the ULN2003 is the lower left corner?
Looks like you have 6  outputs wired up? While there are only 5 cathodes?

Same with the display - pin 1 is lower left? Any chance its just flipped?

How about posting the code you are running?
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.

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
const int rows[] = { 9, 14, 12, 8, 1, 7, 2 };
const int cols[] = { 13, 3, 4 , 10, 6};

void setup()
{
  for (int c = 0; c < 7; c++)
  {
    pinMode(cols[c], OUTPUT);
    digitalWrite(cols[c], LOW);
  }

  for (int r = 0; r < 5; r++)
  {
    pinMode(rows[r], OUTPUT);
    digitalWrite(rows[r], LOW);
  }
void loop(){
}

« Last Edit: October 25, 2012, 12:38:57 pm by adamedelberg » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27118
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

LIttle light on the application code here smiley-cool
Code:
void loop(){
}
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.

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just really want to get it working first ;P
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

when i execute that code, this is the result:


* result.jpg (463.63 KB, 1600x1200 - viewed 12 times.)
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
We need to know exactly what it does and what you expect it to do.
I would expect from that code that all the LEDs should be off. What do you expect?

As all the LEDs are not off then you have wired it up incorrectly.
Logged

Pages: 1 [2] 3   Go Up
Jump to: