<?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>adc accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5666/adc-accuracy</link><description>Hi, We have an nRF51244 and are using a single ADC in 10bit mode with a 1.8V supply (smooth regulated from battery) wired in LDO mode. The problem is our readings are all high by a few mV. Looking deeper we see we are always a few counts higher than calculated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Feb 2015 11:44:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5666/adc-accuracy" /><item><title>RE: adc accuracy</title><link>https://devzone.nordicsemi.com/thread/19849?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 11:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dcb1eb5-2fef-443b-ab30-1084aae3729e</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Yano&lt;/p&gt;
&lt;p&gt;Yes, this offset error of the ADC is within specification. The spec allows up to 2% offset error and up to 2% gain error additionally. To correct any potential offset and gain error, you will need to do that in production. &lt;a href="https://devzone.nordicsemi.com/question/21653/how-to-calibrate-the-nrf51-adc-to-correct-offset-and-gain-error/"&gt;This thread&lt;/a&gt; has a guide on how to do that.&lt;/p&gt;
&lt;p&gt;However, any impedance on the ADC input pin will cause error in the reading. If you use prescaler 1/1 for the configuration of the ADC, then you can expect error of 1kohm/130kohm = 0.77% error. The error could be for 10 bit resolution 1024*0.0077 = 8 bits. However, if you add a capacitor between the ADC input and ground, that should eliminate most of the error. It will however not do that with your filter of 100nF/1kohm as the capacitor would need larger capacitance to keep the voltage steady for 68us, which is the time it takes to sample with 10-bit resolution. The impedance of the ADC input is given in table 313 in the nRF51 series Reference Manual v3.0. A guide on how to calculate capacitor size for a voltage divider is given &lt;a href="https://devzone.nordicsemi.com/question/990/how-to-measure-lithium-battery-voltage/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>