RCS101 / IV3_Clock_CPython_Firmware

Driver firmware for IV3 Clock
10 stars 2 forks source link

Update code.py to adjust for observed drift #1

Closed williamadba closed 1 year ago

williamadba commented 1 year ago

I've written and tested this 7 line code snippet (plus comments) to correct observed drift in the Adafruit DS1307 Real Time Clock. In my case, I observe the clock was 12 seconds per day fast. The sample is explains how that there is a nightly correction backwards to correct for the drift that is configurable by the user. Based on comments in the kickstarter there are various degrees of drift fast and slow. I've tested it over the past week and it appears to have reduced the issue from 12s per day drift to <1s per day drift.

williamadba commented 1 year ago

Request review @RCS101

williamadba commented 1 year ago

Cool. The drift adjustment could be different for everyone. But they can easily update the drift adjustment by editing the .py file when they plug in the USB to their computer.

RCS101 commented 1 year ago

Great, thanks for adding this. I'll post an update on KS soon.