ESP-12 RTC Accuracy
Posted: Mon Mar 13, 2017 11:42 pm
I am using the in-built RTC on the 8266 to deepsleep for an hour, but it seems to be highly inaccurate, although it's repeatability seems to be OK.
In sleeping for 1 hour, it wakes up on average 108 seconds early, this seems to be a huge error and of course in 1 day this would be roughly 43 minutes a day assuming that the error is cumulative.
Can the clock be so inaccurate ??
Other than adding a multiplication factor into the sleep time code, is there away to calibrate / adjust the rtc ?
Code: Select all
secs = 3600
rtc = mc.RTC()
rtc.irq(trigger=rtc.ALARM0, wake=mc.DEEPSLEEP)
rtc.alarm(rtc.ALARM0, (secs*1000))
Can the clock be so inaccurate ??
Other than adding a multiplication factor into the sleep time code, is there away to calibrate / adjust the rtc ?