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.

BQ27520-G4: minimal firmware in order to just get a % of battery

Part Number: BQ27520-G4


Hello,

The datasheet is very complex. It looks like a one week work just to analyze it and get something useful from that chip.

Do you have some basic and CPU agnostic host firmware examples that would get from the BQ27520-G4, just what I want : a battery percentage ?

The 7 "softwares" provided on your website don't seem to be that kind of thing.

Does that make sense to have such a simple need with that chip ? Can it be used efficiently with rather simple code ?

A quick answer would be appreciated.

thank you.

  • Hi, you can communicate with bq27520-G4 gauge via I2C protocol to get State of Charge (SOC) of the battery using a simple code, please refer to the document ( Gauge Communication), section 3.3
    SOC can be read off by sending a (Standard Command) to the gauge and reading back, you can find bq27520-G4 (Standard Command) list in the device (Technical Reference Manual) chapter 2.
    1. www.ti.com/.../slua801.pdf ( Gauge Communication)
    2. www.ti.com/.../sluua35.pdf (Technical Reference Manual)

    Best,
    Haidar