<?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/"><channel><title>Measuring Lithium battery voltage with nRF52</title><link>/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><description>Here is an example of a hardware setup to measure the voltage on a Lithium battery with a voltage divider on nRF52. The Lithium battery typically has a voltage range of 2.7 - 4.2 V and we (Nordic) recommend that you divide the battery voltage with tw</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Tue, 11 Apr 2023 09:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Harsh Bhatt</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span&gt;Hello In my case r1= 1M and r2= 3.16M. Output voltage need to be&amp;nbsp;3.13v when battery voltage is 4.12v,&amp;nbsp; but we recived the 2.91v. Dont know why but we get the voltage drop at output side. please share the solution.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Sat, 21 Jan 2023 18:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>mudroprogramer</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;There is a mistake in the following equation.&lt;/p&gt;
&lt;p&gt;Vsaadc = Vain * (Cext &amp;ndash; Csample) / Cext&lt;/p&gt;
&lt;p&gt;To test this equation, lets&amp;nbsp;consider&amp;nbsp;we choose Cext equal to Csample&lt;/p&gt;
&lt;p&gt;--&amp;gt;&amp;nbsp;&lt;span&gt;the result is Vsaadc&amp;nbsp;=&amp;nbsp;0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;While intuitively, the charge should be split equally between the two equal caps and the voltage should drop by 2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe the equation should be:&lt;/p&gt;
&lt;p&gt;Vsaadc = Vain * Cext / (Cext + Csample)&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Tue, 15 Feb 2022 15:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>DanaK6JQ</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Minor nit: &amp;quot;we choose R1 to be 800 K&amp;Omega;. This is the maximum source resistance we can have if we use an acquisition time of 40 us, see here.&amp;quot;&lt;/p&gt;
&lt;p&gt;The series resistance of a resistive voltage divider is the parallel of the two resistors; R1 alone does not determine the series resistance. In this case, series resistance is 1 / ( 1 / 2000 + 1 / 800 ) -&amp;gt; 571.4k. In theory, you could use a larger values for R1 and R2.&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Mon, 31 Aug 2020 12:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Radio</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;In the above voltage divider circuit,&amp;nbsp; is the AIN out is connected to the saadc input pin as well as nRF52 VDDH pin?&lt;/p&gt;
&lt;p&gt;When ADC starts to sample could it affect the overall power supply to the chip?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot!!&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Tue, 19 Nov 2019 10:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Nasib</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Ufff&amp;nbsp; I have a couple of doubts:&lt;/p&gt;
&lt;p&gt;1) Here they say that we don&amp;#39;t want the current to flow through the ADC. Why?&lt;br /&gt;&lt;br /&gt;&lt;a href="/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf51"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf51&lt;/a&gt;&lt;a href="/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;2) In my case (NRF51822) the internal resistance of the ADC is 360K, so it is below R2 ... Does this fact affect the measurement?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you !!&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Tue, 07 May 2019 08:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Shashikant</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Ole Bauck,&lt;/p&gt;
&lt;p&gt;As mentioned in datasheet input impedance of the ADC pin is &amp;gt;1M ohm.&lt;/p&gt;
&lt;p&gt;It means if we use a voltage divider circuit then the impedance of voltage divider should not exceed the input impedance of the ADC pin. please correct me if I&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;Does higher value of external impedance at ADC pin affect the performance?&lt;/p&gt;
&lt;p&gt;If I&amp;#39;m selecting this value&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;R1 = 4MOhm, R2 = 10MOhm, Cext = 10nF,&amp;nbsp;&lt;/strong&gt;it is fine for &amp;gt;1M ohm impedance?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;Thank you&lt;/p&gt;
&lt;p&gt;Shashikant&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Wed, 10 Apr 2019 09:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Geom</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;What can you say about using new feature on nRF52840 chip -&lt;br /&gt;check battery voltage on input &lt;strong&gt;SAADC_CH_PSELP_PSELP_VDDHDIV5&lt;/strong&gt;?&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Fri, 29 Mar 2019 11:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>PY</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello Ole,&lt;br /&gt;&lt;br /&gt;Thank you for your great work!&lt;br /&gt;&lt;br /&gt;I still have one question about the capacitor part, how do you calculate the new resistor value of 4MOhm for R1?&lt;br /&gt;According to the documentation, with a 3us acquisition time, the source resistor has to be 10KOhm.&lt;br /&gt;&lt;br /&gt;Thank you for your answer&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Wed, 20 Mar 2019 19:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>jackiemoon98</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I noticed this example from a while back and am trying to reproduce the example but with nrf52840 and sdk 15.2.0. Is there any way to use this technique with the examples/peripheral/saadc example provided in the sdk? Is the same thing possible in the examples/ble_peripheral/ble_app_template? If so, could you please provide some insight on how to do this, specifically using nrf log to output the battery level to terminal/debug terminal?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Thu, 14 Feb 2019 20:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>ProfHindsight</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Does the input impedance of the SAADC not play a role in the measurement?&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Thu, 14 Feb 2019 10:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>awneil</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Note that b&lt;span&gt;attery terminal voltage is a&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;very&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;strong&gt;poor&lt;/strong&gt;&lt;span&gt;&amp;nbsp;indicator of remaining capacity for lithium batteries.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This comes up very frequently in the forum; eg,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="/f/nordic-q-a/20389/battery-level-check/79486#79486"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/20389/battery-level-check/79486#79486&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="/f/nordic-q-a/6914/battery-level-discharge-curve-how-can-i-read"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/6914/battery-level-discharge-curve-how-can-i-read&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For accurate battery capacity estimation, you need a so-called &amp;quot;Coulomb Counter&amp;quot; or &amp;quot;Gas Gauge&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Mon, 24 Sep 2018 11:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>devops</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;What does the &amp;quot;gain of 1/5&amp;quot; mean? From where is that number (1/5) taken from? Is there a sample code somewhere?&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Fri, 27 Jul 2018 07:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>awneil</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The link explaining the R1 800k maximum is broken&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Tue, 08 May 2018 09:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Moe</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I was looking exactly for this kind of information. i just found the link to this blog through the discussion forum. if possible please highlight it in a more obvious and clear way to other beginners! thanks&amp;nbsp; a lot&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Measuring Lithium battery voltage with nRF52</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52</link><pubDate>Wed, 17 Aug 2016 12:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6637e18-3840-4c4d-b259-a2cead1f710c</guid><dc:creator>Ole Bauck</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Post updated with capacitor value calculations&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=928&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>