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

    measuring current usage at runtime?

    Scheduled Pinned Locked Moved Discussion
    current consump
    5 Posts 5 Posters 481 Views 5 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
      misterlisty
      last edited by

      What is the best way to measure the current consumption at runtime? Be great if i could buy a milliamp module or do i have to stick with a multimeter?

      I want to add a meter to a running py in the field for research.

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @misterlisty
        last edited by

        @misterlisty That depends on which resolution you need. You could e.g. get a module with a INA219 chip and read out the value by the py module itself, or another module. The limitation is the resolution. The A/D of the INA219 has a width of 12 bit. If you select the shunt resistor e.g. for a upper limit of 500 mA, then the resolution is ~0.1 mA, with gives you large errors in the low current region. That's a very low cost variant. Obviously the is ready made test equipment for that purpose and small USB plugs in any size and precision, like the small low precision USB plugs or devices like these: https://www.ee-quipment.com/products/real-time-current-monitor-with-usb

        1 Reply Last reply Reply Quote 0
        • T Offline
          thinginnovations
          last edited by

          One solution, if your budget can stretch this far, is the Otii. It acts as a smart power supply and can take a UART feed from your device for debugging. I've used one for other devices and significantly reduced power consumption through both hardware and software design changes.

          Andrew

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            Paul Thornton @thinginnovations
            last edited by

            @thinginnovations Not cheap but does look super useful. Thanks for the link :)

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Martinnn @Paul Thornton
              last edited by

              @paul-thornton Sad that everyone needs to have a subscription model... and an expensive one!

              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