<?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 sample convert issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47801/saadc-sample-convert-issue</link><description>Hi, 
 I want to get Battery ADC Value. 
 So. I simply used nrf_drv_saadc_sample_convert() function. 
 At first I thought it was the right value, 
 Later, I found that the wrong value was coming out. 
 If you supply 1.5v, the value should be over 400,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 May 2019 07:23:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47801/saadc-sample-convert-issue" /><item><title>RE: saadc sample convert issue</title><link>https://devzone.nordicsemi.com/thread/189468?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 07:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110a0928-c5f2-4dc8-9bd8-dca4a847a2bf</guid><dc:creator>DH.Yoon</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: saadc sample convert issue</title><link>https://devzone.nordicsemi.com/thread/189374?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 14:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bfef224-50f9-4f6d-8ca9-6610a678b140</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is TEST defined/set or not? If not, what is&amp;nbsp;BAT_ADC_IN defined as?&lt;/p&gt;
&lt;p&gt;Note that&amp;nbsp;NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE() expects the parameter to be of type&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__saadc__hal.html#ga4adceebeae2b334a695d4aecb640fe35"&gt;nrf_saadc_input_t&lt;/a&gt;, which are defined as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SAADC_CH_PSELP_PSELP_NC (0UL) /*!&amp;lt; Not connected */
#define SAADC_CH_PSELP_PSELP_AnalogInput0 (1UL) /*!&amp;lt; AIN0 */
#define SAADC_CH_PSELP_PSELP_AnalogInput1 (2UL) /*!&amp;lt; AIN1 */
#define SAADC_CH_PSELP_PSELP_AnalogInput2 (3UL) /*!&amp;lt; AIN2 */
#define SAADC_CH_PSELP_PSELP_AnalogInput3 (4UL) /*!&amp;lt; AIN3 */
#define SAADC_CH_PSELP_PSELP_AnalogInput4 (5UL) /*!&amp;lt; AIN4 */
#define SAADC_CH_PSELP_PSELP_AnalogInput5 (6UL) /*!&amp;lt; AIN5 */
#define SAADC_CH_PSELP_PSELP_AnalogInput6 (7UL) /*!&amp;lt; AIN6 */
#define SAADC_CH_PSELP_PSELP_AnalogInput7 (8UL) /*!&amp;lt; AIN7 */
#define SAADC_CH_PSELP_PSELP_VDD (9UL) /*!&amp;lt; VDD */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ARDUINO_A0_PIN is defined as&amp;nbsp;3 in pca10040.h, which will correspond to&amp;nbsp;AIN2 on the board. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pin.html?cp=3_1_0_3#pin_assign"&gt;GPIO P0.03 is actually AIN1&lt;/a&gt;. I recommend using&amp;nbsp;NRF_SAADC_INPUT_AINx when configuring the pins used for sampling.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>