<?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/samples/drives/adc/ sample and use of other input channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110301/zephyr-samples-drives-adc-sample-and-use-of-other-input-channel</link><description>I Dried to start on base of ADC sample and using another pin as ADC pin 
 i fond a tree example 
 
 with 
 
 zephyr,input-positive = &amp;lt; NRF_ADC_AIN0 &amp;gt;; /* P0.04 */ 
 
 Using ain0 it worked. 
 Unfortunately id didnt work on ain2 
 i found out that 
 
 zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Apr 2024 09:00:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110301/zephyr-samples-drives-adc-sample-and-use-of-other-input-channel" /><item><title>RE: zephyr/samples/drives/adc/ sample and use of other input channel</title><link>https://devzone.nordicsemi.com/thread/479367?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 09:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67344975-1d16-4d1e-9c1b-771d86458c74</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Glad to hear that you liked the part from our course.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t normally go in and edit older cases if it is not opened again. However i would not recommend following that setup as it does not align with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/adc.html"&gt;ADC API reference&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr/samples/drives/adc/ sample and use of other input channel</title><link>https://devzone.nordicsemi.com/thread/479219?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 12:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0c6dd2-b680-4777-8791-24052ee558df</guid><dc:creator>osgilator</dc:creator><description>&lt;p&gt;could be the definition&lt;/p&gt;
&lt;p&gt;zephyr,input-positive = &amp;lt;NRF_ADC_AIN1&amp;gt;; /* P0.05 */&lt;/p&gt;
&lt;p&gt;in some cases also correct ? May it would be good do comment on &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99939/attempting-to-get-adc-to-work"&gt;Attempting to get ADC to work&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;in not. I found this first when i was searcheing for &amp;quot;&lt;code class="language-c-like" lang="C-like"&gt;ADC nRF5340DK&amp;quot; &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;At the nRF Connect SDK Intermediate course the example shows&lt;/p&gt;
&lt;pre class="wp-block-code language-c-like copy-the-code-target"&gt;&lt;code class="language-c-like" lang="C-like"&gt;zephyr,input-positive = &amp;lt;NRF_SAADC_AIN0&amp;gt;; /* P0.02 for nRF52xx, P0.04 for nRF5340 */&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it is good explained, thank you for that hint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr/samples/drives/adc/ sample and use of other input channel</title><link>https://devzone.nordicsemi.com/thread/479183?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 11:13:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342cac20-76b5-4d5e-bb32-76177b026795</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My recommendation would be to follow the setup you for example can find in the nRF Connect SDK Intermediate course which you can find &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-6-analog-to-digital-converter-adc/topic/exercise-1-interfacing-with-adc-using-zephyr-api/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>