<?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>Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87222/need-sample-adc-program-for-ads1118-with-nrf-dongle</link><description>Hello, 
 --&amp;gt; I want to read some analog values from Pressure sensor. I don&amp;#39;t know how to read analog input from sensor. Can you give/provide me the code which having an only analog pin declaration, get read value from sensors. 
 --&amp;gt; I am new at programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jun 2022 08:51:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87222/need-sample-adc-program-for-ads1118-with-nrf-dongle" /><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/372960?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 08:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20bf3601-c921-47be-8a89-6acd7fc9977a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some time ago I made an example showing how to combine Bluetooth and the ADC, feel free to have a look at that:&lt;br /&gt;&lt;a href="https://github.com/too1/ncs-peripheral-uart-adc"&gt;https://github.com/too1/ncs-peripheral-uart-adc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/372741?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 08:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc24b207-aa2a-49cb-8053-9955b19edaad</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please provide me the ADC example code with Bluetooth for reading any sensor values&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366857?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 08:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5648a9-aeca-4edb-8899-48fb700c2818</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;You welcome &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then I will consider the case closed, unless you have more questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366630?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 08:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa2f27f0-8c4f-40ad-af14-6b7d983c07e9</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Ok sure, Thank you..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366623?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 08:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee6ca59a-2c32-44da-acf1-66731eec3eee</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use the SAADC to read any analog value, yes, but make sure to read the documentation link I shared earlier to see that the SAADC specifications satisfy your requirements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will summarize some of the key specifications here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- 12-bit maximum resolution&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- 200 ksps maximum sampling rate&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- You can not use any GPIO pin for the ADC, only those 8 that are labeled AIN0-AIN7&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- The voltage has to be in the range of 0-VDD, you can not sample values below 0V or values above VDD&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366438?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 11:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c39d881f-80b8-46bf-885b-d396e6f698fc</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;This Internal ADC SAADC program is useful for reading any type of sensor value. Is it possible right&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366427?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 11:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:007eef8e-2825-4a50-b7f3-ab4387dc8613</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The nRF52840 has an internal ADC module, called SAADC and documented &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/saadc.html?cp=4_0_0_5_22"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;One of my colleagues made a small sample showing how to use the internal ADC in the nRF9160 using the standard Zephyr ADC driver, and you should be able to do it in a similar way on the nRF52840:&lt;br /&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/adc"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/adc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366088?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 04:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fc55f9-a21d-4332-badd-5a9e3a028ff5</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Internal ADC means?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/366008?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 13:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:684f4300-fd8d-4630-ace8-f058dcce1b67</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would it be sufficient with a sample using the internal ADC of the nRF52840, or it has to be the ADS1118?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/365733?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 11:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8509f6c6-63bf-438e-9e05-cdde55181d95</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Hello Ovrebekk,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I need to read some sensor data through ADC concepts with NRF52840, Can you please provide some sample code, then it will helpful for me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/365727?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 11:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4864cc88-3dda-4e99-88de-1948f8a784db</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the slow response. Håkon is currently unavailable, and I will help out in the mean time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no driver for the ADS1118 in either the nRF5 SDK or the nRF Connect SDK unfortunately, so you would need to implement this directly using the SPIM (spi master) driver.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Fortunately the ADS1118 is a relatively simple sensor to interface, there is not a lot of different commands you need to send.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A member of the community provided quite a lot of advice on interfacing the ADS1118 to an nRF device &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/78378/spi-communication-is-not-working-in-nrf52840/325186#325186"&gt;here&lt;/a&gt;, I would suggest you start by reading through that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/364550?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 10:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80f26af-1aa2-4f8c-93ef-a7fecbdbcef5</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am waiting for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/364461?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 11:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f4bd704-9a83-4f6f-8194-bdc2bb19fac0</guid><dc:creator>namitha K M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for replying soon.&lt;/p&gt;
&lt;p&gt;** Not only pressure, any sensor data i need to read.&lt;/p&gt;
&lt;p&gt;** Yes i am going to use the ADS1118 ADC&amp;nbsp;&lt;/p&gt;
&lt;p&gt;** Yes I am planning to sample some analog pressure sensor with external ADC or Internal ADC from NRF52840.&lt;/p&gt;
&lt;p&gt;** Yes I am using NRF SDK only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Sample ADC Program for (ADS1118) with NRF Dongle</title><link>https://devzone.nordicsemi.com/thread/364447?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 11:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c959022f-8b09-4416-a1ba-e7e3595fe7ab</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please allow me to understand what you would like to achieve:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which pressure sensor are you using?&lt;/li&gt;
&lt;li&gt;Are you planning to operate the ADS1118 ADC from nRF52840?&lt;/li&gt;
&lt;li&gt;Or are you planning to sample some analog pressure sensor by using the internal ADC from nRF52840?&lt;/li&gt;
&lt;li&gt;Will you be using nRF5 SDK or have you considered moving to &lt;a href="https://www.nordicsemi.com/Products/Development-software/nRF-Connect-SDK"&gt;nRF Connect SDK&lt;/a&gt;?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>