<?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 percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110562/battery-percentage-measurement-in-nrf-connect-sdk</link><description>Hi Nordic, 
 I am exploring on how to use an ADC module for measuring the battery percentage for my nrf52840. I am working on the nrf connect SDK. Can anyone suggest me a sample for reading the battery percentage in the zephyr SDK? 
 Thanks, 
 Pranat</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2024 12:19:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110562/battery-percentage-measurement-in-nrf-connect-sdk" /><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480681?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 12:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73f86a24-3e2a-4c47-9936-0f8375fbfe17</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;From the docs, I added this to the sample as an overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
   vbatt {
      compatible = &amp;quot;voltage-divider&amp;quot;;
      io-channels = &amp;lt;&amp;amp;adc 4&amp;gt;;
      output-ohms = &amp;lt;180000&amp;gt;;
      full-ohms = &amp;lt;(1500000 + 180000)&amp;gt;;
      power-gpios = &amp;lt;&amp;amp;gpio0 4 0&amp;gt;;
   };
   zephyr,user {
      io-channels = &amp;lt;&amp;amp;adc 4&amp;gt;;
   };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Our nRF52840DK does not have a voltage divider to measure the power, so you will have to add this yourself and configure the overlay accordingly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480656?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 11:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fb13e19-ffef-4379-b4d4-acfd5bbdd33e</guid><dc:creator>Pranathi CH</dc:creator><description>&lt;p&gt;Yeah I have added the vabtt node in by dts file and still getting errors and how &amp;amp; where do I specify the A0 pin I could not find about it in the link?&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/110562/battery-percentage-measurement-in-nrf-connect-sdk/480579"] &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/boards/nrf/battery/README.html"&gt;Battery Voltage Measurement sample documentation&lt;/a&gt;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480579?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c407592-4961-4b90-b801-c1db5255a0d4</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Have you added a vbatt node with voltage-divider as described in the sample documentation, and have you specified the A0 pin there? See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/boards/nrf/battery/README.html"&gt;Battery Voltage Measurement sample documentation&lt;/a&gt;&amp;nbsp;for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480564?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 05:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77d27cd-abb2-40e8-a241-78979284fabf</guid><dc:creator>Pranathi CH</dc:creator><description>&lt;p&gt;I changed the build configuration for nrf52833 as the compatible build for it is&amp;nbsp;&lt;span&gt;partical_xenon and thingy52_nrf52832, I did not get any errors while building the battery sample for these two but I faced issues when I build the project with nrf52833dk_nrf52833 build configuration.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480483?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 13:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c3677c-5911-4a80-87cd-349a6b004759</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Which changes did you make to the sample?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480475?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 13:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0257610-0d80-425c-a6bb-bef3f09f34f9</guid><dc:creator>Pranathi CH</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I did change the build configuration for the battery sample with nrf52833dk_nrf52833 and I got the build errors as such:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;#39;__device_dts_ord_DT_N_S_zephyr_user_P_io_channels_IDX_0_PH_ORD&amp;#39; undeclared here (not in a function)&lt;/li&gt;
&lt;li&gt;&amp;#39;DT_N_S_zephyr_user_P_io_channels_IDX_0_VAL_input&amp;#39; undeclared here (not in a function)&lt;/li&gt;
&lt;li&gt;identifier &amp;quot;DT_N_S_zephyr_user_P_io_channels_IDX_0_VAL_input&amp;quot; is undefined&lt;/li&gt;
&lt;li&gt;identifier &amp;quot;__device_dts_ord_DT_N_S_zephyr_user_P_io_channels_IDX_0_PH_ORD&amp;quot; is undefined&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pranathi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480445?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 12:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7adbb7-4b83-4aae-8b8e-d65924300853</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Board compabilites for samples indicate what samples are tested for, not what they will work for.&lt;/p&gt;
&lt;p&gt;Likely, you will have to reconfigure the sample for it to work with the boards you need it to work for.&lt;/p&gt;
&lt;p&gt;&lt;span style="margin:0;padding:0;text-align:left;"&gt;I recommend the &lt;a href="https://academy.nordicsemi.com/" rel="noopener noreferrer" target="_blank"&gt;Nordic Developer Academy&lt;/a&gt; as an excellent place to start learning the nRF Connect SDK. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="margin:0;padding:0;text-align:left;"&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480432?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:649c9d86-cd3f-45c5-954d-3e69da1a5cef</guid><dc:creator>Pranathi CH</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I can see the board compatibilities for the battery sample is only for partical_xenon and thingy52_nrf52832 but I only have nrf 52833 dk with me right now, So I tried to build with that configurations and faced errors..&lt;/p&gt;
&lt;p&gt;Can you suggest me any sample that could be built for ntf52833 dk?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Pranathi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery percentage measurement in nrf connect SDK</title><link>https://devzone.nordicsemi.com/thread/480414?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 10:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce0b8a2-db55-475b-a16c-15edd408b671</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/battery/README.html"&gt;Battery Voltage Measurement sample&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>