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.

BQ34Z100-G1: Configuration using a host

Part Number: BQ34Z100-G1
Other Parts Discussed in Thread: BQ34Z100, BQSTUDIO,

I am working with the fuel guage IC (bq34z100) for the first time.

I had few questions reagarding the same. I request youo respond:

1) Is the bqstudio software necessary, for the configuration of bq34z100 IC?
   
[I have a custome hardware board and am trying to interface fuel guage IC with ESP32 over I2C] 

2) The step by step design procedure in the datasheet mentions to calculate the design capacity, design energy and configure the same in flash. What are the steps to do? The address of design capacity is read-only.

3) I configured the VOLTSEL bit in the Pack Configuration register to enable the external voltage divider measurement option. But when I send the packet to get the voltage from battery, i get 0x00 as the data.

[The packet to get the voltage is of the form 0xAA + ACK , 0x08 + ACK RepeatStart bit, 0xAB + ACK, 0x00 + ACK, (packet finishes). Since i dont receive any data, the host doesn't send ACK and the I2C communication does not return SUCCESS]

It would be a great help, if you could let me knwo the proper procedure to configure the guage IC without the bqstudio tool. Please correct me as i know i am following a wrong procedure.


Many thanks in advance

  • Hi Saket,

    1) bqStudio is very highly recommended to initially test and configure the bq34z100-G1. It is not required in production and can interface with a host microcontroller. bqStudio will even provide an output of I2C commands in the form of a BQFS or DFFS file that may be implemented on a host microcontroller for programming of the bq34z100-G1.

    2) In section 7.3.2.14 the read only command for DesignCapacity() is given. This command may be used by a host microcontroller to request the DesignCapacity() from the bq34z100-G1 gauge. This value may be written to with subclass ID 48, Offset 11 and is of type I2. Please refer to Table 11 and 7.3.3.1 Accessing Data Flash for more information on how to use BloackData() commands.

    3) Please use the bqStudio tool. Especially as a first time user, it will simplify development greatly, especially with calibration and testing.

    For I2C communications, please refer tot he subcommand sequence in this app note: www.ti.com/.../slua790.pdf

    Sincerely,
    Bryan Kahler