Skip to content

With Battery, the device still doesn't seem to remember the set time #17

@truedat101

Description

@truedat101

Subject of the issue

Using the coin cell battery. I ran the provided example code to first configure the time.

Set and Forget!
Once the RTC's time and date register have been set – using either the autoTime or setTime functions – you may never have to set the clock again! Consider commenting out the autoTime or setTime entirely once you've perfectly configured the clock.

Per the docs above, I have commented out the autoTime() call after setting it once. However, when I run, the clock is off.

Your workbench

  • What development board or microcontroller are you using? XIAO ESP32C3
  • What version of hardware or breakout board are you using? Not sure
  • How is the breakout board wired to your microcontroller? wired per diagram in hookup guide
  • How is everything being powered? USB power to board
  • Are there any additional details that may help us help you? N/A

Steps to reproduce

  1. Run the sample
  2. comment out rtc.autoTime()
  3. Re-run the code
  4. Note, the clock time has reverted to some earlier date/time.

Expected behavior

With the coin cell battery, the RTC time should be maintained.

Actual behavior

Time is not maintained. It resets to whatever time was used at compile time it would seem.

How to debug this problem? I tested the battery and the voltage is fine. Battery is inserted in correct orientation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions