This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: How to read Battery level in % (SDK version 8.10.00.55)

Part Number: CC2340R5

Tool/software:

Dear support team,

I am using APIs for Battery Monitoring for reading the battery voltage, e.g. BatteryMonitor_getVoltage().

But how I can read Battery Level, let's say from 0 % to 100 % corresponding to its actual voltage level.

Is there any APIs for this?

Regards.

Rasikraj.

  • Hi Rasikraj,

    To get the battery level from the voltage, you should refer to the battery's discharge curve that should be present in the battery's documentation.

    If you are using TI BOOSTXL-BATPAKMKII you can read the voltage through I2C, please create a new e2e thread if you have any question regarding this BoosterPack.

    Regards,
    Tanguy

  • Hello Tanguy,

    I was looking for API if any which returns battery level similar to battery voltage and which would be independent of any battery make.

    From the reference manual, I see PMUD register can have max. value of 4990 mV.

    Can I use this data to roughly get the battery level? What is the ADC reference and resolution details used for this?

    e.g. Battery level % = ( Actaul mv / 4990 mV ) X 100

    Regards.

    Rasikraj.

  • Hi Rasikraj,

    I'm afraid we don't have a battery independent API returning the battery level as the relationship between voltage and battery level is battery specific.

    The resolution of the Battery Monitor can be found in the device's data sheet.

    This computation gives a very rough idea of the battery level.

    Regards,
    Tanguy