<?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>SAADC example unexpected results</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39245/saadc-example-unexpected-results</link><description>I&amp;#39;m trying to use the SDK 15.0 saadc example with a potentiometer on AIN0, and I&amp;#39;m getting weird values. Left pot pin connected to VDD, right pot pin to GND, center pin to P0.03(A0). The output is reading anywhere from 42-45 if I don&amp;#39;t touch the potentiometer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Oct 2018 14:46:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39245/saadc-example-unexpected-results" /><item><title>RE: SAADC example unexpected results</title><link>https://devzone.nordicsemi.com/thread/152089?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 14:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e607e9-2deb-4bc2-b9df-0fefe3959914</guid><dc:creator>criznach</dc:creator><description>&lt;p&gt;That documents what the arduino-compatible pinouts are, but doesn&amp;#39;t disambiguate how they are labelled in your APIs.&amp;nbsp; I would argue that the printed board is in the developer&amp;#39;s hands and in front of their eyes, so like myself, that appears to be the truth.&amp;nbsp; I had to search for quite a while to see what&amp;#39;s really happening.&amp;nbsp; It&amp;#39;s not&amp;nbsp;explained in the&amp;nbsp;example code where I looked first&amp;nbsp;being new to the platform.&amp;nbsp; The example documentation mentions GPIO pin 2, which I was unsure about because it doesn&amp;#39;t match the p0.02 notation used everywhere else.&amp;nbsp; Thanks for looking into it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC example unexpected results</title><link>https://devzone.nordicsemi.com/thread/152086?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 14:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df5c7869-1778-44de-8e37-8597da1a443c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;It is sort of documented &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_conn_interf.html?cp=2_1_4_5_3"&gt;here&lt;/a&gt;. I agree with you though, and I have already discussed it with the kit designers once before, but their reasoning is that A0 refers to the pinout of the standard Arduino form factor:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b5e61b9dc2ae4da7b2e424b54dfabbfa/pastedimage1539008596416v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC example unexpected results</title><link>https://devzone.nordicsemi.com/thread/152077?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 13:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1546b66-b359-4805-9d93-5616755a6057</guid><dc:creator>criznach</dc:creator><description>&lt;p&gt;#2 is exactly what happened.&amp;nbsp; Can the docs be updated&amp;nbsp;to explain&amp;nbsp;this?&amp;nbsp; As someone who&amp;#39;s new to NRF, the A0 marking on the PCB was much more prominent and convincing than the &amp;quot;Pin assignments&amp;quot; document that I ultimately found through another DevZone post, after&amp;nbsp;a few hours of head scratching.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC example unexpected results</title><link>https://devzone.nordicsemi.com/thread/151973?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 08:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27176b5b-def5-4b23-9db8-68d49ae2052b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I assume you are using the same pot meter in all the tests? So no chance of a broken pot meter?&lt;/li&gt;
&lt;li&gt;Have you double and triple checked that you are using the correct pins? AIN0 is pin P0.02, but I have done the mistake myself and assumed AIN0 is on P0.03 since it is marked &amp;#39;A0&amp;#39; on the nRF52 DK.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Can you upload your code so I can test it?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>