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

NRF51822 measure input voltage

Hi,

I am trying to use an nrf51822 with a sensor that outputs value between 0-5V. What I am confused about is how to read input voltage on the beacon. I saw some people using ADC, but there was no clear instruction on how exactly to do it. Maybe you could provide clear instructions on how to configure a pin as an input pin correctly, set up the ADC and read the voltage, let's say, every 100ms? This would be very helpful.

Looking forward to hearing from you. Thanks in advance.

Regards, Robert

Parents Reply Children
No Data
Related