RV-8803 (Qwiic) Battery Backup

I am using the RV-8803 (Qwiic) with the ESP32 WROOM and all works well with my coding, however, I can not seem to hold/preserve the time on the V-8803 (Qwiic) using the 3V CR1225 battery when power is disconnected from the RV-8803 (Qwiic).

Perhaps my understanding of what the battery backup does is not clear.

With the 3V CR1225 battery installed and the date-time set on the RV-8803 (Qwiic)…should the RV-8803 (Qwiic) not hold the date/time while the sensor is disconnected from the Quiic power?

In my case with a good battery (I tested the battery with my multimeter ad got 2.99V) and the time set using the demo project, once I reboot the ESP32 (which is powering the RV-8803 (Qwiic) via the Quiic connector) the previously set date/time is wiped from the RV-8803 (Qwiic) and the unit has a date/time of 0/5/2000/00:00:00.

RESOLVED

I found the problem/mistake.

Before calling the ‘rtc.stringDateUSA()’ or ‘rtc.stringTime()’ a call must be made to ‘rtc.updateTime()’ to update the variables with the latest time as shown below…

if (rtc.updateTime() == false) //Updates the time variables from RTC

{

Serial.print(“RTC failed to update”);

}

:smiley: