Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8*8 LED Matrix and Teensy

Status
Not open for further replies.

aly.yousuf7

Newbie level 4
Joined
Nov 12, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,323
Hello guys,

This is my first post here, "plus" a newbie, so please be nice :p

So I have 64 White LEDs multiplexed. I tested my matrix by connecting each column to GND and +5v (from Teensy) to each row one by one "without resistor". All worked well.

Let me explain why without resistor.
Before making the matrix, I tested all the LEDs with a 330ohm resistor in series and none light up, although all were working fine without a resistor. So I guess my LEDs are high-voltage ones...
(I tried decreasing the resistor value.. By putting 10x330ohm resistors in parallel, only then they were working, otherwise not.)

OK, so I tested my LED Matrix without resistor, all worked fine with a +5v source from Teensy.

Now the problem comes when I connect each row to an "output" pin on Teensy and all the column to GND and program the code to produce HIGH one by one on each row.
This doesn't work! =/

To test if my code was working fine, I removed my matrix and placed single LEDs to those outputs and they worked fine. =/

Please help me out!
 

are you connecting this LED'S to the microcontroller pin directly? are you using any transistor switch? which microcontroller you are using? Give me your circuit diagram....

Micro controller pins will handle only upto 25mA(this is for pic & may vary for diff type of uC) & if the current exceed it could damage the port pin...

Connect the anode of the LED using some low value resistor(10E to 100E) to the +5V & use ULN2003 to drive the cathode points...

**broken link removed**
https://www.picbasic.co.uk/forum/showthread.php?t=7457
www.google.com
 
Yes i'm connecting them directly to the microcontroller. :s It's 'Teensy 2.0' (Arduino)

10E? 10ohm?

Okay, from ULN2003's datasheet, I can see that ULN2003 has 7 transistors. Is there any other IC that has 8 transistors? If not, then I think I have to use one separate transistor.
It has "NPN Darlington Transistors". What other information (specs) do I need to tell at shop to buy that one similar transistor?

Thanks for the hep :)

EDIT:
P.S. I just want one LED to light up at a time in the whole matrix, not a full row/col. Why do I still need a transistor?
 
Last edited:

You can use use 10ohms to 100 ohms... i suggest 47 ohms...It may vary with ON time of the LED & brightness you required...
For 8 transistors you can use ULN2803...

If you are increase the number of LED then you have to reduce the resistor because it will take higher current. As per ohms law (R=V/I look the relation bw R,I) you have to increase the resistance value for single LED.

Regards
Udhay
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top