<?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[ADC conversion values]]></title><description><![CDATA[<p dir="auto">Good evening</p>
<p dir="auto">Ive been trying to figure out own to properly obtain some values from a gas sensor (MQ131)  into my lopy4 over ADC but ive been getting values that are a bit off and i wanted to make sure im doing things right:</p>
<p dir="auto">Sensor Vcc is connected to an external 5v psu<br />
Sensor GND is connected to ground on Lopy4</p>
<p dir="auto">First, this sensor output is betwen 0~4,6v so i know that i wont be able to get all values from ADC even at attn of 11</p>
<p dir="auto">But even so when measuring sensor output, im getting, for example 0,22v and lopy actually says im getting about 0,33v.</p>
<p dir="auto">So my question is: how can i actually measure this sensor output in this configuration?</p>
]]></description><link>https://forum.pycom.io/topic/5320/adc-conversion-values</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 10:23:25 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5320.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Oct 2019 13:15:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ADC conversion values on Wed, 23 Oct 2019 13:15:34 GMT]]></title><description><![CDATA[<p dir="auto">Good evening</p>
<p dir="auto">Ive been trying to figure out own to properly obtain some values from a gas sensor (MQ131)  into my lopy4 over ADC but ive been getting values that are a bit off and i wanted to make sure im doing things right:</p>
<p dir="auto">Sensor Vcc is connected to an external 5v psu<br />
Sensor GND is connected to ground on Lopy4</p>
<p dir="auto">First, this sensor output is betwen 0~4,6v so i know that i wont be able to get all values from ADC even at attn of 11</p>
<p dir="auto">But even so when measuring sensor output, im getting, for example 0,22v and lopy actually says im getting about 0,33v.</p>
<p dir="auto">So my question is: how can i actually measure this sensor output in this configuration?</p>
]]></description><link>https://forum.pycom.io/post/29974</link><guid isPermaLink="true">https://forum.pycom.io/post/29974</guid><dc:creator><![CDATA[Alephus]]></dc:creator><pubDate>Wed, 23 Oct 2019 13:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to ADC conversion values on Wed, 23 Oct 2019 13:43:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5311">@Alephus</a> Loyp Just scale them properly. You may also take the raw ADC readings and do the conversion yourself. But I would add a voltage divider between you gas sensor and the ADC input, such that the input never gets a value &gt; 3.3V. That divider could for instance constist of  a 10k (between ADC Input and GND) and 4.7 K (between ADC input and sensor output) resistor, with an additional 10nF capacitor between ADC input and GND. The scaling factor would then be 1.47 (if you read 1V, the actual output value is 1.47 V).</p>
]]></description><link>https://forum.pycom.io/post/29975</link><guid isPermaLink="true">https://forum.pycom.io/post/29975</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Wed, 23 Oct 2019 13:43:11 GMT</pubDate></item><item><title><![CDATA[Reply to ADC conversion values on Sat, 05 Feb 2022 19:04:42 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1644087457373-voltage_divider.jpg" alt="voltage_divider.JPG" class="img-responsive img-markdown" /></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> I have made Expansion Board 3.1 -style voltage divider like this on my breadboard but I'm still a little bit uncertain where to place that little 10nF capacitor. Can you help me?</p>
]]></description><link>https://forum.pycom.io/post/39845</link><guid isPermaLink="true">https://forum.pycom.io/post/39845</guid><dc:creator><![CDATA[mrks tsk]]></dc:creator><pubDate>Sat, 05 Feb 2022 19:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to ADC conversion values on Sat, 05 Feb 2022 19:18:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/9770">@mrks-tsk</a> The capacitor has to be placed between ADC input and GND. In your diagram at the VBATT side.</p>
]]></description><link>https://forum.pycom.io/post/39846</link><guid isPermaLink="true">https://forum.pycom.io/post/39846</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sat, 05 Feb 2022 19:18:30 GMT</pubDate></item></channel></rss>