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: Is there any driver available to interface BQ34Z100-G1 with a microcontroller?

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

Tool/software:

Hello,

I’m working with the BQ34Z100-G1 fuel gauge module and planning to interface it with a microcontroller (e.g., STM32 ). I want to read the fuel gauge status (SoC, voltage, current, temperature, etc.) from the module.

  • Is there any  inbuilt C driver/library available (from TI or community) to communicate with the BQ34Z100-G1 via I2C?

  • If not, could someone share the best way to read standard registers (like State of Charge, Voltage, etc.) from this gauge?

  • Any reference sample code or GitHub repo would also be helpful.

Thanks in advance!

  • TI does not maintain drivers for the bq34z100.

    Reading SOC etc. is very simple, you just have to read from the bq34z100 device address and I2C register. This is described in the TRM www.ti.com/.../sluubw5a.pdf, 2.1

    For example, if you want to read SOC, you'd issue a I2C read transaction (using your uC's I2C library) for device address 0xAA (or 0x55 if you use 7-bit addresses), register (command) 0x02 and the gauge returns a value between 0 and 100 for SOC in %.