<?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>Battery service with 12v Lithium ion battery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20697/battery-service-with-12v-lithium-ion-battery</link><description>Hello, 
 I am new to nrf51822 BLE. I am using MDBT40 (nrf51822 series). Complete project is powered by 12V, 2500 Mah lithium ion Battery pack. I want to monitor battery level using battery service provided in nordic examples.
Please let me whether I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Mar 2017 13:41:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20697/battery-service-with-12v-lithium-ion-battery" /><item><title>RE: Battery service with 12v Lithium ion battery</title><link>https://devzone.nordicsemi.com/thread/80733?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2017 13:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621d425b-07c9-4100-9360-fbfabb12884c</guid><dc:creator>MC</dc:creator><description>&lt;p&gt;You are correct, as long as you were going to use a resistor divider for &amp;quot;stepping down&amp;quot; the voltage from 12V to 3,3V. You will have to interpolate this low voltage to state of charge for your lithium battery. Then, you have to just write this state of charge to battery service via:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_bas_battery_level_update (ble_bas_t * p_bas, uint8_t battery_level)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This should be everything you need for your use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>