I am attempting to create a 7-segemnt clock, similar to the 12ft wall one (albeit smaller)
I was thinking just buying some 7 segment LEDs, and using shift registers to control them.
How do I write the code for it though?
I am using an Arduino.
I have done some googling of this, and the codes I have seen have #defines , and use byte commands, of which I have no idea who to do.
Where could I learn to write this code?
Any help would be greatly appreciated
Update: I actually just found this: LED Display Driver (8-Digit) - MAX7219CNG
Would this work better? and would the code be any simpler perhaps?
I saw that, but how would I edit it to be based on time? and, when the time is say, 12:47, to say "if clock ones place == 7, light up these LEDS
You have to write the software to maintain a clock on the Arduino, of course, and modify that code I mentioned to display the time. Interfacing an RTC to the Arduino might make things easier, and it will be a lot more accurate. You will have to do all the work yourself, I can’t see anyone doing it for you.
OK, Thanks - Shift Registers would probably work - I didn’t think of using a RTC, that would work
trialex
February 6, 2011, 11:24pm
7
Here’s my arduino 7-seg clock. http://www.arduino.cc/cgi-bin/yabb2/YaB … 06916512/0 . It uses a MAX7219.
Doesn’t use a RTC, which means it is simpler but slightly less accurate - it loses maybe 2 minutes every 3 or 4 (cold) months.