<?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 on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25744/saadc-on-nrf52832-returns-strange-values-intermittent</link><description>Hi, 
 I see intermittent incorrect values from the saadc. The code is described here . 
 The graf shows battery voltage in mV over about 4 days with one sample per minute. Note the 3 samples that are off. I&amp;#39;m aware that there&amp;#39;s no calibration done in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Nov 2017 12:53:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25744/saadc-on-nrf52832-returns-strange-values-intermittent" /><item><title>RE: SAADC on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/thread/101422?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 12:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9058af65-f4bd-47eb-a6ef-a4f66de0231d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It might be caused by ground bounce internally on the nRF52832, which would not be picked up by the other ADC. Could you try measuring differentially, by connecting GND to one of the AIN pins and set:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ch.pin_n = NRF_SAADC_INPUT_AINx;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Where &lt;code&gt;x&lt;/code&gt; is the Analog input number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/thread/101421?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 11:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42999e15-fa52-4b69-ae23-c0fa77106163</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Not yet, i want to understand the root cause first. Could this have something to do with RF rx/tx, i.e. that saadc sample at the instant RF is active? I checked VDD again, and there is no ripple on the supply rail of that magnitude during RF rx/tx (using a 100MHz scope with trigger set properly). Could it be interference /inside/ the nRF52832 chip that cause this? Note that saadc sample NRF_SAADC_INPUT_VDD which is internal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/thread/101420?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 15:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca13c76c-d8dc-4ae6-9343-85b1bd08f065</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried enabling &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_4_2#saadc_operationmodes_oversample"&gt;oversampling&lt;/a&gt;, to limit the affect of noise on the readings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/thread/101419?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2017 09:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42cca34-e67f-4c5a-9114-c19082a41d0f</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks for your reply Jørgen.&lt;/p&gt;
&lt;p&gt;As described in the linked post, VDD is the supply voltage to nRF52832 from the battery:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  ch.pin_p = NRF_SAADC_INPUT_VDD;
  ch.pin_n = NRF_SAADC_INPUT_DISABLED;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The battery voltage does not dip according to an external adc that measure current and voltage to the pcb, so it&amp;#39;s something in saadc that creates this.&lt;/p&gt;
&lt;p&gt;I use i2c to gather data from 2 other sensors. Those sensors are disabled at the time VDD is measured (via a FET switch), and is switched on in firmware after VDD is measured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC on NRF52832 returns strange values intermittent</title><link>https://devzone.nordicsemi.com/thread/101418?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2017 08:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3b52d6e-5e1b-42a0-a347-c3fdbfcc51b2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What is VDD? Are the device doing anything else than checking the supply voltage? Have you measured battery voltage with external equipment, over the same timer period, to see that this is actually not caused by the battery?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>