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

    AXP192 coulomb counter issues

    Scheduled Pinned Locked Moved M5 Stick/StickC
    3 Posts 3 Posters 6.7k Views 1 Watching
    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.
    • G Offline
      geiseri
      last edited by

      I am on a m5stickC and I a trying to use the coulomb counter registers to monitor the battery level. I started with https://github.com/m5stack/M5StickC/blob/master/examples/Advanced/AXP192/PowerWake/PowerWake.ino and added M5.Axp.EnableCoulombcounter(); at the end of setup. Then I tried to display the counter output from AXP192::GetCoulombchargeData() and AXP192::GetCoulombdischargeData(). The issue is that no matter what state the USB charger is in it only displays UINT32_MAX. This seems like it's wrong or something is not configured correctly. I was under the impression from the datasheet that you only needed to enable on that register and it was okay. Is there a step missing?

      1 Reply Last reply Reply Quote 0
      • m5stackM Online
        m5stack
        last edited by

        it seems like a bug. I will contact our engineer to solve this problem.

        KabronK 1 Reply Last reply Reply Quote 0
        • KabronK Offline
          Kabron @m5stack
          last edited by

          @m5stack said in AXP192 coulomb counter issues:

          it seems like a bug. I will contact our engineer to solve this problem.

          Any progress?

          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