<?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>The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69677/the-adc-value-of-the-potentiometer-seems-to-be-strange</link><description>Hello 
 I&amp;#39;m going to use a potentiometer to control the pwm. I am using a 10K potentiometer and have used a saadc example. 
 I printed out the value of adc through this example, but the value seems to be printing out weirdly. 
 
 This is the result of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Dec 2020 07:49:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69677/the-adc-value-of-the-potentiometer-seems-to-be-strange" /><item><title>RE: The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/thread/286224?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 07:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de1517a-7d96-4233-b9f5-5791e370d6e2</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;The reference of the ADC is not the same as what you connect the potmeter to.The input voltage can&amp;#39;t be higher than the reference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__saadc__hal.html#gadda2525fbe5db392d1c1980c4a1286a0"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__saadc__hal.html#gadda2525fbe5db392d1c1980c4a1286a0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__saadc__hal.html#gad540c22a2e06a7828a5ce6c71bc8a5d4"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__saadc__hal.html#gad540c22a2e06a7828a5ce6c71bc8a5d4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you set VDD/4 as a reference and the gain to 1/4, the range is GND to VDD.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/thread/286193?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 01:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b410ad0-66eb-4db1-8eef-6f2fa52b838d</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I connected the + of the potentiometer to the VDD.&amp;nbsp; And where can I find and change the settings for the gain?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/thread/285987?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 09:09:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a279ad8-c72d-4a7f-9805-9d844a5fad86</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;Make sure you set VDD as a reference and the gain to 1/4 for the full GND to VDD range.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#concept_kxz_4pp_qr"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#concept_kxz_4pp_qr&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/thread/285941?ContentTypeID=1</link><pubDate>Sun, 20 Dec 2020 05:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0efaf1f-52da-4a11-a1e3-20e363284d22</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I connected the left pin of this to Vcc and the right pin to Gnd. And I connected the data pin to A0 (p0.03).&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The adc value of the potentiometer seems to be strange.</title><link>https://devzone.nordicsemi.com/thread/285838?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 13:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6da29808-b9da-407d-b435-94c79f4e60d6</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;How have you connected the potentiometer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>