Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 10 months ago. This question has been closed. Reason: Duplicate question
Measuring vdd voltage with NRF52
Hello
I need to measure the battery voltage on my nrf52832 without any external circuitry. This should be possible by using the internal references but getting stuck in mbed-os.
I have found this example https://os.mbed.com/users/MarceloSalazar/notebook/measuring-battery-voltage-with-nordic-nrf51x/?c=31319
but that does not compile for mbed-os, I get the following error
Error: Identifier "NRF_ADC" is undefined in "main.cpp", Line: 14, Col: 6
Am i missing an include?
Thanks
Ah ignore that, figured it out using this lib https://os.mbed.com/users/Dautor/code/acn_nrf52_saadc/
posted by Ben S 17 Oct 2018