<?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>use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34955/use-saadc-ain2-on-the-custom-board-read-value-is-differ-from-nrf52-dk</link><description>Hi, 
 We use mdbt42v(nrf52832) to design a custom board and we encounter a strange issue. 
 We use ain2(P0.04) to measure a Variable Resistor value, the code working fine in the nrf52 DK, but value strange always 4x~5x. 
 the custom circult is in below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jul 2020 07:35:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34955/use-saadc-ain2-on-the-custom-board-read-value-is-differ-from-nrf52-dk" /><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/261120?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 07:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7affd917-dcfe-4830-837e-364098912b40</guid><dc:creator>nrfcho</dc:creator><description>&lt;p&gt;I have exactly same problem with TTN.&lt;/p&gt;
&lt;p&gt;So did you solve this problem with shorting other ain pins to be ground?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/147874?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 05:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bac3ddc-4764-4353-93a5-97aa957d0171</guid><dc:creator>theslawek</dc:creator><description>&lt;p&gt;Did you find a solution? When I short&amp;nbsp;AIN0 and AIN1 to Vss (GND) I see similar values like your screenshot (36-39) AIN2-4 seem to act normally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/134272?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 07:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5949121-9543-476c-a3c3-eb01a9ba41fd</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;I&amp;nbsp;&lt;span&gt;expect the value that i got from saadc&amp;#39;s&lt;/span&gt;&lt;span lang="en"&gt;&amp;nbsp;change trend looks normal,&amp;nbsp;&lt;/span&gt;&lt;span&gt;can be changed when i change the&amp;nbsp;potentiometer, not always the values in the picture.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EX:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;input&amp;nbsp; &amp;nbsp; saadc value&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1v&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1024&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2V&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2048&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3V&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3072&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/134266?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 07:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea890d5-c36c-464d-996e-576df55c993d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Are these still not the values you expect? If so, what values do you expect?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/134253?ContentTypeID=1</link><pubDate>Fri, 01 Jun 2018 01:27:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9c216f-0a70-42d1-9b2c-42c1b5c1713c</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Thanks for reply, will review the data sheet again,maybe try another fet, which i want to close the fet when i not measure the&amp;nbsp;&lt;span&gt;potentiometer voltage, trying to save battery consume.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for now i can control the fet open when set P0.25 high and close when clear.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tried measure voltage without the MOSFET and connect VDD and GND to the potentiometer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ADC input Range 0~1.6(with fet)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0~VDD(without fet)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I always gets values like below pitcure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1527816447010v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/134246?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 17:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2a7a2e-7e68-4717-8c85-dacbb9884139</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Incorrect use of the 2N7002; have a close look at the data sheet and then try a different type of FET as the 2N7002 will not do what you expect in this configuration. I would also consider not using a FET if the nRF52 uses VDD for a supply; instead remove the FET and connect P0.25 to the top of R6 which is what Martin is suggesting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use saadc AIN2 on the custom board, read value is differ from nrf52 dk.</title><link>https://devzone.nordicsemi.com/thread/134170?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 12:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae5ccbe-cdeb-4ed6-8857-5ea820349bf6</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried without the MOSFET just to rule out any errors on that end?&lt;/p&gt;
&lt;p&gt;Is the error always exactly the same or does it vary between 4 and 5x?&lt;/p&gt;
&lt;p&gt;What values do you get when you set the potentiometer to minimum and maximum?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>