<?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>If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6124/if-i-want-to-read-the-battery-level-can-i-just-use-adc</link><description>I would like to send the current status of the battery as a beacon. 
 ADC and a few resistors and what do I need? 
 I am currently using nrf51822. 
 I know nrf51822 to support the 10bit ADC. 
 Just supply the + and - connections on the battery level</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 21 Mar 2015 19:27:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6124/if-i-want-to-read-the-battery-level-can-i-just-use-adc" /><item><title>RE: If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/thread/21445?ContentTypeID=1</link><pubDate>Sat, 21 Mar 2015 19:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d702fb-a639-4e8a-bd56-0020b52f4814</guid><dc:creator>GunMin</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;Hi, I saw ble_app_beacon example and ble_app_hrs example.&lt;/p&gt;
&lt;p&gt;I both know the source of the beacon role.&lt;/p&gt;
&lt;p&gt;In my opinion ble_app_hrs, the service was used ble_app_beacon has not been used by the service.&lt;/p&gt;
&lt;p&gt;My idea is that correct?&lt;/p&gt;
&lt;p&gt;And it is curious.&lt;/p&gt;
&lt;p&gt;ble_app_hrs provides battery service.&lt;/p&gt;
&lt;p&gt;However, there is no part that reads the ADC value.&lt;/p&gt;
&lt;p&gt;When I saw the other posts, they spoke him/her using the ADC.&lt;/p&gt;
&lt;p&gt;But I know that if the beacon, depending on the value of the UUID, Major and Minor device segment.&lt;/p&gt;
&lt;p&gt;I will continue to make a device that broadcasts the data as a beacon. (Remaining battery level, Rssi, Txpower) and  If I want to make a search with my smartphone to be immediately read the data.&lt;/p&gt;
&lt;p&gt;Can you give me an example of recommendation?&lt;/p&gt;
&lt;p&gt;And I&amp;#39;m sorry,Can you give advice about my development?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/thread/21444?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 15:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83df5ebe-b0e3-443b-9b5f-5bb4f83b4e44</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can find the most recent SDKs &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/"&gt;here&lt;/a&gt;&lt;br /&gt;
You can find many ADC examples &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples"&gt;here&lt;/a&gt;, with and without softdevice.&lt;br /&gt;
There is also an ADC example in the latest nRF51 SDK 8.0.0&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 23.3.2015&lt;/strong&gt;
As I understand your comments, you want to continue to advertise beacons, but want to include battery level information in your advertising packet, am I correct?&lt;/p&gt;
&lt;p&gt;I am a little confused if you intend to make your device iBeacon compatible, or you just wish to broadcast proprietary data. To make the Beacon kit compliant with iBeacon, look at &lt;a href="https://devzone.nordicsemi.com/blogs/474/nordic-beacons-and-ios/"&gt;this blog&lt;/a&gt;. If you include battery level information in your beacon packet, it can not be compatible with iBeacon.&lt;/p&gt;
&lt;p&gt;A beacon is a non-connectable advertising packet with a 31 byte payload. The payload of a BLE advertising packet is maximum 31, so there is no room for any additional information in the packet. To include the battery level information, I suspect you need to do one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Replace some of the information in the advertising packet with the battery level information&lt;/li&gt;
&lt;li&gt;Include the battery level information in a scan response packet. The central device would need to perform a scan request to receive the battery information data&lt;/li&gt;
&lt;li&gt;Advertise iBeacon data, stop advertising, reconfigure advertising with custom data, start advertising custom data, stop advertising, reconfigure advertising with iBeacon data, advertise iBeacon data&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/thread/21443?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 11:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1731304d-4d1d-4eee-89b3-880c05bbc061</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if SDK7 does provide ADC driver, but SDK8 which i am using right now does for sure.&lt;/p&gt;
&lt;p&gt;What You can do is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;change SDK&lt;/li&gt;
&lt;li&gt;write ADC driver by yourself (not a big deal, with nrf51 reference manual it is quite easy)&lt;/li&gt;
&lt;li&gt;just download newer SDK and copy existing ADC driver implementation and use it in Your project&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/thread/21442?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2015 16:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4157393-f7c9-4dec-a957-d951b42251e7</guid><dc:creator>GunMin</dc:creator><description>&lt;p&gt;Thank you.
I am using the nrf51_sdk_v6_1_0_b2ec2e6.
Do I need to use a higher version than the SDK?
um .. Are you saying newest SDK is higher than I use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I want to read the battery level, can I just use ADC?</title><link>https://devzone.nordicsemi.com/thread/21441?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2015 13:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f793d014-8f8d-412e-9027-4b5382204dcc</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;If Your battery is directly connected to nrf51822 as power source, You can just set CONFIG.INPSEL register to set VDD (with 1/3 or 2/3 voltage division) as ADC source. If You are using newest SDK, You can find ADC driver there which could be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>