I’m using a RV3028 module as a realtime clock in an Arduino Nano project.
The RTC code is using the RV-3028-C7 Arduino Library by Constantin Koch.
Wire.begin(); if (rtc.begin() etc
Time setting works fine.
A loop reads Unix time using:
utcTime = rtc.getUNIX();
I’m using Unix time exclusively and converting to user date/time formats, local timezone etc. All this works fine.
Problem is RV3028 is losing time, last night about 3 minutes in 16 hours. Powered by external 12V to Arduino and 5V to RV3028. No loss of power so not battery backup related.
It’s cold (outside at 1C) so worst case from spec would be -20ppm, about 1 second.
I’ve checked with a spare RV3028 module, results the same.
I have the
utcTime = rtc.getUNIX(); in a tight loop, could this be causing clock to lose time? I can’t see how :-(.
Just wondering whether EVI pin is tied? Datasheet says pin should not be left floating.
Any suggestions gratefully appreciated!