Battery percentage measurement in nrf connect SDK

Hi Nordic,

I am exploring on how to use an ADC module for measuring the battery percentage for my nrf52840. I am working on the nrf connect SDK. Can anyone suggest me a sample for reading the battery percentage in the zephyr SDK?

Thanks,

Pranathi

Parents Reply
  • Hi Sigurd,

    I did change the build configuration for the battery sample with nrf52833dk_nrf52833 and I got the build errors as such:

    • '__device_dts_ord_DT_N_S_zephyr_user_P_io_channels_IDX_0_PH_ORD' undeclared here (not in a function)
    • 'DT_N_S_zephyr_user_P_io_channels_IDX_0_VAL_input' undeclared here (not in a function)
    • identifier "DT_N_S_zephyr_user_P_io_channels_IDX_0_VAL_input" is undefined
    • identifier "__device_dts_ord_DT_N_S_zephyr_user_P_io_channels_IDX_0_PH_ORD" is undefined

    Thanks,

    Pranathi

Children
Related