<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[gPY ADC consumes 50mA current??]]></title><description><![CDATA[<p dir="auto">[link text](link url)Re: <a href="/topic/3261/pycom-gpy-adc-pins-consumes-250ma">Pycom Gpy ADC pins consumes 250mA ???</a></p>
<p dir="auto">Hi all,</p>
<p dir="auto">I am still concerned about Pycom GPY ADC power consumption. Even after deint LTE, BLUETOOTH AND WIFI. It consumes about 50mA of current with just ADC. ps- I have to initialize the LTE,Bluetooth and wifi every-time when the chip starts and then de intialize it as I belive that is how it works.---Correct me if I am wrong.</p>
<p dir="auto">Please help me how can I reduce the current to uA when I just doing ADC.</p>
<p dir="auto">Below is my simple code:-</p>
<p dir="auto">from network import LTE<br />
from network import WLAN<br />
from network import Bluetooth<br />
import machine<br />
bluetooth = Bluetooth()<br />
bluetooth.deinit()<br />
wlan = WLAN(mode=WLAN.STA)<br />
lte = LTE()<br />
lte.deinit()<br />
wlan.deinit()<br />
machine.idle()<br />
ppm=0<br />
w=1</p>
<p dir="auto">for w in range(0,100000):#-------------------------------Just reading Pressure start</p>
<pre><code>    adc = machine.ADC()             # create an ADC object
    apin = adc.channel(pin='P16')   # create an analog pin on P16
    val = apin()

    value = (val/34)


    print(value)#-------------------------------------Just reading Pressure stops
</code></pre>
<p dir="auto">machine.deepsleep(12000)</p>
]]></description><link>https://forum.pycom.io/topic/3272/gpy-adc-consumes-50ma-current</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 07:04:19 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3272.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 May 2018 17:29:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 22:57:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tanmay07" aria-label="Profile: tanmay07">@<bdi>tanmay07</bdi></a> Got it thanks a ton!<br />
I was also looking for another scenario where I do not  have to use this. Suppose I configure my device to be on a deepsleep it consumes about 25uA current. But I want it to wake up on certain levels of voltage from my sensors on analog pins. Is it possible to do this using:-<br />
machine.pin_deepsleep_wakeup(pins, mode, enable_pull)</p>
<p dir="auto">?? Because I believe this function can only wakeup the decice from deep sleep if the specidied pins goes high or low.This can be used for specific voltage levels on analog pins right?</p>
]]></description><link>https://forum.pycom.io/post/19776</link><guid isPermaLink="true">https://forum.pycom.io/post/19776</guid><dc:creator><![CDATA[tanmay07]]></dc:creator><pubDate>Fri, 18 May 2018 22:57:58 GMT</pubDate></item><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 22:50:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tanmay07" aria-label="Profile: tanmay07">@<bdi>tanmay07</bdi></a><br />
No nothing yet, that is a very advanced and specialised topic. The example I linked to is the best help.</p>
]]></description><link>https://forum.pycom.io/post/19775</link><guid isPermaLink="true">https://forum.pycom.io/post/19775</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Fri, 18 May 2018 22:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 22:40:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tanmay07" aria-label="Profile: tanmay07">@<bdi>tanmay07</bdi></a> said in <a href="/post/19770">gPY ADC consumes 50mA current??</a>:</p>
<blockquote>
<p dir="auto">ng ULP</p>
</blockquote>
<p dir="auto">Is there any link or video which could explain how to program Pycom chips or ESP32 with ULP ???</p>
]]></description><link>https://forum.pycom.io/post/19774</link><guid isPermaLink="true">https://forum.pycom.io/post/19774</guid><dc:creator><![CDATA[tanmay07]]></dc:creator><pubDate>Fri, 18 May 2018 22:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 20:59:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tanmay07" aria-label="Profile: tanmay07">@<bdi>tanmay07</bdi></a><br />
You can use Atom as a source code editor for sure, but to compile it you'll need the ULP toolchain. See the link I posted below.</p>
<p dir="auto">You'll also need to integrate it with the MicroPython source at <a href="https://github.com/pycom/pycom-micropython-sigfox" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pycom/pycom-micropython-sigfox</a>, compile that as well and  flash the result onto the board, it's not just like Python where you can upload code from Pymakr.</p>
<p dir="auto">There is also some ULP ADC example code at <a href="https://github.com/espressif/esp-idf/tree/master/examples/system/ulp_adc" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/espressif/esp-idf/tree/master/examples/system/ulp_adc</a><br />
You will still need to integrate it, can't use that example directly with MicroPython</p>
]]></description><link>https://forum.pycom.io/post/19771</link><guid isPermaLink="true">https://forum.pycom.io/post/19771</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Fri, 18 May 2018 20:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 20:53:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jmarcelino" aria-label="Profile: jmarcelino">@<bdi>jmarcelino</bdi></a> said in <a href="/post/19769">gPY ADC consumes 50mA current??</a>:</p>
<blockquote>
<p dir="auto">ng ULP as</p>
</blockquote>
<p dir="auto">Can I compile this ULP program into the Gpy chip through ATOM?</p>
]]></description><link>https://forum.pycom.io/post/19770</link><guid isPermaLink="true">https://forum.pycom.io/post/19770</guid><dc:creator><![CDATA[tanmay07]]></dc:creator><pubDate>Fri, 18 May 2018 20:53:04 GMT</pubDate></item><item><title><![CDATA[Reply to gPY ADC consumes 50mA current?? on Fri, 18 May 2018 20:50:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tanmay07" aria-label="Profile: tanmay07">@<bdi>tanmay07</bdi></a><br />
Yes 50mA is a typical current when the just the processor is running (without WiFi, etc.)</p>
<p dir="auto">If you need μA level you'll have to code for the ULP, but that's only possible in C calling ULP assembler functions and requires source customisations</p>
<p dir="auto"><a href="https://esp-idf.readthedocs.io/en/latest/api-guides/ulp.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://esp-idf.readthedocs.io/en/latest/api-guides/ulp.html</a></p>
]]></description><link>https://forum.pycom.io/post/19769</link><guid isPermaLink="true">https://forum.pycom.io/post/19769</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Fri, 18 May 2018 20:50:09 GMT</pubDate></item></channel></rss>