Pycom Gpy ADC pins consumes 250mA ???
-
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 + ppmavg2 = ppm/100
final_ppm = avg2/0.85
print(final_ppm) -
@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.
-
@robert-hh Got thanks it works!!
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