<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83908/saadc-value-is-not-changing-as-it-should</link><description>Hello, On a custom board, using the NRF52832, we want to know the value of a potentiometer. This value is send via a signal on the AIN5 pin of the NRF52. 
 So, I tried to set up a code to read the value via the saadc module, but it seems it doesn&amp;#39;t work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jan 2022 14:01:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83908/saadc-value-is-not-changing-as-it-should" /><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348953?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 14:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c324a1bf-ccdf-488e-97c4-46610f354101</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Glad to you sorted it out! :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348939?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 13:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9ab21b-0edf-4f5e-928d-6cdf1a152946</guid><dc:creator>Christos.Bou</dc:creator><description>&lt;p&gt;Thank you, you were right, the hardware information of our team was not correct !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348933?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 12:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c8917e-ecdc-46ec-a8e9-6acfcf09e2b2</guid><dc:creator>Christos.Bou</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ll re-check if this is connected in the hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348927?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 12:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feaed154-de54-44b1-8ac8-e5aef0ac7136</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Christos.Bou"]How do you know that the AIN5 seems to be floating ?[/quote]
&lt;p&gt;I just recognized the sample values and their variance. They are typical for the default single-ended settings and floating input pin.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Christos.Bou"]I mean that in the Debug Terminal, it shows 3 values, then wait for a delay and show after 3 other values. And I did not implement a delay, so I don&amp;#39;t kno why...[/quote]
&lt;p&gt;That&amp;#39;s the log module. It will store logs in a buffer and process them in a batch. I think we call it defered logging in the API/docs.&lt;br /&gt;&lt;br /&gt;-Edit: You can turn this feature on/off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348924?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 12:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f3c0fe-682d-48ba-82c9-8d7c534a6464</guid><dc:creator>Christos.Bou</dc:creator><description>&lt;p&gt;How do you know that the AIN5 seems to be floating ? Actually, we are trying to re-build an old code that was made in js for the same hardware and in this code it was using AIN5, so I&amp;#39;m pretty sure that this pin is connected to it.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I mean that in the Debug Terminal, it shows 3 values, then wait for a delay and show after 3 other values. And I did not implement a delay, so I don&amp;#39;t kno why...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Value is not changing as it should</title><link>https://devzone.nordicsemi.com/thread/348920?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 12:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5bacc1-6fb2-416c-b3d8-ce9874f2274e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;AIN5 (p0.29)&amp;nbsp;seems to be floating. Most likely you&amp;#39;re connected the potentiometer to the wrong pin.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]Another issue that I had, is that the adc value are showing 3 by 3 with a delay but I&amp;#39;ve not implemented a delay, so I don&amp;#39;t know why...[/quote]
&lt;p&gt;I don&amp;#39;t understand, what do you mean by &amp;quot;showing 3 by 3&amp;quot; and &amp;quot;with a delay&amp;quot;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>