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

NRF52832 physical pin analogRead

Hello,

I'm trying to read an ADC value from a sensor(for POC I'll be using a pot wired to 3.3V VDD and GND) but all the examples I found only demonstrated reading the internal VDD with the 0.6V reference:

for example(simplest code I found):

github.com/.../main.c

and nothing with the VDD reference and an actual physical pin....

does anybody has an idea were can you get such an example or at least how should the example code be modified to work with say pin "P0.04" sins I'm quite a noobie?

Thanks for your time.

Parents
  • Yeah I'm always learning with the info center and nrf_drv_saadc_channel_init is just initializing the channel in the IC internally and I'm looking to see how to hook it up to a pin, or maybe I got the Idea wrong and it's somehow proportional to the pin any how I couldn't find the function nrf_drv_saadc_channel_init in the example and the macro that has something to do with pins according to the infocenter"NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE"

Reply
  • Yeah I'm always learning with the info center and nrf_drv_saadc_channel_init is just initializing the channel in the IC internally and I'm looking to see how to hook it up to a pin, or maybe I got the Idea wrong and it's somehow proportional to the pin any how I couldn't find the function nrf_drv_saadc_channel_init in the example and the macro that has something to do with pins according to the infocenter"NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE"

Children
No Data
Related