<?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>How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71876/how-to-measure-battery-state-using-vddh-on-nrf52840</link><description>Hello, 
 I am new user for the Nordic NRF528400 microcontroller. I am working on a project that is using the 8 channels of ADCs to get data from sensors. The system is powered by an external battery and it is necessary to know its status at all times</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Mar 2021 10:22:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71876/how-to-measure-battery-state-using-vddh-on-nrf52840" /><item><title>RE: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/296798?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 10:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945aa59e-2ba0-4504-aebe-fd4f1e42ee40</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="A_Has"]Thank you for your feedback.[/quote]
&lt;p&gt;No problem at all, I am happy to help.&lt;/p&gt;
[quote user="A_Has"]This is the battery datasheet.[/quote]
&lt;p&gt;Thank you for providing this. From the datasheet it states that the normal voltage of the battery is 3.7 V, which means &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;anchor=unique_1730776566"&gt;you will have to use high voltage operating mode&lt;/a&gt;.&lt;/p&gt;
[quote user="A_Has"]I have chosen to use 3.3V as power supply for the NRF52840 microcontroller because the sensors that I am using should be powered by 3V and there are many devices that should be powered in the whole project (Flash memory, charger, sensors, LEDs,......).[/quote]
&lt;p&gt;What will be the peak concurrent current draw from all these external components?&lt;br /&gt;You can read more about the possibilities for this in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;anchor=unique_2023308650"&gt;the&amp;nbsp;&lt;em&gt;External circuitry supply&amp;nbsp;&lt;/em&gt;section of the power documentation&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="A_Has"]You have mentioned that I am using lower-than-recommended values of VDD decoupling capacitors. Well, I have contacted an electronic engineer and those were what I was suggested.[/quote]
&lt;p&gt;Yes, please see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fref_circuitry.html"&gt;the reference circuitry schematics for the nRF52840&lt;/a&gt;.&lt;br /&gt;Your decoupling should match that of the reference circuitry, for optimal performance.&lt;br /&gt;If you are using TXPOWER less than +5 dbm it is &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fref_circuitry.html&amp;amp;anchor=unique_799549290"&gt;configuration 4 of the reference circuitry&lt;/a&gt; that seems like the correct configuration for your application. Since you intend to use a battery voltage corresponding high voltage mode, you will also have to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;anchor=unique_1386123489"&gt;change your VDD/VDDH connection&lt;/a&gt; in the diagram screenshot you attached.&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: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/296508?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 11:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c0b399-5d42-4207-b2ec-383b9f87fa35</guid><dc:creator>A_Has</dc:creator><description>&lt;p&gt;Thank you for your feedback.&lt;br /&gt;This is the battery datasheet.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Battery_5F00_251416_08FF_35mAh_29005F00_Datasheet.pdf"&gt;devzone.nordicsemi.com/.../Battery_5F00_251416_08FF_35mAh_29005F00_Datasheet.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have chosen to use 3.3V as power supply for the NRF52840 microcontroller because the sensors that I am using should be powered by 3V and there are many devices that should be powered in the whole project (Flash memory, charger, sensors, LEDs,......).&lt;br /&gt;You have mentioned that I am using lower-than-recommended values of VDD decoupling capacitors. Well, I have contacted an electronic engineer and those were what I was suggested. If you have other proposals, I would appreciate it if you can share them with me.&lt;/p&gt;
&lt;p&gt;Cordially.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/296481?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 10:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309216a3-c40c-4371-bc00-f3ef1f568c6d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="A_Has"]Thank you for availability and your feedback.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="A_Has"]I want to connect the VDDH pin to an external battery of a type of Li-ion Polymer Battery (Model:UFX251416, Capacity:35mAh).[/quote]
&lt;p&gt;What is the operational voltage range of this particular battery?&lt;br /&gt;I am unable to find a datasheet&amp;nbsp;the particular part number you reference.&lt;br /&gt;From your schematic it seems that you will operate in Normal Voltage Mode - since you have shorted VDD and VDDH - which means that the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;anchor=unique_1730776566"&gt;VDD supply must never exceed 3.6V&lt;/a&gt;.&lt;/p&gt;
[quote user="A_Has"]The power supply I want to use is 3.3V on the NRF528400 microcontroller.&amp;nbsp;[/quote]
&lt;p&gt;I am assuming that this means that your VDD supply will be a constant 3.3V, regulated somewhere else before being supplied to the nRF52840. However, your wording is a little ambiguous here, so if you could please confirm whether this is the case, that would be great.&lt;br /&gt;My alternate reading of this is that you intend to use the onboard buck regulator to realize the 3.3 V supply. If this is the case, I would need to know the operational voltage range of the intended battery before I can give any comment.&lt;br /&gt;&lt;br /&gt;Furthermore, I also notice that you are using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;anchor=unique_1730776566"&gt;lower-than-recommended values for your VDD decoupling capacitors&lt;/a&gt;. Is there a reason for this?&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: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/295850?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75560782-0c37-4b70-8bc1-0619bba4be15</guid><dc:creator>A_Has</dc:creator><description>&lt;p&gt;Thank you for availability and your feedback.&lt;br /&gt;The power supply I want to use is 3.3V on the NRF528400 microcontroller.&amp;nbsp;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Capture_5F00_CPU_5F00_SchDoc.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I want to connect the VDDH pin to an external battery of a type of Li-ion Polymer Battery (Model:UFX251416, Capacity:35mAh). &lt;br /&gt;For the state, I need to check the battery&amp;#39;s state to switch, when it is necessary, to a charger (STBC15QTR). &lt;br /&gt;Cordially.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/295808?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 11:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3fc061-893a-4b15-82da-df6a4b8ac0ee</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="A_Has"]Thank you for your feedback.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="A_Has"]When I mentioned the 8 channels of the ADC are used, I wanted to say that the channels AIN0,..., AIN7 are already connected to some sensors.&lt;br /&gt;So I would like to know how can I use the VDDH pin of NRF528400 microcontroller to measure the state of an extern battery?[/quote]
&lt;p&gt;Ah, then it seems I have misunderstood your last question.&amp;nbsp;&lt;br /&gt;A SAADC channel can be connected directly to the VDDH internally, through setting the channels PSEL to 0x0D, no external circuitry needed.&lt;br /&gt;Same goes for the VDD bus.&lt;br /&gt;&lt;br /&gt;Could you confirm for me which power supply&amp;nbsp;configuration you are using for your device? And that by state, you mean to ask about the voltage level presumably connected to the VDDH pin of the nRF52840?&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: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/295796?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 10:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29cf30eb-7e64-4e5d-8e77-689e6e6a7551</guid><dc:creator>A_Has</dc:creator><description>&lt;p&gt;Hello Karl, &lt;br /&gt;Thank you for your feedback.&lt;br /&gt;When I mentioned the 8 channels of the ADC are used, I wanted to say that the channels AIN0,..., AIN7 are already connected to some sensors.&lt;br /&gt;So I would like to know how can I use the VDDH pin of NRF528400 microcontroller to measure the state of an extern battery?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure Battery state using VDDH on NRF52840?</title><link>https://devzone.nordicsemi.com/thread/295653?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 15:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68ab9a98-27e8-4d2f-92ef-6355553cb3a4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello A_Has,&lt;/p&gt;
[quote user=""]I am new user for the&amp;nbsp;Nordic NRF528400 microcontroller.[/quote]
&lt;p&gt;Welcome, and welcome to the forum!&lt;br /&gt;Please do not hesitate to use the forum for any issues or questions you might have - that is why the forum is here! :)&amp;nbsp;&lt;/p&gt;
[quote user=""]I searched in the microcontroller datasheet and on Nordic dev zone; I found that even if the 8 channels of the ADC are used, we can use the VDDH pin of the µC (capture diagram_block)[/quote]
&lt;p&gt;I am not sure exactly what you mean when you say this - &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fsaadc.html"&gt;the nRF52850&amp;#39;s SAADC only has 8 channels in total&lt;/a&gt;, these channels may be connected to any of the available inputs as shown in the diagram you have linked, through setting the PSEL register for the particular Channel you intend to use.&lt;/p&gt;
[quote user=""]My concern is how I can set the reference voltage? Can I connect VDDH directly to the battery and do I need to add elements like resistors or capacitors?[/quote]
&lt;p&gt;Each channel&amp;#39;s reference is set as part of &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fsaadc.html&amp;amp;anchor=register.CH-0-7.CONFIG"&gt;the channels configuration&lt;/a&gt;, you may either use the internal 600 mV option, or the VDD/4. When using the SAADC to measure its own VDD, it is recommended to use the internal 600 mV reference - since using the VDD/4 reference will skew your measurements as the battery discharge.&lt;br /&gt;&lt;br /&gt;As for the need for external circuitry, do you then mean in regards to how you connect the battery to the device at all, or how you connect the SAADC to measure the VDDH/5 pin?&lt;br /&gt;The latter is done through setting PSEL of the selected channel to 0x0D. The former depends on your power supply configuration for your chip.&lt;br /&gt;In order to answer the former, I will need you to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html"&gt;elaborate on your power configuration&lt;/a&gt;.&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>