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

    Pycom Gpy ADC pins consumes 250mA ???

    Scheduled Pinned Locked Moved GPy
    gpyanalog read
    3 Posts 2 Posters 656 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.
    • T Offline
      tanmay07
      last edited by

      Hi all,
      I have a urgent question. I am using my pycom Gpy to just read analog data and then trun on the LTE once a day and send the day to the cloud through LTE. But I observed that just analog read consumes a lot about 250 mA of current. can someone help? I was expecting it to consume current in about uA when just doing analog read. Below is my simple code. Please help!!!

      import machine
      machine.idle()
      ppm=0
      w=1
      for w in range(0,100):
      import machine
      adc = machine.ADC() # create an ADC object
      apin = adc.channel(pin='P15') # create an analog pin on P16
      val = apin()
      ppm = val + ppm

      avg2 = ppm/100
      final_ppm = avg2/0.85
      print(final_ppm)

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

        @tanmay07 It looks like the LTE hardware is consuming that current. I have that on my FiPy's, that they consume substantial power even if LTE is not used. lte.deinit() helps in that case.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tanmay07 @robert-hh
          last edited by

          @robert-hh Got thanks it works!!

          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