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

    M5Dial Battery status

    Scheduled Pinned Locked Moved PROJECTS
    4 Posts 3 Posters 4.4k Views
    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.
    • C Offline
      Crisco5
      last edited by

      I am powering a M5Dial with a lipo battery. Is it possible to retrieve the battery and charging status? I tried to get the info but it is not what I expected.

      code......
      M5Dial.Power.begin();
      Serial.print("voltage: ");
      Serial.println(M5Dial.Power.getBatteryVoltage());
      Serial.print("Level: ");
      Serial.println(M5Dial.Power.getBatteryLevel());
      Serial.print("charge?: ");
      Serial.println(M5Dial.Power.isCharging());

      results....
      voltage: 0
      Level: -2
      charge?: 2

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

        Hello @Crisco5

        unfortunately I think there is no way to get the battery and charging status on an M5Dial. Looking at the schematic I do not see any provision (e.g. voltage divider from VBAT_IN to a GPIO) to measure the battery voltage via ADC like on some other M5Stack products.

        And the charging IC cannot be queried via software about the charging state. It does have two outputs (CHRG and STDBY) but they are not connected.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • C Offline
          Crisco5
          last edited by

          Thank you for the reply.

          I will try to add a Max17048 to provide the info.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jsgagnon
            last edited by

            Hi, did you have any luck to find the voltage with your projet?

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post