<?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>How to Program NRF51422 w/S130 to read input pin into ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12179/how-to-program-nrf51422-w-s130-to-read-input-pin-into-adc</link><description>I&amp;#39;m trying to replicate an Arduino Uno application where we connect a M3Q alcohol sensor into an analog pin and feed the data into the ADC. The specific board I have is made by Taiyo Yuden . I&amp;#39;ve gone through various code samples in Nordic Semiconductor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2016 12:06:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12179/how-to-program-nrf51422-w-s130-to-read-input-pin-into-adc" /><item><title>RE: How to Program NRF51422 w/S130 to read input pin into ADC</title><link>https://devzone.nordicsemi.com/thread/46085?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2016 12:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36cc35ca-b675-4a1e-9681-6a12cb7eeab2</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is PIN 1 as in P0.01. This is stated in comments in the start of the main file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Program NRF51422 w/S130 to read input pin into ADC</title><link>https://devzone.nordicsemi.com/thread/46084?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 15:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2985c6d2-2023-4309-97df-16350ede03a3</guid><dc:creator>CM</dc:creator><description>&lt;p&gt;Clarifying question: is it pin 1 as in &amp;quot;P0.01&amp;quot; of CN3? Or &amp;quot;Pin No 1&amp;quot; map as &amp;quot;P0.25&amp;quot; on the table (Page 4 of the Taiyo Yunden manual linked above in the question)?  According to the Github sample, the adc_init() function uses ADC_CONFIG_PSEL_AnalogInput2 which maps to NRF_ADC_CONFIG_INPUT_2 based off header file &amp;quot;nrf_adc.h&amp;quot;. I failed to see any reference to Pin 1 in the sample code. Will appreciate some further feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Program NRF51422 w/S130 to read input pin into ADC</title><link>https://devzone.nordicsemi.com/thread/46083?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 14:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f4ccb7-59ad-46e4-ada8-9f7ed6c8f1ef</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The code that you linked to reads the analog value from pin 1 and outputs it via UART and BLE. The output will be the 8bit int value from the ADC. The range in this particular example is from 0 to 3.6V, if you want to view the result in for example mV you can do the following: &lt;code&gt;3600*adc_result/255&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>