<?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>nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9011/nrf51822-and-battery-low-level-detection</link><description>Hi, 
 I&amp;#39;m making my own prototype board using the nRF51822. this board is powered by a rechargeable battery lir2450 (3.6V): www.powerstream.com/.../Lir2450.pdf 
 i want to know how can i make the nRF51822 chip know when the battery is low.
i want something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Apr 2018 07:46:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9011/nrf51822-and-battery-low-level-detection" /><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/129276?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2018 07:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff201c23-2c63-4a81-bb24-1090fb92b531</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;At least that is the default setting at system startup:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e25503d318dc44edb69f2d0ec7ca958b/pastedimage1524469546019v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/129240?ContentTypeID=1</link><pubDate>Sun, 22 Apr 2018 17:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b1e400-57a9-4592-94d4-ac62a4a2083b</guid><dc:creator>Alisha</dc:creator><description>&lt;p&gt;It seems I found that, the default NRF_ADC_CONFIG_DEFAULT is using 1/3 scale. am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/129239?ContentTypeID=1</link><pubDate>Sun, 22 Apr 2018 17:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f602330-0ca2-4305-8b99-238406f75e88</guid><dc:creator>Alisha</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for your sample code, but unfortunately I couldn&amp;#39;t find where you set prescaler value to 1/3.&lt;/p&gt;
&lt;p&gt;Would you please explain where the prescaler value has been set?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33179?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 23:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cc7a593-1fb4-47cf-9e42-9375b7d2d641</guid><dc:creator>Carlos Villavicencio</dc:creator><description>&lt;p&gt;Thanks! Have you ported this sample code to SDK 11?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33183?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 16:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aeeec38-b173-4e5b-8526-6eae183c1214</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@Tizana   The tps62736 DCDC converter chip that you point to seems to be very suitable for nRF51 and lithium battery. You get the best efficiency if you program the output voltage of the DCDC converter to be close to the minimum nRF51 supply voltage of 1.8V. 1.9V would be a good output voltage for the DCDC converter to have a safe margin from the 1.8V minimum.&lt;/p&gt;
&lt;p&gt;Another thing. As Alex points out, you should have resistor values in the voltage divider optimally below 1kohm to prevent any ADC output error. A good method however to prevent error with higher resisitor values is to connect a capacitor between the ADC input and ground.&lt;/p&gt;
&lt;p&gt;Third thing. The resistor values in your voltage divider are very high. This might be adequate in your situation but your ADC input signal will be very vulnerable to any external noise. &lt;a href="https://devzone.nordicsemi.com/blogs/30/measuring-lithium-battery-voltage-with-voltage-div/"&gt;This blog post&lt;/a&gt; suggests perhaps more suitable voltage divider setup for measuring lithium battery voltage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33182?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 14:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ca257c-1813-4576-b39f-1fd45d0d35e3</guid><dc:creator>Tizana</dc:creator><description>&lt;p&gt;thx alex,
i find a good chip for low power energy the tps62736 : &lt;a href="http://www.ti.com/lit/ds/slvsbo4c/slvsbo4c.pdf"&gt;www.ti.com/.../slvsbo4c.pdf&lt;/a&gt;
and it cost only 2.8$. and it can monitor the low voltage level of the battery, i&amp;#39;ll keep you in touch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33181?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 07:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f1a6009-bb7d-4bd8-a620-52c7a82c3482</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Look at &lt;a href="http://cds.linear.com/docs/en/datasheet/338813fa.pdf"&gt;this chip&lt;/a&gt;. Quiescent current and efficiency at your current range is better. I couldn&amp;#39;t find better converter for myself, will be happy to hear about more efficient chip. As for divider, you need to remember that input impedance of ADC is not that high and the Reference manual states that the output impedance of voltage source must be 1kOhm or lower. Check page 166. If you don&amp;#39;t need to report state of charge of the battery and need only to catch event when battery voltage dropped below let&amp;#39;s say 2.8V then I would use voltage monitor chip. If you need to know battery state at any time then &lt;a href="http://www.ti.com/lsds/ti/power-management/battery-fuel-gauge-products.page"&gt;Gas Gauge chip&lt;/a&gt; can be a solution but it is more expensive solution (need to program it as well).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33180?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 01:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb9557b-bdfe-43d1-b045-314c3f101c80</guid><dc:creator>Tizana</dc:creator><description>&lt;p&gt;Thanks for the answer Alex and Martin, i appreciate that.&lt;/p&gt;
&lt;p&gt;here&amp;#39;s the schema that i made for the circuit:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6837.1.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;I/ as i&amp;#39;m using a rechargeable coin cell battery so the voltage varies from 4.2v when its fully charged to 2.7v when its fully discharged. we note that the battery voltage when its fully charged is above the maximum voltage supported by the nRF51822.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1307.3.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;So the only solution is to drop the voltage to 2.5V and to do that there are 2 slolution :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;using a linear regulator. this is not a good idea because the efficiency is so bad. (4.2v-2.5v) * I = power dissipated  in heat.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;using a DC-DC converter. i find a good circuit the LM3671MF-2.5 , here&amp;#39;s the datasheet : &lt;a href="http://www.ti.com/lit/ds/symlink/lm3671.pdf"&gt;www.ti.com/.../lm3671.pdf&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;the input voltage range is between 2.7 V to 5.5 V which is OK for the battery and the output voltage is 2.5V which is OK for all circuit (nRF51822, accelerometer, temp.sensor).
the DC-DC converters are know by their good efficiency. but when i took a look at the &amp;quot;Efficiency vs. Output Current&amp;quot; curves in page 9 of the datasheet i notice that the Efficiency are bad for a low current.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8507.2.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;For example for Vin = 3.6v and current = 0.1mA the Efficiency = 74%. and as known the nRF51822 consume less current than 0.1mA. so the Efficiency will be lower than  74% (nRF51822 consume 2.6µA @ 3V ON mode, all blocks in idle mode)
this is not good for the battery mainly when my objectif is to maintain the battery charge for a long time. this is a waste of energy.
do you have another solution to drop the voltage with a good Efficiency and with a low current consumption ??&lt;/p&gt;
&lt;p&gt;II/ for the battery low detection i&amp;#39;m gonna use an external voltage divider to measure the battery voltage because the maximum battery voltage can reach 4.2v which is above the ADC threshold even with using a 1/3 prescaler.&lt;/p&gt;
&lt;p&gt;so the voltage divider consist of two resistor with high value (470M Ohm) to minimize at maximum the current consumed by the divider circuit. i (max) = 4.2v/ (470 M * 2 )   = 4.4 nA which is insignificant comparing to the battery capacity 120mAh .
this circuit will divide the voltage to two. for example for 4.2V the divider will drop the voltage to 2.1V then i will use an internal prescaler of 1/2 to drop the voltage to 1.05V&lt;/p&gt;
&lt;p&gt;is this external circuit OK or there are a better other solution ?&lt;/p&gt;
&lt;p&gt;Thanks for help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33178?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 11:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e246b470-001b-4f9c-a34b-c83b32c4db28</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;When battery is fully charged it will have 4.2V. Look at the datasheet at the end of page 4 to understand how voltage linked to state of charge. Also you will need to have power supply to reduce 4.2V to 3.6V or less to supply to nRF. It will affect the efficiency of the system.
Upd: You probably think that while charging and applying 4.2V to the battery you can disconnect nRF from high voltage and when charger unplugged battery will have nominal voltage 3.6V. It is not correct. Battery will have 4.2V after charger unplugged&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33177?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 11:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a151959c-0fd7-4bdc-a243-21fbe92f83a5</guid><dc:creator>Tizana</dc:creator><description>&lt;p&gt;THX for the answer,&lt;/p&gt;
&lt;p&gt;actually i&amp;#39;m gonna choose this one :&lt;a href="http://www.farnell.com/datasheets/1475807.pdf"&gt;www.farnell.com/.../1475807.pdf&lt;/a&gt;
the nominal voltage 3.6V and charging voltage 4.2. this mean the voltage not exceed 3.6v??&lt;/p&gt;
&lt;p&gt;i&amp;#39;ll seprate the charging battery circuit and the supply voltage for the circuit using a switch.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m worriying if the coin cell votage will exceed a little bit the 3.6V like 3.62V what gonna happing then ??&lt;/p&gt;
&lt;p&gt;can i add an external circuit to protect the nRF51822 ?? and this is gonna affect the efficiency of the power meaning the power will discharge so fast using the protection external circuit&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33176?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 09:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86c0fff-0b8c-4f37-9fd7-a47c2a1fcdb2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;You are right, of course. I didn&amp;#39;t notice the datasheet and assumed 3.6V would be the maximum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33175?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 09:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5744b8e-51c7-46d1-bea3-dfc8ab8befa8</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;His battery is Li-ion rechargeable and when fully charged provides 4.2V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33174?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 09:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26192680-f865-47f6-8e2a-feca28f98246</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can use the nRF51&amp;#39;s 1.2V internal voltage reference, Vbg. This voltage reference will not change when the battery is drained. Then you can connect Vdd directly to one of the analog inputs and use 1/3 prescaling. The prescaling will then divide your input voltage at 3.6V down to a maximum of 1.2V which is within the range of Vbg. Refer to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51.v1.0.0/pdflinks/ref_manual.html?cp=2_2"&gt;Reference manual v3.0 Chapter 31&lt;/a&gt; for details about voltage references and prescaling.&lt;/p&gt;
&lt;p&gt;I have attached an example. It is based on the ble_app_hrs example in SDK 9. I have configured the ADC to use Vgb as reference voltage, measure voltage at AIN2 (P0.01) and to use 1/3 prescaler. You don&amp;#39;t need any external components, just connect Vdd directly to AIN2. A timer updates the battery voltage value every second. To use the example extract the .zip-file to &lt;em&gt;&amp;quot;your_SDK_9.0.0_folder\examples\ble_peripheral&amp;quot;&lt;/em&gt;. Search for &amp;quot;//NORDIC&amp;quot; in main.c to find the changes I have made and further comments. Note that the ADC is sampling continuously and I have not cleaned up the code after making the changes to the battery service. So you need to do some cleanup on your own to optimize the example.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adc_2D00_battery_2D00_measurement.zip"&gt;Example: adc-battery-measurement&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keep in mind that 3.6V Vdd is at the edge of what the nRF51 can handle. Refer to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51.v1.0.0/pdflinks/51822_ps.html?cp=2_3_0"&gt;Product specification v3.1, Chapter 7&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 and battery low level detection</title><link>https://devzone.nordicsemi.com/thread/33173?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2015 09:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4c8d476-664c-4160-8747-35b27e44be42</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;First of all you need to remember that maximum voltage on your battery will be 4.2V.
As for measuring it, it is fully described in &lt;a href="http://www.nordicsemi.com/eng/nordic/download_resource/20337/12/36994591"&gt;nRF51 Series Reference Manual&lt;/a&gt; page 165. You most likely need to use external voltage divider and not to worry about ADC reference voltage because it is lower(1.2V) than minimum battery voltage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>