Other Parts Discussed in Thread: BQSTUDIO, EV2400
Tool/software:
My team has a PCB with the BQ27427YZFR to measure the current state of charge; however, we are struggling to build a sensible driver for determining the state of the battery.
We've tried multiple batteries, but it seems no matter what the configuration of the system, we are seeing the following:
AverageCurrent() is _always_ negative, the DSG bit of Flags() is _always_ 0.
We are configuring: Design Capacity, Design Energy, Terminate Voltage, and Taper Rate as a part of writing out our configuration.
My gut says we're missing something, but its just not obvious to me.
For reference, our test bench is using the Zephyr driver (https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/sensor/bq274xx).
We are also applying the CC Gain sign change per: e2e.ti.com/.../bq27427evm-misbehaving-stateofcharge
