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

    M5Stick-C Battery Status?

    PRODUCTS
    3
    3
    9.1k
    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.
    • J
      JoaoB
      last edited by

      Hi, I recently acquired one M5Stick-C device for a personal project.
      I didn't manage to find any solution to know what is the battery percentage of the device. And I wanted to know if the battery is fully charged and what is the approximate real-time status of the battery.

      Anyone can help?

      ty

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

        Hi @JoaoB

        not exactly what you are looking for but it will give you at least voltage and current of the battery:

        https://github.com/m5stack/M5StickC/blob/master/examples/Basics/AXP192/AXP192.ino

        Cheers
        Felix

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

        1 Reply Last reply Reply Quote 0
        • R
          robalstona
          last edited by

          I made custom block for UiFlow, there is also code in python. You shouldn't have problem with convert it to C language.

          https://github.com/stonatm/UiFlow-custom-blocks/tree/master/battery-capacity

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