<?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 accuracy problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104205/saadc-accuracy-problem</link><description>I have several issues while using SAADC 
 1. For the same voltage, the ADC data has a large variance 
 2.The data of differential ADC seems to have an offset which let measure voltage is smaller than true voltage. 
 
 So my question is: 
 1.What can be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Oct 2023 11:40:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104205/saadc-accuracy-problem" /><item><title>RE: SAADC accuracy problem</title><link>https://devzone.nordicsemi.com/thread/448988?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 11:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e605fa-800a-42e3-838f-51b93537bdee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;We can&amp;#39;t think of any reason for this.&amp;nbsp;Can you make a simple project I can run on an nRF52-DK to recreate this in some way?&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 accuracy problem</title><link>https://devzone.nordicsemi.com/thread/448601?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 07:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:586e7ed7-ea6c-4b84-87ca-a74269cbf98b</guid><dc:creator>JasonChen96</dc:creator><description>&lt;p&gt;Thanks for your reply, Kenneth.&lt;/p&gt;
&lt;p&gt;I am using Single-end ADC and differential ADC to measure the voltage difference of two analog outputs.&lt;/p&gt;
&lt;p&gt;Assume the analog output pair as V1and V2, V3 and V4 whose voltage are guaranteed to be stable.&lt;/p&gt;
&lt;p&gt;The Single-end ADC is set as below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;.gain       = NRF_SAADC_GAIN1_6,
.reference  = NRF_SAADC_REFERENCE_INTERNAL, 
.mode       = NRF_SAADC_MODE_SINGLE_ENDED, 

OVERSAMPLING_64X&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In order to maintain the same resolution with single-end ADC ,the differential ADC is set as below.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;.gain       = NRF_SAADC_GAIN1_3,
.reference  = NRF_SAADC_REFERENCE_INTERNAL, 
.mode       = NRF_SAADC_MODE_DIFFERENTIAL,

OVERSAMPLING_64X&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In addition, each time the ADC runs ,&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;while&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;nrfx_saadc_offset_calibrate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;!=&lt;/span&gt;&lt;span&gt; NRF_SUCCESS);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;is executed to perform the ADC calibration.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The raw value of&amp;nbsp; [V1(Single-end)-V2(Single-end) ] and [(V1-V2)(Differential ADC)] is shown as below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696318900598v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The raw value of&amp;nbsp; [V3(Single-end)-V4(Single-end) ] and [(V3-V4)(Differential ADC)] is shown as below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696318966503v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Apparently, in my ADC program for measuring voltage difference, the error is greater using differential ADC, can you tell the reason please?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC accuracy problem</title><link>https://devzone.nordicsemi.com/thread/447949?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 12:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d433f0d0-bfa3-45d2-9fa9-7a546a445a56</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you provide some measurement that show what you describe? I would like to understand what variation you see with both single ended and differential intput, also how the inputs are connected in each case and what source and reference you are using.&lt;/p&gt;
&lt;p&gt;Typically I recommend using a single AAA battery directly as input source when you encounter any problem, since&amp;nbsp;a AAA battery&amp;nbsp;will be close to an ideal source (very stable and very low impedance). Using a AAA is a good test to find where the problem may be.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>