<?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 get adc data on coapp?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20146/how-to-get-adc-data-on-coapp</link><description>what is code for ADC data on coapp(Single channel)?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Mar 2017 15:06:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20146/how-to-get-adc-data-on-coapp" /><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78452?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 15:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1182c3d0-59ea-4f3e-957f-5d1dd3eb5bd8</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;thank you sir  it is working properly .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78454?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 11:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:904e0b99-a91d-4d87-9ecc-2f967d0e28ab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi, did you use your own example or the one I provided? I see that I set the ADC to use AIN0, which is also used for crystals. If you have not done this already, you should change the line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static nrf_drv_adc_channel_t m_channel_config = NRF_DRV_ADC_DEFAULT_CHANNEL(NRF_ADC_CONFIG_INPUT_0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static nrf_drv_adc_channel_t m_channel_config = NRF_DRV_ADC_DEFAULT_CHANNEL(NRF_ADC_CONFIG_INPUT_2);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you want to use P0.01 (AIN2).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78453?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 10:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:305ea484-e9ba-4540-8244-c85c9f6d0e72</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;i could compile the code.i connected input at pin P0.01 and i was getting default values(482,491,492).even if input was not connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78451?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 09:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c11843-b066-402e-a2c3-22ad6c288bf5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Where did you place the example? It should be extracted in &lt;code&gt;nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\examples\iot&lt;/code&gt; and the main.c file should then be found in &lt;code&gt;nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\examples\iot\coap_adc\ipv6\server&lt;/code&gt;. Is this how your setup looks? If it is not placed in the correct directory, your project will not find the files, as the paths are relative.&lt;/p&gt;
&lt;p&gt;Also, make sure you added the path to the adc header files to your project as this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adc_5F00_path.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;And that you have all the following files (in the specified path):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\components\drivers_nrf\adc\nrf_drv_adc.c
nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\components\drivers_nrf\adc\nrf_drv_adc.h
nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\components\drivers_nrf\hal\nrf_adc.c
nrf51_iot_sdk_0.8.0_f1f6187\Nordic\nrf51\components\drivers_nrf\hal\nrf_adc.h
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78450?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 09:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88898dcd-dab5-4d17-a38d-9e7d82fa8a33</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;yes. i tried your project but i get error cannot open board.h file.so i tried to modify the server project which comes with the iot sdk i added the files as u had described and i get error which is present in this link&lt;a href="https://devzone.nordicsemi.com/question/119876/how-do-i-read-the-adc-data-on-coap/"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78449?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 08:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:255761ff-2d75-4a3d-ae19-fac47f253ce9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you create your own project, or did you use the one I provided? If you created your own project, you need to add the path to nrf_drv_adc.h header file to your project. You did copy the entire adc directory from SDK 11 into iot driver folders as I described above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78448?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 07:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73104e98-5ebf-4741-9ed9-38ed3a4cb98d</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;i tried ur code and copied the files but i was getting error cannot read nrf_drv_adc.h. i had added the nrf_drv_adc.c. how do i solve it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78447?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 14:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc995f4-ceac-4276-a860-96d2f2209ce5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I have made an example, but I have not tested it (I don&amp;#39;t have a IoT setup to test on), but I checked that the example compiles and runs.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/coap_5F00_adc.zip"&gt;coap_adc.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You need to copy the ADC driver and HAL from SDK 11.0.0 into your nRF51 IoT SDK directory:&lt;/p&gt;
&lt;p&gt;Copy the directory &lt;code&gt;components\drivers_nrf\adc&lt;/code&gt; from SDK 11.0.0 to &lt;code&gt;Nordic\nrf51\components\drivers_nrf&lt;/code&gt; in nRF51 IoT SDK v0.8.0.&lt;/p&gt;
&lt;p&gt;Copy the files &lt;code&gt;nrf_adc.c&lt;/code&gt; and &lt;code&gt;nrf_adc.h&lt;/code&gt; from &lt;code&gt;components\drivers_nrf\hal\&lt;/code&gt; in SDK 11.0.0 into directory &lt;code&gt;Nordic\nrf51\components\drivers_nrf\hal&lt;/code&gt; in nRF51 IoT SDK v0.8.0.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get adc data on coapp?</title><link>https://devzone.nordicsemi.com/thread/78446?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 13:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08617f1a-5d04-4a15-9848-06fab7067e30</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you try implementing this yourself, &lt;a href="https://devzone.nordicsemi.com/question/111344/can-i-control-pin-24or-any-other-on-nrf51-dknrf51422-using-iot-sdk/?comment=112562#comment-112562"&gt;like I described here&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>