🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    RTC (Without battery backup)

    Micropython
    2
    2
    5.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      toddkrein
      last edited by

      In hunting down other issues, I came across several statements that the M5STACK Fire doesn't have a Real Time Clock (RTC). However, if I set the RTC with machine.RTC().dateTime(<Time tuple>), it seems to work. If I think read back with machine.RTC().dateTime(), it seems to be keeping time just fine.

      So is the issue that there isn't a battery-backup, and I'll have to set it each time I wake (which is just fine), or that the software for the RTC really doesn't work?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @toddkrein

        you are correct, there is no RTC battery backup in M5Stack Fire.

        Please note: In sleep modes time accuracy might be affected depending on the clock source used.

        Please also refer to:
        https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html

        Cheers
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post