<?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>How to measure the battery level using nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111344/how-to-measure-the-battery-level-using-nrf52840</link><description>I am using NCS V2.6.0 and using zephyr there is no examples to measure battery level using saadc we can measure the battery level right? I used LEDs to indicate battery level. I connected sensor to nrf52840 and I am sending sensor values to bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2024 08:05:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111344/how-to-measure-the-battery-level-using-nrf52840" /><item><title>RE: How to measure the battery level using nrf52840</title><link>https://devzone.nordicsemi.com/thread/484993?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 08:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b809927-49ea-438b-8fe7-93576dc7b20e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a link to a sample in the Zephyr repository showcasing how to use the ADC infrastructure to measure voltage of a devices power supply:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/boards/nrf/battery/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/boards/nrf/battery/README.html&lt;/a&gt;. You should be able to use SAADC instead of ADC by making the changes below:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84381/saadc-vs-adc"&gt;SAADC vs ADC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can send Battery levels over BLE using the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth_services/services/bas_client.html"&gt;GATT Battery Service Client&lt;/a&gt;. See&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/&lt;/a&gt;&amp;nbsp;for how to set up services and how to exchange data in BLE&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>