I just joined this forum and I'm right in my first project. I wanted to built myself a LED clock. It's should be just a simple clock to show the hours and minutes and in the middle two leds blinking each second. Here is a picture of it:
I used a Arduino UNO which can be detached from the clock and a DS1307 unit. The LEDs are wired in a 7x8 matrix with 54 white LEDs. I dont use a driver for the LED matrix as I wanted to direct drive it.
Here you can find a curcuit diagramm of said clock and how the matrix is wired.
The code is in the next post.
It might look like I made it more complicated than it has to be but as I'm not a good programmer I want to make it the way I can understand it. Basically the getTime function takes the time from the DS1307 unit, the setMatrix says which LEDs should be turned on and the showMatrix function does the multiplexing part. The rest of the code should be self explanatory ;).
Thats where the problem is. It just works fine and shows the time quite nice but I found out that some LEDs seem brigther than others. I intended to do the multiplexing that scans row after row but it seemed that I just made a mistake there and the mutliplexing scans column after column. Could that be the problem of the differences in brightness of the LEDs? So the problem is in the showMatrix function. How can I change that part that I get the row scanning?
I tried to change it but it ended more in a mess. Might be a small problem but I can't get to find the solution. So I hope you can help me ;).
Thanks in advance
lukrab
