M5Dial Battery status



  • 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



  • 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



  • Thank you for the reply.

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