[time-nuts] Clock Correction Algorithm

Bob Camp lists at rtty.us
Thu Nov 24 15:16:25 UTC 2011


Hi

How about simply adding 1 ms every other second? You could then fine tune it by picking a small number of seconds to not add a ms to.

Bob



On Nov 24, 2011, at 7:16 AM, Javier Herrero <jherrero at hvsistemas.es> wrote:

> El 24/11/2011 13:56, Miguel Gonçalves escribió:
>> 
>> 
>> Right! That is what I am doing.
>> 
>> The problem is the drift between adjustments. Arduino's clock is slow 25 ms every minute and if temperature changes it will surely be different.
>> 
>> 
> That is more than 400ppm error, that sounds quite high. Is the clock frequency of the Arduino so drifted? I would try first to check (and correct a bit) the source of that error. If the crystal frequency is ok, perhaps there is an error in the programming of the timer that generates the timing interrupt.
> 
> Regards,
> 
> Javier
> 
> 
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.




More information about the Time-nuts_lists.febo.com mailing list