<?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>BLE battery update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80109/ble-battery-update</link><description>HI, 
 I&amp;#39;m developing it using NRF52832. 
 It is intended to update the remaining battery capacity through the battery_level_update() function by receiving the battery measurement value from saadc. 
 The value obtained through saadc was handed over to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Sep 2021 07:40:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80109/ble-battery-update" /><item><title>RE: BLE battery update</title><link>https://devzone.nordicsemi.com/thread/331621?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 07:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fcc0b8f-b561-42f7-a046-1eda230668d8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I suspect that there is just a logical error with your formula for converting the SAADC&amp;#39;s digital output to voltage.&lt;br /&gt;&lt;br /&gt;Could you show me what your log looks like when you see this behavior?&lt;br /&gt;How did you verify that the battery&amp;#39;s remaining charge was actually 54%?&lt;br /&gt;The formula from the SAADC documentation for converting from digital output to analogue value uses millivolts - it seems your are multiplying it by 1000 an additional time, before passing it to the&amp;nbsp;battery_level_percent function that seems to use millivolts as well.&lt;br /&gt;Furthermore, which battery are you using, and have you taken the&amp;nbsp;battery_level_percent function from the SAADC&amp;#39;s example (which is made specifically for CR2032 coin cell batteries), or did you create this yourself for the discharge curve of the specific battery you are using?&lt;br /&gt;&lt;br /&gt;Additionally, to increase stability and/or accuracy of the battery measurement you could use oversampling to reduce the impact of noise.&lt;br /&gt;You can also have the SAADC measure directly on the VDD bus by providing NRF_SAADC_INPUT_VDD to the channel configuration macro.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&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>