<?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[INPUT ADC values and OUTPUT voltage]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
3 noob questions about GPIO :</p>
<ul>
<li>Voltage range of the ADC seems to be 1.1V, and can be extended to 3.3V playing with attenuation, right ?</li>
<li>What is the given values by the read method (val = apin()) : Is it from 0 to 1023, as an arduino ? Is it directly in mV ?</li>
<li>What is the output Voltage when output.value(True) ?</li>
</ul>
<p dir="auto">I dont find these information in the manual...<br />
Thanks.</p>
]]></description><link>https://forum.pycom.io/topic/7554/input-adc-values-and-output-voltage</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 00:11:03 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/7554.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 May 2022 07:49:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to INPUT ADC values and OUTPUT voltage on Fri, 06 May 2022 07:49:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
3 noob questions about GPIO :</p>
<ul>
<li>Voltage range of the ADC seems to be 1.1V, and can be extended to 3.3V playing with attenuation, right ?</li>
<li>What is the given values by the read method (val = apin()) : Is it from 0 to 1023, as an arduino ? Is it directly in mV ?</li>
<li>What is the output Voltage when output.value(True) ?</li>
</ul>
<p dir="auto">I dont find these information in the manual...<br />
Thanks.</p>
]]></description><link>https://forum.pycom.io/post/40251</link><guid isPermaLink="true">https://forum.pycom.io/post/40251</guid><dc:creator><![CDATA[Meric NESSANGE]]></dc:creator><pubDate>Fri, 06 May 2022 07:49:11 GMT</pubDate></item><item><title><![CDATA[Reply to INPUT ADC values and OUTPUT voltage on Fri, 06 May 2022 08:06:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/10137">@Meric-NESSANGE</a> <a href="https://docs.pycom.io/firmwareapi/pycom/machine/adc/" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/firmwareapi/pycom/machine/adc/</a></p>
<ul>
<li>Yes</li>
<li>You have functions to get either the raw value or the voltage directly</li>
</ul>
<p dir="auto"><a href="https://docs.pycom.io/firmwareapi/pycom/machine/dac/" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/firmwareapi/pycom/machine/dac/</a></p>
<ul>
<li>setting to 1 will provide 3.3V</li>
</ul>
<p dir="auto">Note that the ADC at least is not very precise and quite noisy. Depending on your needs an external ADC may be a better idea.</p>
]]></description><link>https://forum.pycom.io/post/40252</link><guid isPermaLink="true">https://forum.pycom.io/post/40252</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Fri, 06 May 2022 08:06:19 GMT</pubDate></item><item><title><![CDATA[Reply to INPUT ADC values and OUTPUT voltage on Fri, 06 May 2022 09:02:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a>  Hi, and thanks for answer.<br />
OK, both are possible, I missed it ^^<br />
If I read with <code> adcchannel.value()</code>  (so, not in mV), do you know the max value (or the value of 1 step) ?<br />
For the output, I use the digital way : <code> a = machine.Pin('P2', mode = Pin.OUT)</code><br />
=&gt; Is the voltage is also 3.3V ?<br />
=&gt; Is the acceptable current draw is the same ?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1538">@jcaron</a> said in <a href="/post/40252">INPUT ADC values and OUTPUT voltage</a>:</p>
<blockquote>
<p dir="auto">Note that the ADC at least is not very precise and quite noisy. Depending on your needs an external ADC may be a better idea.</p>
</blockquote>
<p dir="auto">Wow.<br />
Worse or better than an arduino? Or the same order of magnitude ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.pycom.io/post/40253</link><guid isPermaLink="true">https://forum.pycom.io/post/40253</guid><dc:creator><![CDATA[Meric NESSANGE]]></dc:creator><pubDate>Fri, 06 May 2022 09:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to INPUT ADC values and OUTPUT voltage on Fri, 06 May 2022 10:20:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/10137">@Meric-NESSANGE</a> said in <a href="/post/40253">INPUT ADC values and OUTPUT voltage</a>:</p>
<blockquote>
<p dir="auto">Worse or better than an arduino? Or the same order of magnitude ?</p>
</blockquote>
<p dir="auto">If your arduion use ESP32 then the same.<br />
If you use digital output then it should be near max voltage 3.3.</p>
<p dir="auto">For the input read the docs, especially bottom green frame<br />
<a href="https://docs.pycom.io/firmwareapi/pycom/machine/adc/#app" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/firmwareapi/pycom/machine/adc/#app</a></p>
]]></description><link>https://forum.pycom.io/post/40254</link><guid isPermaLink="true">https://forum.pycom.io/post/40254</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Fri, 06 May 2022 10:20:46 GMT</pubDate></item></channel></rss>