Hello
I've just started experimenting with the Paul Stoffregen Time library, so not up to speed yet.
I was looking for a method to reset an RTC (DS1307) minutes and seconds on a daily basis on a button press at, say, midnight (00:00:00) to correct any RTC drift, say 23:59:58 (slow) or 00:00:02 (fast) when compared to an MSF clock.
So far, this is what I have found (all seconds)
adjustTime(299) works
adjustTime(300) doesn't work
adjustTime(-300) works
adjustTime(-3600) works
adjustTime(-7200) works and tested up to -72000
So, any negative adjustment works, but positive adjustments only work up to and including 299 seconds.
In practice, the adjustment will hopefully be no more than a couple of seconds either way on a daily basis, so the apparent 300 second limit, if that's what it is, won't apply.
I do appreciate that adjustTime() does not set the RTC time, only the "Arduino" time
For what it's worth, this all became necessary through trying out various RTCs (DS1307, DS3231) and getting nowhere near the +/- 2-ppm accuracy claimed for DS3231. If anyone has found a consistently accurate RTC, I would be pleased to hear. The long term aim is to run Arduino clocks in things like central heating programmers and update all of them from a central MSF or GPS time-keeper. Most commercial offerings from the likes of Honeywell are appalling time-keepers
Any ideas?