<?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 Battery Voltage Measurement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85965/zephyr-battery-voltage-measurement</link><description>Hello, guys! 
 My goal is to monitor battery voltage by using a voltage divider and ADC peripheral of nRF51822 SoC. I find that this example perfectly fits my needs. Consequently, I included the device tree node that describes the voltage divider for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2022 13:09:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85965/zephyr-battery-voltage-measurement" /><item><title>RE: Zephyr Battery Voltage Measurement</title><link>https://devzone.nordicsemi.com/thread/359378?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 13:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98dfb31-97df-4ab6-a5f1-de0a90ed61f8</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Bojan,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t generally support the Zephyr for nRF51 series. But you could try building the adc samples that we have in Zephyr for the nRF51, or at least it works well for the nRF51DK_nRF51422.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647954580334v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Battery Voltage Measurement</title><link>https://devzone.nordicsemi.com/thread/359330?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 10:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28aad4fa-3fff-4ee4-ada2-616e0ad73c51</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/priyankakesav"&gt;Priyanka&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Where can I find an appropriate example of reading ADC voltage with nRF51 SoCs in the Zephyr environment?&amp;nbsp; I started looking at the Analog-to-Digital Converter (ADC) sample &lt;a href="https://docs.zephyrproject.org/2.6.0/samples/drivers/adc/README.html" rel="noopener noreferrer" target="_blank"&gt;from here&lt;/a&gt; but the Note says that:&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ccffcc;"&gt;The sample does not work on Nordic platforms where there is a distinction between channel and analog input that requires additional configuration. See &lt;a style="background-color:#ccffcc;" href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/battery" rel="noopener noreferrer" target="_blank"&gt;samples/boards/nrf/battery&lt;/a&gt; for an example of using the ADC infrastructure on Nordic hardware. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;However, &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/battery" rel="noopener noreferrer" target="_blank"&gt;samples/boards/nrf/battery&lt;/a&gt; is using SAADC peripheral which is not supported in nRF51 SoCs. Can you help me find the appropriate way of using the ADC peripheral of nRF51 SoCs in the Zephyr environment?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Battery Voltage Measurement</title><link>https://devzone.nordicsemi.com/thread/359235?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 20:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b113290-918e-47ad-87ae-8e06f9575cb3</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/priyankakesav"&gt;Priyanka&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;I did not know that nRF51 does not support SAADC.&lt;/p&gt;
&lt;p&gt;Would it be possible to adapt the existing battery voltage measurement approach for nRF51 (basically just to avoid using SAADC)?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Battery Voltage Measurement</title><link>https://devzone.nordicsemi.com/thread/358871?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 13:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebfae908-c751-4d0a-b167-02aaae65fe03</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Bojan,&lt;/p&gt;
&lt;p&gt;This could be because you are trying with the nRF51 and this does not support the SAADC and as you can see&lt;/p&gt;
&lt;p&gt;the code is written for the SAADC peripheral. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>