Need Sample ADC Program for (ADS1118) with NRF Dongle

Hello,

--> I want to read some analog values from Pressure sensor. I don'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. 

--> I am new at programming nRF52840 and i need some examples for Analog Digital Converter. So how can i make ADC configuration basically ? I tried to understand SAADC example but it uses timer interrupt. I need to use it without any interrupt. 

-->I am using NRF52840 with board folder as PCA10056 and s140 as softdevice.

                               I am waiting for your quick response.

                               Thanks..

Parents Reply
  • Hi 

    Sorry for the slow response. Håkon is currently unavailable, and I will help out in the mean time. 

    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. 

    Fortunately the ADS1118 is a relatively simple sensor to interface, there is not a lot of different commands you need to send. 

    A member of the community provided quite a lot of advice on interfacing the ADS1118 to an nRF device here, I would suggest you start by reading through that. 

    Best regards
    Torbjørn

Children
Related