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.

BQ27510-G3: Configuration and start up

Part Number: BQ27510-G3
Other Parts Discussed in Thread: BQSTUDIO, EV2400

Hello. I use fuel gauge BQ27510-G3. I have some problems with configurating and starting this fuel gauge. I have no evaluation kit to previously configurate it through bqStudio, but I have look on this. So I have my custom board with this fuel gauge. I've successfull communicate with FG through I2C, and also I've successfully read/write to NVM flash of the FG. So I can manually configurate FG from my other MCU.
What I need: I need to control my battery Li-Pol 250 mAh, with maximum discharge current 300 mA, maximum charge current - 250 mA. My Rsense = 100 mOhm.
How I configuring FG:

As I undestand from datasheet I need to set following parameters: Desgin Capacity, Desing Energy Scale, Reserve Capacity, Chem ID, Load Mode, Load Select, Qmax Cell 0, Cell0 V at Chg Term, Terminate Voltage, Ra Max Delta, Charging Voltage, Taper Current, Taper Voltage, Dsg Current Threshold, Chg Current Threshold, Quit Current, Avg I Last Run, Avg P Last Run, Sleep Current, CC Gain, CC Delta, Board Offset, Pack V Offset. So, I write to flash parameters as following:

- write "Design Capacity" = 250;

- write "Taper Current" = 250;

- write "Qmax cell" = 250;

- write "Chem ID" = 1675 (I select the most close to my, form table in bqStudio);

- write "dsg Current Threshold" = 1;

- write "chg Current Threshold" = 250;

- write "Qquit Current" = 0;

- write "Sleep Current" = 1;
- clean BIE bit in opConfig B register,
After all write procedures I've checked all this parameters after reset and observed successfuly applied written values.
Other parameters have dafault values, that suitable for me. Sense resistor was selected regarding this application note. For me scale factor is 10, so regarding this app note I should set Design Capacity to 2500, Taper Capacity to 500 and finaly Design energy to 9250. But in bq27510-G3 no such variables as Taper Capaciy and Design Energy, so what I need to set, to apply my scale factor? I use this app note this because Onyx's recommended it to me in this thread. Second question is my other configurations is correct?

How I try to start FG:

- send Control() command with "battery insert" subcommand;

- set unseal mode by sending Control() command and default keys;

- send Control() command, read Status, and make sure, that FG transited in UNSEAL mode;

- send Control() command, send "Enable IT" subcommand;

- send Control() commnad, send "Seal" subcommand to transit in SEAL mode;

- read Flags() and obtain 0x2001. So bit BAT_DET is 0. Why?
Also SOC = 0. What I'm doing wrong? How to correctly start FG?

I've read this guide, but there is no information how to start it.

  • Hi Aseniy

    There is no way around configuring your gauge successfully without using bqstudio. You need to get an ev2400 and connect your board to bqstudio and then follow the instructions in the app note below, though written for a different gauge is applicable to this

    Then once you have successfully created your golden file, you follow the instructions in the app note below to communicate with the gauge and write code that will program multiple devices.

    thanks

    Onyx

  • So, 

    1) Why it's not specified in any documentation that it's impossible to configurate FG without evaluation board? You must specify it! User should know, that if he want to use your FG he also should buy eval-kit. 

    2) What about my other questions, regarding different parameters in SLUA792 and in the flash of bq27510-G3?

    3) And anyway, when I configurate FG by uploading golden file, how I can start gauging?

  • Also, what is typical size of the golden file?

  • Hi Arseniy

    Typical size is about 150-200kb. The app note says to extract a golden file that will be programmed on multiple devices. Once you program, the device will be active and will report the SOC.

    For bat_det to be 1, you have to have a thermistor connected or you have to sent the batt insert command 

    See section 2.1.7 and 5.3.3 of the TRM below for additional info.

    thanks

    Onyx

  • Thank you for the "fast" answer. What I can do if I have no space in my MCU to store golden file?
    Wh you don't specify in datasheet? You have big issues, that user should generate golden file and user must have 200kb on his MCU to be able to work with your FG! You must specify it in documentation!

  • Hi Arseniy

    We do specify it in the quick start guide  for the device that the user has to have nvm in the host.

    thanks

    Onyx