Hello everyone,
I have a nrf52832 device and want to fire a feedback (led and vibration) in case of low battery voltage. I am measuring the battery voltage over a ADC channel and it is already working. The point is I have to always send a command to read out the sampled value. So I have the possibility to add a while loop and check every second the battery voltage till it is low.
But I am sure there must be a more elegant way to realize it. I think about some kind of ADC trigger/interrupt where the µC detects a threshold and starts a handler. I already implemented something similar for the GPIO. What is the best way to identify a low battery voltage ?
Best regards
Hani