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

Saadc over BLE sanity check

Hi,

I merge saadc and ble_uart together in order to send send sensor output(now just analog voltage) to mobile app. I want to check weather the ADC is working properly or not. Digital values for same voltage are very different from each other and it seems changing voltage does have impact on digital value. How can I check adc's functionality?

Best regards,

Kosar

Parents
  • Hi Kosar,

    The simplest sanity check is to ground the pin, you are measuring. If you get something other than 0, you have a DC offset and should calibrate the SAADC (by calling nrf_drv_saadc_calibrate_offset() if you are using the SDK driver). If you get different measurement results depending on supply voltage, that indicates to me that you are using VDD as reference. You should probably use the internal 0.6 V reference instead to make the measurement results independent of the VDD voltage.

Reply
  • Hi Kosar,

    The simplest sanity check is to ground the pin, you are measuring. If you get something other than 0, you have a DC offset and should calibrate the SAADC (by calling nrf_drv_saadc_calibrate_offset() if you are using the SDK driver). If you get different measurement results depending on supply voltage, that indicates to me that you are using VDD as reference. You should probably use the internal 0.6 V reference instead to make the measurement results independent of the VDD voltage.

Children
Related