<?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 oversampling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80194/saadc-oversampling</link><description>HI, 
 I&amp;#39;m developing it using NRF52832. 
 I&amp;#39;m updating the remaining battery capacity using saadc. However, the battery value is not stable because the value obtained from saadc is not constant. 
 Can I stabilize the saadc value using oversampling? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Oct 2021 08:17:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80194/saadc-oversampling" /><item><title>RE: saadc oversampling</title><link>https://devzone.nordicsemi.com/thread/332508?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d15466-7d94-4e51-b7a0-efe8041518bc</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="sabsari"]Values fluctuate within a single digit range[/quote]
&lt;p&gt;measured in mV this is a good result.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="sabsari"]BUT There are times when the value fluctuates significantly.[/quote]
&lt;p&gt;how much&amp;nbsp;is significantly ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the value fluctuation that is significant occurs as the same time that the CPU, Radio or some peripheral is doing something then there will be peaks and valleys on the VDD. So you will have to figure out if something else is going on during those significant fluctuations periods.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In addition you will also have to use the discharge curve of the battery that you are using. We only have it for&amp;nbsp;&lt;span&gt;CR2032.&lt;br /&gt;&lt;br /&gt;You can also average&amp;nbsp;with oversampling, by having buffer size 1 and oversampling 16, then only one&amp;nbsp;value will be written to the buffer anyways.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saadc oversampling</title><link>https://devzone.nordicsemi.com/thread/332452?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 04:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed3e2091-f99e-4cd3-8b96-19155d88adfb</guid><dc:creator>sabsari</dc:creator><description>&lt;p&gt;&lt;span&gt;Values fluctuate within a single digit range.BUT There are times when the value fluctuates significantly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried to derive the remaining battery capacity through the average value by setting the buffer to 1.However, the remaining battery capacity is not constant due to the large splashing values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Should we process additional signals?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saadc oversampling</title><link>https://devzone.nordicsemi.com/thread/332398?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 14:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:178033db-ed64-4d0a-b027-6a4e20991062</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;How much does the values fluctuate ?&lt;br /&gt;&lt;br /&gt;Maybe consider adding in some signal processing in addition.&lt;br /&gt;&lt;br /&gt;Oversampling is good at reducing white noise, but there are other factors that contribute to fluctuations. Like for example if the radio is used while the SAADC is taking samples, it will lower the voltage a bit.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;We do have some older cases here on Devzone that you can look at also:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14583/nrf52832-saadc-sampling"&gt;nRF52832 SAADC sampling - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74870/saadc-oversampling-sampling-interval"&gt;SAADC oversampling sampling interval? - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>