How to measure battery voltage with my custom nrf54L15 board?

I have customed my own nrf54L15 board and it would run on button battery. I managed to measure the battery level through ADC, but I don't know how to use ADC with nrf54L15.

Firstly I tried to run demo: ncs2.8.0/zephyr/samples/boards/nordic/battery to test, but it failed to be built with target nrf54l15dk/nrf54l15/cpuapp.

So how to measure the battery voltage(nrf54l15 input voltage)?

Parents Reply Children
  • When VDD is used as an analog input for SAADC it is "divided down to a valid range". Do you see the results from channel 2 changing as the voltage at VDD is altered? I will have to look up exactly how VDD is divided down. VDD is likely divided down by 4, as for nRF52 and 53 series VDD. Please let me know if more details regarding dividing down is needed.

    The adc_sequence sample is set up to measure DVDD by default. DVDD is onnected to the internal 0.9V digital supply rail.

Related