Accurate time keeping
Macgman2000
Posts: 59
Hello,
I am working on a digital clock project, it will project the time on the ceiling. What do you recommend for an accurate time base? Any external IC's that can be used to output a seconds interrupt on SX pin? Any info would be greatly appreciated.
Nick
I am working on a digital clock project, it will project the time on the ceiling. What do you recommend for an accurate time base? Any external IC's that can be used to output a seconds interrupt on SX pin? Any info would be greatly appreciated.
Nick
Comments
Post Edit -- One such sentence is $GPGLL, it has both time & date.· The time is also available in a few other sentences.
Post Edited (PJ Allen) : 10/27/2008 2:32:07 AM GMT
If you need long term accuracy then GPS is probably the way to go. It isn't cheap though.
A time base derived from the AC mains power frequency can have good long term accuracy at the expense of variations over the day of a few seconds one way or the other. This is what most most of the clocks you can buy at the store use (assuming they're plugged in to a wall outlet).
Battery powered devices are most likely going to use some method based on a quartz crystal oscillator. 32.768 kHz is commonly used since when divided by 215 you get 1 Hz. This is how the DS1302 and DS1307 keep time. Accuracy will depend on the crystal. My experience has been that drift of several minutes a month is common, unless you go to the trouble of accurately tuning the oscillator circuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
Thanks!
Nick
DS1302 and crystal: http://www.parallax.com/Store/Components/IntegratedCircuits/TimeMathCoprocessors/tabid/617/CategoryID/82/List/0/SortField/0/Level/a/ProductID/233/Default.aspx
http://www.parallax.com/Store/Components/ResonatorsCrystals/tabid/153/CategoryID/82/List/0/SortField/0/Level/a/ProductID/350/Default.aspx
DS1307 and crystal: http://www.futurlec.com/Mini_DS1307.shtml