<?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>nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14498/nrf52832-with-thermistor-sensor---adc</link><description>Hi, 
 I need a bit of help to fully understand how ADC works on nRF52832. 
 I am using a Thermistor sensor like the following to measure temperature:
 Epoxy Thermistor - 3950 NTC 
 I have followed this setup to connect Thermistor sensor to AIN0(GPIO2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 08:45:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14498/nrf52832-with-thermistor-sensor---adc" /><item><title>RE: nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/thread/55345?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 08:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f37f21cc-3d82-449e-a9c3-36088d4e56f0</guid><dc:creator>Steve H</dc:creator><description>&lt;p&gt;Thanks, Sigurd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/thread/55344?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 21:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f38203db-6965-415b-86d8-128c4e915d0a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Steve, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_2_0_36_8#concept_qh3_spp_qr"&gt;here&lt;/a&gt; is an updated link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/thread/55343?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 11:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044a086a-4cf4-477b-b4fe-b280e5992ea6</guid><dc:creator>Steve H</dc:creator><description>&lt;p&gt;Hi Ole, just noticed that your link in 5 is broken.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/thread/55342?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 00:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:922c8f87-cc8a-4251-bf95-1131c2c34195</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Thanks Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 with Thermistor Sensor - ADC</title><link>https://devzone.nordicsemi.com/thread/55341?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 15:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa19fec8-ec4c-4e65-9edb-fe02b0aef2de</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Between 3.3V regulator and Vdd there is a diode, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/dev_kit_v1.1.0/hw_power_sup.html?cp=2_0_0_1_2"&gt;here&lt;/a&gt;. So a voltage around 3V is normal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you use 1/6 gain and 10 bit resolution the usable range will be 810. You can also use 1/5 gain to increase the range (saturating voltage will be 3V) and higher resolution (12-bit or even 14-bit with oversampling). You can change the resolution by changing &lt;code&gt;SAADC_CONFIG_RESOLUTION&lt;/code&gt; in &lt;code&gt;nrf_drv_config.h&lt;/code&gt; to e.g. &lt;code&gt;SAADC_RESOLUTION_VAL_12bit&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You don’t need to use PPI, you can trigger a sample in code with &lt;code&gt;nrf_drv_saadc_sample()&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I am a bit unsure if using internal pull-up resistor on the GPIO would work, but in your case I would not do it anyhow because the accuracy of the internal pull-up resistor is bad (11k-16k), see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/gpio.html?cp=2_2_0_18_3_0#unique_168235002"&gt;here&lt;/a&gt;. The ladder resistor in SAADC (which is configured with the &lt;code&gt;.resistor_p = NRF_SAADC_RESISTOR_PULLUP&lt;/code&gt;) is about 160kohm, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/saadc.html?cp=2_2_0_35_11_0#unique_1944192991"&gt;here&lt;/a&gt;. Not sure what the accuracy is on this resistor.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can set down the acquisition time to 3 us, which is just within what we recommend with source resistance of 10kohm, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/saadc.html?cp=2_2_0_35_8#concept_qh3_spp_qr"&gt;here&lt;/a&gt;. Do that with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_saadc_channel_config_t channel_config =
    NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN0);
channel_config.acq_time = SAADC_CH_CONFIG_TACQ_3us;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>