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 

    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. 

    I will summarize some of the key specifications here: 

    - 12-bit maximum resolution

    - 200 ksps maximum sampling rate

    - You can not use any GPIO pin for the ADC, only those 8 that are labeled AIN0-AIN7

    - The voltage has to be in the range of 0-VDD, you can not sample values below 0V or values above VDD

    Best regards
    Torbjørn

Children
Related