Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Battery level on Pytrack/Lopy

    Scheduled Pinned Locked Moved Projects
    batterypytrack batterypytrack
    5 Posts 2 Posters 723 Views 2 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.
    • M Offline
      melkoutch
      last edited by

      Hi,

      I would like to display the current battery level of my Pytrack/Lopy4. I'm not using a lipo battery. I'm using an usb external battery.

      I saw this link but it's for a lipo battery.
      I looked for it in the documentation but couldn't find anything.

      Any help, hint or datasheet links appreciated !

      Thanks

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @melkoutch
        last edited by

        @melkoutch First, this is a lot less efficient, as you'll have quite a few losses in the conversion from the battery output to USB levels and from USB levels to the 3.3V used internally. IIRC there are also additional circuits involved that use more power when powered via USB than via the battery connector.

        Next, there's no way for the Pytrack or LoPy to find the battery level in this case: the battery pack will convert the battery output to standard USB voltage (5V), so there's no information available from the Pytrack or LoPy to find the battery level.

        M 1 Reply Last reply Reply Quote 2
        • M Offline
          melkoutch @jcaron
          last edited by

          @jcaron Thanks for answering ! So if I switch to lipo battery, I just have to measure the battery pin out the get the battery level, right ?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @melkoutch
            last edited by jcaron

            @melkoutch you can read the battery voltage which is connected to an ADC on both the Expansion board and the Pysense/Pytrack (though not the same way).

            Note that there is no exact direct relationship between voltage and remaining charge, this may vary with current temperature, average and instantaneous current, etc.

            Also LiPo batteries have a discharge graph where most of the graph in the middle is very flat around 3.7V so it’s not easy to get an exact value from that.

            It’s probably going to be more like a low battery warning when the voltage gets below 3.7V than an accurate battery level reading.

            M 1 Reply Last reply Reply Quote 3
            • M Offline
              melkoutch @jcaron
              last edited by

              @jcaron Perfect thanks

              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
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom