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

Reading values from a potentiometer using nRF52

Im quite new to development with the DK so bare with me.

Currently I am able to read digital values (0 and 1) from the potentiometer using pin P0.03.

I am using the function: nrf_gpio_pin_read(POTMETER_PIN)

How do I go about getting the analog values instead ( 0 - 1024 etc.)?

Parents Reply
  • Hi,

    I did have a look at the SAADC example and I was expecting that it was a good example for me. 

    What I need to do now however is to merge the ble peripheral example ble_app_uart with the SAADC example.

    Do you have a tips for how to best merge these two examples? I would imagine all the code from SAADC would need to get vowven into the uart example and maybe some config files would need modification?

Children
Related