I need to be able to measure the battery level of the NRF52 with the internal ADC.
I know it can be done, but I don't really know how to configure it
I am using MBED for software development
I need to be able to measure the battery level of the NRF52 with the internal ADC.
I know it can be done, but I don't really know how to configure it
I am using MBED for software development
Hi,
There may be some mbed ADC API I am not aware of, but in any case, it should be possible to use the SDK SAADC driver directly. In that case, I suggest you refer to the SAADC example. The only thing. you need to know in addition is that you can sample VDD by using NRF_SAADC_INPUT_VDD as input (instead of e.g. NRF_SAADC_INPUT_AIN0).