<?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>Zephyr &amp;quot;battery&amp;quot; example using VDD as the ADC input</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66345/zephyr-battery-example-using-vdd-as-the-adc-input</link><description>I am trying to use the battery example in &amp;quot; /ncs/zephyr/samples/boards/nrf/battery&amp;quot; to measure my 3V coin cell via VDD. I am using P0.14 to enable a set load on VDD before the battery measurement. 
 In the past I have used NRF_SAADC_INPUT_VDD to successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Sep 2020 20:11:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66345/zephyr-battery-example-using-vdd-as-the-adc-input" /><item><title>RE: Zephyr "battery" example using VDD as the ADC input</title><link>https://devzone.nordicsemi.com/thread/271600?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 20:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff284a4a-6d11-4ca5-8834-3937b539c6da</guid><dc:creator>matt_C</dc:creator><description>&lt;p&gt;After looking around for a bit longer I found from&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/boards/nrf/battery"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/boards/nrf/battery&lt;/a&gt;&amp;nbsp;that if the device tree has a &amp;quot;vbatt&amp;quot; node then the battery voltage is measured with the divider defined there. Otherwise the internal source for VDD is assumed to be directly connected to the battery and as such is used for the battery measurements.&lt;/p&gt;
&lt;p&gt;So, simply don&amp;#39;t include a &amp;quot;vbatt&amp;quot; node if you want to use VDD to measure the battery.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr "battery" example using VDD as the ADC input</title><link>https://devzone.nordicsemi.com/thread/271574?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 15:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a9b893-eedc-479b-bd38-8b5855e5b753</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Matthew,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]&lt;span&gt;What do I need to put for the &amp;quot;io_channel&amp;quot; in the dts file for the following v&lt;/span&gt;batt?[/quote]
&lt;p&gt;I think the value&amp;nbsp;is supposed to be&amp;nbsp;9 not 4.&lt;br /&gt;&lt;br /&gt;I guess you are using the nrf52840dk&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>