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

    M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time

    PRODUCTS
    3
    3
    35
    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.
    • M
      MCU1536
      last edited by

      Hi,

      When M5Stamp PLC Controller with M5StampS3 got the power supply.
      It can write and read the current Date and Time.
      But after I turned of the power supply for 1 day.

      The PLC shown "Sunday, 0 Jan 2090 33:20:39"
      It is not the current Date and Time.

      Could you recommend me to solve this?

      Thank you

      1 Reply Last reply Reply Quote 0
      • robskiR
        robski
        last edited by

        is your battery charged? what is status of on/off switch when external power disconnected/connected?

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab

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

          Hello @MCU1536

          assuming you are using Arduino and the M5StamPLC library then it is clear as to why the date and time are not retained. There is no code in the M5StamPLC library to enable charging the RTC backup battery.

          I created a PR which enables RTC backup battery charging.

          Thanks
          Felix

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

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