clock

Andromeda

New Member
To whom it may concern,
I want to develop a clock using microprocessor 28X1, I want it to display hours, minutes and seconds. Does somebody have any code that I may use?
As far as I know, when the microprocessor 28X1 counts until 1,000 that’s just one second
Thanks in advance
 

eclectic

Moderator
This section is for finished projects.

Please re-post your question in the Main /Active forum.

Also, try an Advanced search, using the three terms

Hour* min* sec*

Plenty of info on the Forum.

e
 

BeanieBots

Moderator
[moved to active forum]

To make life easier, consider using a real time clock chip such as the D1307.
You can read hours mins and seconds from it using I2C commands.

What sort of display do you want?
The AXE033 is 2 lines of 16 characters LCD display. It can also have the D1307 clock chip fitted to it including battery backup so that you don't lose the time when the PICAXE is powered off.
 

nbw

Senior Member
You could (provided you're comfortable with mains V) use the 50 or 60Hz as a time base to run your clock. Of course, unless you write the time out to non-vol memory each time, a power outage will mean resetting the clock. BB's idea of the 1307 is good, esp. with the battery like a CR2032. I had one running on my aquarium controller for over 3 years, 1/2 a dozen power outages, and it never missed a beat.
 
Top