Go Down

Topic: Time and Attendence (Read 2 times) previous topic - next topic


Perhaps the Time library in the playground could be useful for this application.

It supports  time information that can be synchronized to NTP  (or an RTC) every 5 minutes (or at any user defined interval).
There is an example sketch for synching with NTP and another that syncs with an RTC
The library can found here


Jul 11, 2011, 09:19 am Last Edit: Jul 11, 2011, 01:13 pm by robtillaart Reason: 1
OK, never used that library,

Do you have any idea about its accuracy / timedrift ? an DS1301 RTC can drift a couple seconds per day IIRC.  -- update -- I meant DS1307
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


In my experience, on a standard Arduino board with a crystal, the internal clock is accurate to a few seconds a day.
The Arduino Uno uses a ceramic resonator and the accuracy drops significantly, but should still be accurate enough to keep time within a second if synched every few minutes.

Go Up