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.

BQ27Z561: Battery Detection

Part Number: BQ27Z561


Hello Team,

We have BQ27Z561 as a battery fuel gauge.

We would like to detect the battery presence/absence using the BQ27Z561.

Let us know how to implement the same using BQ27Z561.

  • This gauge is a pack side gauge so it's not intended to detect the presence of a battery (as it's supposed to be always connected to the cell itself).

    You can read cell voltage to detect, if the voltage on BAT_SNS is within the range of a battery (while the gauge is powered with a valid voltage on BAT). Make sure that the gauging algorithm is disabled (with the Gauging() command), if there is no battery attached.

  • Hello 

    Thanks for the information...

    You can read cell voltage to detect, if the voltage on BAT_SNS is within the range of a battery

    can you please suggest how to read the cell voltage on BAT_SNS from BQ27Z561 I2C? like specific i2c command or register address to read.

    for example: we are reading the charging/discharging current as per the below register

    #define BQ27Z561_REG_INSTCURR (0x0C)
    bq27z561_err_t bq27z561_get_battery_current(uint16_t *current){
    /* Get battery current */
    if(bq27z561_read_word_data(BQ27Z561_REG_INSTCURR, (uint16_t *)current) != BQ27Z561_OK) {
    return BQ27Z561_ERR_I2C_ERR;
    }
    return BQ27Z561_OK;
    }

    Thanks

  • Voltage is standard command Voltage(), which can be read from I2C registers 0x08/0x09 (16-bit integer).

    I don't have an EVM right with me to check - keep in mind that this is not a regular supported use case for a pack side gauge so this may not work correctly, if BAT_SNS is significantly different from the power supply to the gauge.