Measuring LiPo on Adafruit nRF52 Feather

Peter A. Bigot

Look at samples/boards/nrf/battery, and boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts which adds the voltage-divider compatible that describes the circuit connected to the ADC input.  You'll need a similar node with the resistances specific to your board.


Tomas McGuinness <tomas@...>


I'm quite new to Zephyr, and I have a question related to the nRF52 Adafruit Feather.

As I understand it, this board gives you the ability to measure the voltage on the connected LiPo battery using GPIO 31 (A7). 

For a small sensor project, I would like to use this measurement to report on battery level, but I cannot find any guidance on how I might read this pin's value? 

Are there any examples you would recommend I take a look at? Any help would be very much appreciated!