This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Incorrect ADC reading

Hi, I configure ADC:

nrf_adc_config_t Config = { NRF_ADC_CONFIG_RES_10BIT,
                              NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD,
                              NRF_ADC_CONFIG_REF_SUPPLY_ONE_THIRD };
nrf_adc_configure(&Config); 

Vsupply = 2.85 V, Vain6 = 2 V.

I read ADC:

nrf_adc_convert_single(NRF_ADC_CONFIG_INPUT_6);

And I get result 410 which is obviously incorrect because it should be 719. Why and how to fix it?

Related