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)
-
@robert-hh Got thanks it works!!
-
@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.