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

SAADC output values on UART

Hi,

I want monitor the battery voltage of my system, I used the SAADC examples on GitHub for SDK 13.0 (https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/saadc_low_power). The code compiles and I can see the LEDs flashing according to described function. However, I do not see any analog "value" of AIN0. There is no change whether I pt the pin to VDD or GND. I have checked the code quite thoroughly and nothing prints a hex or dec value of the AIN pin to the UART. I do not know what I am measuring! 

I would appreciate any help in this regard. DO I need to change anything?

Best

Kanika

Parents
  • Hi Kenneth,

    Yes I am connected to the right pin. I am using the nRF52 DK.

    I also tried to use the example you suggested. I have the same issue there: I see nothing printed out. I am using the Seggar JLink for debugging. What I am seeing is that all NRF_LOG commands are not being written while Seggar_Write commands do write. So I checked the sdk_config.h. In there I tried to enable ( 0-->1) the following:

    NRFX_SAADC_CONFIG_LOG_ENABLED 1

    NRFX_UARTE_CONFIG_LOG_ENABLED 1

    NRFX_UART_CONFIG_LOG_ENABLED 1

    However, I see no change  and do see anything on the real time debugger......

Reply
  • Hi Kenneth,

    Yes I am connected to the right pin. I am using the nRF52 DK.

    I also tried to use the example you suggested. I have the same issue there: I see nothing printed out. I am using the Seggar JLink for debugging. What I am seeing is that all NRF_LOG commands are not being written while Seggar_Write commands do write. So I checked the sdk_config.h. In there I tried to enable ( 0-->1) the following:

    NRFX_SAADC_CONFIG_LOG_ENABLED 1

    NRFX_UARTE_CONFIG_LOG_ENABLED 1

    NRFX_UART_CONFIG_LOG_ENABLED 1

    However, I see no change  and do see anything on the real time debugger......

Children
No Data
Related