5 x 7 LED array question
egenriether
Posts: 29
Hello,
I am trying to drive a 5x7 LED array with a prop chip with no driver/interface module. In other words I am using the 3.3V of an output pin at about 20mA using a current limiting resistor. This works fine, but I am having a problem with sinking the current. In case you're not familiar, the array uses an X-Y select for its 12 pins. That means to turn on a single LED, you make the column that LED is located in "high" and the row its located in "low". If you simply ground the row they're on (i.e. low) the whole row lights up. So I thought I could make the low (current sink) an input pin, using the dira[PIN] :=0 commands but I can't get it to work this way. The led blinks fine when I physically ground the cathode using the ground ports on my PPDB but I can't get a pin to let me sink current into it. Before I post the bit of code I have I want to know if this is even possible. I can't see why it wouldn't be.
Thanks
I am trying to drive a 5x7 LED array with a prop chip with no driver/interface module. In other words I am using the 3.3V of an output pin at about 20mA using a current limiting resistor. This works fine, but I am having a problem with sinking the current. In case you're not familiar, the array uses an X-Y select for its 12 pins. That means to turn on a single LED, you make the column that LED is located in "high" and the row its located in "low". If you simply ground the row they're on (i.e. low) the whole row lights up. So I thought I could make the low (current sink) an input pin, using the dira[PIN] :=0 commands but I can't get it to work this way. The led blinks fine when I physically ground the cathode using the ground ports on my PPDB but I can't get a pin to let me sink current into it. Before I post the bit of code I have I want to know if this is even possible. I can't see why it wouldn't be.
Thanks
Comments
http://forums.parallax.com/showthread.php?136152-LED-Marquee-Module-for-Gadget-Gangster-Platform-%28w-video%29&highlight=rgb+matrix
Let me know if you have any questions.
In a Matrix the weak link is the common sharing, in your case 7 dots have to share the current budget of 20mA, so that is ~ 3mA per dot.
Now you also still have to multiplex 5:1 so you are down to a average dot current of ~600uA
If you have pins to burn, you can parallel pins, but usually external drivers are chosen.
If you budget 20mA one way, and sink 7x that, you need 140mA sink, and now your Dot current is an average of 4mA.
Peak Chip current is 140mA, so check the specs. I see they mention 300mA package limit, and 40mA pin limit
Yes, but the average current value issue still remains.
Very new, high bright LEDs could work indoors, but older matrix displays tend to have feeble LEDs.
I've had success with them before. Only i used low voltage FETs to drive the common cathode LOW; to let the FET carry the current, not the micro controller I/Os (that was using a PIC years back. I let it scan about 80 times/sec for SIX 5 x 7 LEDs. No flicker as a low scan time would show.
the last option will result in less pins consumed.
i have a project i did with a 2 to 4 line decoder connected to 2 pins and then 4 pins to drive LEDs ( i was using an atmega sorry)
in your case adding the 3 to 8 line decoder can reduce pin use from 13 to 8 (if the 7 rows share the cathode)
I say do this as the 3 to 8 line chips are 40 cent but its a big advantage over say using 13 pins.