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

    what "read_battery_voltage()" do ?

    Scheduled Pinned Locked Moved Discussion
    pytrackpysense
    5 Posts 3 Posters 1.2k Views 3 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.
    • J Offline
      Jiemde Pybytes Beta
      last edited by

      Is someone can explain what's the " read_battery_voltage() " in the Pytrack/Pysense lib do ?
      What's the result is ?
      Jiemde

      E 1 Reply Last reply Reply Quote 0
      • E Offline
        Emmanuel Goudot @Jiemde
        last edited by

        @Jiemde When a LiPo battery is connected to pytrack/pysense, it will give the Lipo (battery) voltage ;-)

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jiemde Pybytes Beta @Emmanuel Goudot
          last edited by

          Hi @Emmanuel-Goudot,
          Thanks for your reply but I just read 0.802 with or without usb power supply with or without a Lipo battery pluged ?
          Is it why I ask this question!
          I just do: bat=py.read_battery_voltage() and bat return 0.802 and never change!
          Best regards
          Jiemde

          J 1 Reply Last reply Reply Quote 0
          • E Offline
            Emmanuel Goudot
            last edited by

            I had this trouble with previous version of pytrack_0.0.X.dfu. Do you use 0.0.4 ?

            1 Reply Last reply Reply Quote 0
            • J Offline
              jmarcelino @Jiemde
              last edited by jmarcelino

              @Jiemde
              It's working here

              >>> py = Pysense()
              >>> print (py.read_battery_voltage())
              4.11466
              

              Make sure you have everything up to date: the Pycom board, the pycom-libraries and Pysense/Pytrack firmware

              1 Reply Last reply Reply Quote 2

              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