<?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>Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63983/read-battery-level-with-lithium-battery-and-nrf52832</link><description>Greetings everyone, 
 I am a beginner in this and would like to ask for help in reading battery level. 
 Battery info: 3.7V, 100mAh, 0.37wh. 
 
 I have tried to read on the different posts and understand that there are people who will need to &amp;quot;step down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jul 2020 06:36:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63983/read-battery-level-with-lithium-battery-and-nrf52832" /><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/262289?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 06:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04250232-0197-4a1d-b020-f0e5ae45a35e</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the assistance. Just an update: I manage to make it work!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For future readers: I realised in the schematics that a step down has been implemented so there is no need for me to do that anymore. As for battery level percentage, I use a power supply and alter accordingly to know whats the highest and lowest voltage needed for the device to power it up. It turns out that the interpolation is quite similar to the example ble_app_proximity battery calculator function so I followed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ee Chin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261565?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 11:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791db19b-051c-487c-9675-92f228eed482</guid><dc:creator>haakonsh</dc:creator><description>[quote user="EeChin"]Is there any formula/conversion to follow?[/quote]
&lt;p&gt;&amp;nbsp;That depends on the battery. I suggest you do some research, keywords:&lt;br /&gt;* Battery fuel gauge (app notes)&lt;br /&gt;* Battery level&lt;br /&gt;* Battery indicator&lt;br /&gt;* etc.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I&amp;#39;m going on vacation for a week, but I&amp;#39;ll assign your case to another Tech Supporter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Håkon Holdhus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261484?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 01:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19379f3a-b00d-4d0b-b1ea-e4a1fabc9dfa</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Hello, please ignore my previous message as I realised that there is already a divider in place as shown in the schematics.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My question now is, to calculate the battery percentage level, how do we make use of the millivolts (from the adc_result_in_milli macro) ? Is there any formula/conversion to follow?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please reply. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261325?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 09:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16fa2e4e-202a-45f8-88bd-c53885f0ab27</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Hello thank you for the kind reply.&lt;/p&gt;
&lt;p&gt;I am a beginner in this so pardon me for asking stupid questions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does the divider refer to a piece of hardware?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In order to use the battery percentage calculator in proximity example: 3v to 2.1v AND not having to use the divider but directly calculate, which kind of battery shall we look into?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for reading this. Hope to hear from you soon.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261323?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 09:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e58a775-7196-414d-b29b-848c25a0075b</guid><dc:creator>haakonsh</dc:creator><description>[quote user="EeChin"]May I ask what is the common power supply that people use for nRF52832?[/quote]
&lt;p&gt;&lt;span&gt;1.7 V–3.6 V supply voltage range.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="EeChin"]When/where shall we implement the divider in code?[/quote]
&lt;p&gt;&amp;nbsp;What do you mean?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="EeChin"]how do i know which pin shall i use?[/quote]
&lt;p&gt;&amp;nbsp;For the battery voltage sensing you can use any of the analog input pins.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261293?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 05:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8df318c-f1a0-4922-acc2-24b61fb8474f</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;an additional question, how do i know which pin shall i use? please reply and help me thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261284?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 01:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c2cd98-4426-455c-b59c-8719d8408083</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;May I ask what is the common power supply that people use for nRF52832?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When/where shall we implement the divider in code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please reply, thank you so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261246?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 15:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b43cc76-bf08-4ae2-b5b3-d55f882cdea5</guid><dc:creator>haakonsh</dc:creator><description>[quote user="EeChin"]How do i see whats the supply voltage on VDD pin? [/quote]
&lt;p&gt;&amp;nbsp;It&amp;#39;s up to you to specify the power supply for the nRF device.&lt;/p&gt;
[quote user="EeChin"]Also what&amp;#39;s the different between the AIN pins and VDD?[/quote]
&lt;p&gt;VDD = power supply pins, AIN = Analog INput.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="EeChin"]I am not sure which part is the divider, is it&amp;nbsp;&lt;span&gt;(2 M/(0.8 M+2 M))?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;correct, see&amp;nbsp;&lt;a href="https://learn.sparkfun.com/tutorials/voltage-dividers/all"&gt;https://learn.sparkfun.com/tutorials/voltage-dividers/all&lt;/a&gt;&amp;nbsp;for basic theory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261228?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 14:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c0bbab-b485-4844-9c56-6edb161ae609</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;How do i see whats the supply voltage on VDD pin? Also what&amp;#39;s the different between the AIN pins and VDD?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure which part is the divider, is it&amp;nbsp;&lt;span&gt;(2 M/(0.8 M+2 M))?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261198?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 12:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:874f9a2d-6012-4c7d-b735-3a97b7d4fc8c</guid><dc:creator>haakonsh</dc:creator><description>[quote user="EeChin"]What does VDDnrf mean?[/quote]
&lt;p&gt;The supply voltage on the nRF52&amp;#39;s VDD pin.&amp;nbsp;&lt;/p&gt;
[quote user="EeChin"]But how to exactly implement the divider?[/quote]
&lt;p&gt;&amp;nbsp;The blog post is quite detailed, I don&amp;#39;t know what questions you have not gotten answered yet. What exactly do you need help with.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261176?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 11:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77c62a58-40f1-40a8-b6a2-c1d10ab067a6</guid><dc:creator>EeChin</dc:creator><description>&lt;p&gt;Hello, thank you for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I ask what do you mean by 0v - VDDnrf? What does VDDnrf mean?&lt;/p&gt;
&lt;p&gt;I have read this:&amp;nbsp;&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;But how to exactly implement the divider?&lt;/p&gt;
&lt;p&gt;Please reply. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Battery Level with lithium battery and nRF52832</title><link>https://devzone.nordicsemi.com/thread/261033?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 15:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5885f6c5-ee69-4bd0-bf83-17798c58968e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need a voltage divider in order to reduce the analog input voltage into acceptable levels, 0V - VDDnrf.&lt;br /&gt;&lt;br /&gt;The resistance of the divider cannot exceed 800kohm.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>