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 voltage reporting vs. power consumption

    Scheduled Pinned Locked Moved Discussion
    batterymeasurementconsumption
    2 Posts 1 Posters 1.3k 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.
    • D Offline
      danielm
      last edited by danielm

      I would like to implement battery voltage measurement for my battery powered sensor based on L01.

      Reference circuit with resistor-based voltage divider with sum resistance of 171kOhm sinks approx. 21uA from 3,6V battery which is too much.

      Is there any better solution? E.g. to introduce MOSFET in series to this voltage divider and "open" it only during measurement?

      1 Reply Last reply Reply Quote 0
      • D Offline
        danielm
        last edited by danielm

        This is what I came with. I did some limited tests with LoPy connected to 5V supply. T2 drain was connected to 3V3 output of LoPy, VBAT to P16 (set as ADC channel) and EN signal to P20 (set as output). I could measure some voltage with the ADC while EN pin was enabled (3V3). When set to 0V, ADC reading was 0V as well and current through T2 drain was around 30nA (measured using uCurrent).
        0_1504793739919_battery_voltage_measurement_circuit_v1.png

        @daniel @jmarcelino and others please comment if this circuit makes sense in your opinion. The goal is to limit the current through the voltage divider in between measurements - e.g. during deep-sleep of battery powered sensor.

        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