Arduino Forum

General Category => General Discussion => Topic started by: shahardgn on Dec 29, 2015, 07:22 pm

Title: how to measure the time error of the arduino?
Post by: shahardgn on Dec 29, 2015, 07:22 pm
hi,
i need to know the time error on the arduino in two ways
one, i need to know if i start a stopper watch for aprox. 0.5s, what will be the error
second, if Im collaborating several arduino's and whaiting a month, what will be the time difference between them?
thank you
Title: Re: how to measure the time error of the arduino?
Post by: robtillaart on Dec 30, 2015, 02:55 pm
1) Check my stopwatch class - https://github.com/RobTillaart/Arduino/blob/master/libraries/StopWatch/

2) Depends on Crystal versus resonator.

If you want to keep them in sync you should use the time library and sync every minute/hour/day with an external source e.g. an RTC or by means of NTP.
Title: Re: how to measure the time error of the arduino?
Post by: westfw on Dec 31, 2015, 08:34 am
You have said "measure" in several messages.  do you MEAN measure, or do you mean "predict, based on the specifications in the datasheets"?