<?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>Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84038/max-source-resistance-value-of-saadc-in-nrf52840</link><description>Hello, 
 In my project i am currently creating a sub-module to read the battery voltage and convert that into percentage based on the ADC value read. I have refereed the guide from Nordic to measure the battery voltage. 
 In the guide as well as the in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Feb 2022 12:28:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84038/max-source-resistance-value-of-saadc-in-nrf52840" /><item><title>RE: Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/thread/350665?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 12:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abd100d-25ca-495c-aaac-e573e553610c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="Brian (Geek)"]thanks for clarification.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="Brian (Geek)"]Also software side, I will be using acquisition time of around 10us and will be triggering SAADC read every 2-3 minutes. After successful conversion of SAADC samples i will be un-initializing the SAADC peripheral and cut-off&amp;nbsp;voltage monitoring section using a trigger pin to save power.&amp;nbsp;[/quote]
&lt;p&gt;This is good - then you should only see the leakage current of the measurement pin adding into your overall current consumption.&lt;/p&gt;
[quote user="Brian (Geek)"]While designing our board we took reference from Thingy 52 board, where the R1 value is 1.5 M Ohms and R2 is around 180K Ohms without use of any external capacitor. So how is it possible to get proper reading in Thingy 52 board just by the use of high source resistance (1.5 M Ohm) ? Can you please explain that.&amp;nbsp;[/quote]
&lt;p&gt;I reached out to the Thingy52 developers about this, but they did not have any particular comment about this. Based on the calculations I would expect this level of source resistance to cause inaccurate readings of the battery level - but at the same time I have not heard about this being reported as an issue by Thingy52 users, so it is hard to say how big the potential effect of this is.&lt;br /&gt;&lt;br /&gt;Either way, I would recommend that you go with the capacitor approach since this both theoretically and practically will cause the most accurate readings with the least possible leakage current.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/thread/349865?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 06:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4cf2915-1014-44e0-a168-b8a1f7fce4b3</guid><dc:creator>Brian (Geek)</dc:creator><description>&lt;p&gt;Hello thanks for clarification.&lt;/p&gt;
&lt;p&gt;So i will be using the resistor and capacitor values same as the values given in the example section of&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Based on these calculations we can for example use these values: R1 = 4MOhm, R2 = 10MOhm, Cext = 10nF. Then the leakage current will maximum be:

4.2V / (10MOhm + 4MOhm) = 300nA&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also software side, I will be using acquisition time of around 10us and will be triggering SAADC read every 2-3 minutes. After successful conversion of SAADC samples i will be un-initializing the SAADC peripheral and cut-off&amp;nbsp;voltage monitoring section using a trigger pin to save power.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;While designing our board we took reference from Thingy 52 board, where the R1 value is 1.5 M Ohms and R2 is around 180K Ohms without use of any external capacitor. So how is it possible to get proper reading in Thingy 52 board just by the use of high source resistance (1.5 M Ohm) ? Can you please explain that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/thread/349696?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 09:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f6a70a-a7d2-480d-b250-3cde28c4b897</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Brian (Geek)"]Okay this means if I don&amp;#39;t use capacitor, and just use high resistance values directly for R1 and R2 the values read by ADC might not be correct.&amp;nbsp;[/quote]
&lt;p&gt;Yes, this is correct - because the SAADC&amp;#39;s internal capacitor will not fill fast enough if the source resistance is too high, meaning that the SAADC readings will come out too low. Adding a capacitor to the voltage divider negates this issue through always making enough charge available (given that the SAADC sampling frequency is not too high for the new capacitor to reach its steady state) for the SAADC to sample accurately.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/thread/349617?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 16:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66d274d-ab5f-41a5-bbb2-5c55be137ef6</guid><dc:creator>Brian (Geek)</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have referred the link which you have mentioned. And also the nRF52840 SAADC peripheral doc, says the max source resistance that I can have is 800K ohms for acquisition time of 40us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Okay this means if I don&amp;#39;t use capacitor, and just use high resistance values directly for R1 and R2 the values read by ADC might not be correct.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max Source Resistance value of SAADC in nRF52840</title><link>https://devzone.nordicsemi.com/thread/349585?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 14:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bfa842c-a42b-42ac-94ca-dc52e4f4e28c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Which guide / reference document are you referring to here - Is it the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52"&gt;How to measure lithium ion battery&amp;#39;s guide&lt;/a&gt;?&lt;br /&gt;In general, when working with a very high resistance you should add a capacitor to ensure correct readings. This is also explained in the linked guide, along with an explanation of the calculations involved with determining the correct resistor and capacitor values.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>