<?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 Noise issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71523/saadc-noise-issue</link><description>Hi, I have a simple voltage divider circuit and I am measuring analog input from in between the resistors. I am using a custom NRF52832 being powered by a DK. I get quite a lot of variation in the analog values with values varying in a range of 10 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Feb 2021 10:35:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71523/saadc-noise-issue" /><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294345?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 10:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae7d0f3-de5e-4b4f-a0ba-7caa89cffa7b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You would need to uninit the saadc and re-configure it with only one channel with oversampling and back and forth in such case unfortunately.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294280?ContentTypeID=1</link><pubDate>Sat, 13 Feb 2021 18:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2178ebb6-b193-462a-b2c0-4494cacb69e7</guid><dc:creator>KellyJust</dc:creator><description>&lt;p&gt;Thanks Kenneth have been able to successfully implement oversampling and remove the noise. Now another issue is that I have to use another analog input and I read somewhere that scan mode and oversampling won&amp;#39;t work together. Is there a way around it I only require oversampling for one channel for the other it is not required and I am also happy to read it in blocking mode if that avoids the scan mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294274?ContentTypeID=1</link><pubDate>Sat, 13 Feb 2021 13:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d00120-c55e-4348-8b5e-4070c3beee39</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The Tacq should be set depending on the source resistance you are measuring:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#concept_qh3_spp_qr"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#concept_qh3_spp_qr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However there are some issues when using short Tacq:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_74.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_74.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_86.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_86.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_150.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_150.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_178.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_178.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_212.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_212.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So typically using 5us (or higher) is preferred.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294269?ContentTypeID=1</link><pubDate>Sat, 13 Feb 2021 12:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65892c25-3273-4c09-9cb2-16e62cde572a</guid><dc:creator>KellyJust</dc:creator><description>&lt;p&gt;Thanks and Tacq can be set at a minimum of 3us right and thus 1khz should be possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294268?ContentTypeID=1</link><pubDate>Sat, 13 Feb 2021 12:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8a63b5-df74-4a77-a72e-cbe8185f514a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The max sampling rate will likely be 1/((TOVERSAMPLE*Tacq)+(interrupt delay+processing)+(possible higher level interrupt that may cause the interrupt to be delayed)).&lt;/p&gt;
&lt;p&gt;So presuming 1/((256 * 10us) + (~50) + (~150)) = 362Hz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294227?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 16:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da0ba67-61db-4b62-baa1-398ae0ed16a1</guid><dc:creator>KellyJust</dc:creator><description>&lt;p&gt;Thanks, Kenneth oversampling seems to be working. Can let me know what is the maximum sampling rate that can be achieved to get averaged value when oversampling at 256?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294075?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 22:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f70df503-0113-4563-94d5-ed7db947fd42</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are for instance thermal noise that will impact the measurement, so for a single sample you will not get a fixed value no. Though thermal noise for instance is&amp;nbsp;random, so if you enable oversampling you will be able to remove much of the noise because it will even out.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/294061?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 18:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2082f6c-9f8c-4a07-955b-5e37cbac0a21</guid><dc:creator>KellyJust</dc:creator><description>&lt;p&gt;Here are the results with 2xAA batteries as VDD source and a single AA battery connected directly between analog pin and ground. Still quite a bit of variation. Have even tried with gain 1_6. Is this deviation normal, does the adc ever give out a single non changing output?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1_5F00_1.PNG" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4747.1_5F00_2.PNG" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1_5F00_3.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/293964?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 11:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06cfc36-c049-43f4-8d9c-b1d4737859aa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Try to connect a AA battery directly to the analog input, this should be a very low noise source. For VDD you can use 2xAA batteries for test.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/293945?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 11:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447ceb0f-d44a-41df-a551-35c2e13ec0bf</guid><dc:creator>KellyJust</dc:creator><description>&lt;p&gt;I am using the VDD pin from the NRF52DK (powered by USB from laptop) to power and gnd my custom NRF52832 circuit. Don&amp;#39;t unfortunately have access to a scope to measure the supply wave form.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC Noise issue</title><link>https://devzone.nordicsemi.com/thread/293875?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 00:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d305f5ae-4cb4-40f2-ab6f-33ba73518049</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So that&amp;#39;s roughly a 2% variation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So how stable is your supply, and how good is your grounding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>