For The Project I have used 4017IC to control row moment and 74HC595 shift register to control column moment. I am using pin 1 to 8 of 4017 IC to run 8*8 led matrix
My question is that the program i have crafted is it correct. If yes can any one tell me why the 2 leds at the 8th row are dimmer than the 2,3,4,6,7 row which also have two leds on. Shouldn't their intensities be same.
My question is not regarding current sink or the current required to run 8 leds in a single row as i know i can used a array of 2803 transistor or BC547 transistors. Which i can add later i just wanna find the answer to above problem
Yes 4017 is sourcing the current and shift register 595 sinking it and yes i have also read their datasheets.
The 4017 does not provide enough current to lit 8 leds.(At one given time max leds lit in a row = 8
But current source is enough just to lit them with lower intensity. I will later add transistors to provide alternate current source(2083 or BC547)
In 8*8 matrix if you see in row 2,3,4,6,7 two leds are lit. Similar is the case with 8th row two are lit but their intensity is lesser compared to the 2,3,4,6,7 rows. WHY??? That's what i want to know
My logic is to lit specific leds in each row one at a time and do it so fast that the 8 rows appear to lit together producing my "A" character design.
The current_row variable helps to move from one row in the 8*8 matrix to the another. Since 4017 has 10 cycles to clock and i need only 8 (Pin 1 to 9) i need to increment current_row two times while clocking the 4017 IC and doing nothing.
Current_row variable helps to pick the 8 bits data from ba array and latch it onto the 595 IC which sinks the respective column. Whereas the 4017 IC on each cycle makes each row of 8*8 high one at a time.
thugsatbay:
Whereas the 4017 IC on each cycle makes each row of 8*8 high one at a time.
... with a maximum of (to quote the first data sheet I find) ...
Source or sink current per output pin, I O (V O > ?0.5 V or V O < V CC + 0.5 V) . . . . . . . . . . . . . . . . . . . . ±25 mA
So, 25mA shared between 2 LEDs is about 12.5mA each. Shared between 8 LEDs is a mere 3.125mA each. Of course, unless you have resistors on each sink that curent source limit is all that is standing between you and a blown LED array.
You need a much higher current source, and ideally a constant current sink. Personally I use an N/P-channel MOSFET pair (switched by a shift register, 4017, IO pin, whatever) to source the current, then an STP16CP05MTR (constant current LED driver) to sink it.