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

    M5Dial Battery status

    PROJECTS
    3
    4
    2.6k
    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
      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
        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
          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
            jsgagnon
            last edited by

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

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