<?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>nrf52832 ble battery display</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79611/nrf52832-ble-battery-display</link><description>Hi, i&amp;#39;m developing BLE nrf52832. 
 Is there any way to display the remaining battery capacity on that window 10 when connecting to Bluetooth like that picture? 
 The remaining battery capacity was implemented through the SAADC function, but development</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Sep 2021 11:49:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79611/nrf52832-ble-battery-display" /><item><title>RE: nrf52832 ble battery display</title><link>https://devzone.nordicsemi.com/thread/329595?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 11:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c26e3e22-d87c-4beb-b59e-6d431ae45327</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any ready made example for you.&lt;/p&gt;
&lt;p&gt;Looking at implementation ble hids mouse I can find that the battery measurement is emulated, you can find that the battery level changes between 81% and 100% in main.c:&lt;/p&gt;
&lt;p&gt;sensor_simulator_init() - init the simulator&lt;/p&gt;
&lt;p&gt;battery_level_update() - update the battery values&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;ble_bas_battery_level_update() set the actual battery to&amp;nbsp;&amp;#39;battery_level&amp;#39; in &lt;span&gt;battery_level_update()&lt;/span&gt;. You need to replace &amp;#39;&lt;span&gt;battery_level&amp;#39; from an actual SAADC measurement.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, in your case you need to measure the battery level, and the battery level needs to be 0-100% depending on the state of the battery. I can find this case:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50141/how-to-measure-a-state-of-a-battery-by-using-saadc-example-with-nrf52832"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50141/how-to-measure-a-state-of-a-battery-by-using-saadc-example-with-nrf52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Where I can find that someone made an example that converted the measured SAADC value to a battery percentage level between 0-100%.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 ble battery display</title><link>https://devzone.nordicsemi.com/thread/329517?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 23:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea38d925-296b-4499-93f6-28473b56bd52</guid><dc:creator>sabsari</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,kenneth&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The development was focused on Bluetooth, so SAADC example code was attached to the HID keyboard example.Does the example of the HID keyboard contain a function that can measure battery levels? Can you show us an example?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 ble battery display</title><link>https://devzone.nordicsemi.com/thread/329407?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 11:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032e504d-0de9-4059-9395-453738669a5e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Last time I checked if you used for instance the HID mouse or HID keyboard example from the nRF5 SDK you can see that the battery level changes in Windows 10. Note however in that case the battery level is emulated for demonstration, so it doesn&amp;#39;t read the SAADC in specific, but you can see that the battery level changes.&amp;nbsp;Have you tried that example for comparison?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>