I'm planning to build my own wordclock with 11 rows and 10 columns.
I don't want to use a DCF77 for getting the time, I want my Arduino Uno both to count the minutes and hours and printing the time on the LED matrix.
(As seen here: http://www.artschoolvets.com/news/2009/08/23/wort-uhr/)
Unfortunately I couldn't find any description of how to program it. I would me very thankful for help!
By the way, is it difficult to scroll a text (like a marquee) on the LED matrix? Where can I find a tutorial about it?
max713:
Wow nice clock Riva!
Thanks, It was my first Arduino project.
You don't use a DCF77, don't you?
Nope, I use a DS3231 RTC module.
Ist would be very kind of you if you could send me the whole code, of course only if you have time!
Everything is in that thread. Materials/parts used, schematics and the code.
I would think it is quite intensive to drive the display with hc595s. I would split it into half and drive each with max7219, assuming you are running this at 5v.
It is not much about programming complexity, but more cpu capabilities.
It takes about 50us or so to date a column. With ~10 columns, that's about 0.5ms per frame so you are limited about 0.5ms for anything else, assuming a 100hz update frequency.
With the max7219, it is a load-and-forget deal: your mcu isn't involved unless you have to change the display.
yes I have only 8 anodes and 8 cathodes available, so 5x11 wouldn't work very fine, wouldn't it?
Now I tend more to the shift registers, although writing the sketch is not that fine comparing to MAX7219...
dhenry:
It is not much about programming complexity, but more cpu capabilities.
I think it is mostly about programming complexity and output dive capability vs time/duty-cycle.
There is more than enough cpu speed/cycle-power and pins to control/drive the LEDs directly
even without using shift registers.
(Although the slow Arduino core library functions like shiftout() or digitalWrite()
may have to be jetisoned to get back CPU cycles)
For a normal word clock very few LEDs are on any any give point in time so
even duty cycle (refresh rate) is not an issue there.
What can be a potential issue is if many or all of the LEDs need to appear to be on all
at the same time.
But even then it can resolved with some additional s/w complexity to allow multiple
LEDs to be on at the same time during the multiplexing.
With shift registers, duty cycle shouldn't be an issue, particularly if you stay
away from the arduino core libraries to drive them.
While their design needs some current limiting resistors, it demonstrates
a way to control 120 LEDs, which on the same scale as the desired 11x2 array,
without using any other components.