Other Parts Discussed in Thread: BQSTUDIO, EV2400
Tool/software:
hi
I am using uC to control BQ34Z100-R2.
And I can read and write data via I2C communication.
I read the voltage value using command code 0x08, but it is not the value I want.
The power source currently in use is a lithium-ion battery pack 7S1P.
When I measure the voltage of the battery pack, it measures 25.95V.
When measuring the voltage of the battery pack, 25.95V is measured.
Therefore, the voltage value should be 25950.
However, as shown in the figure below, the voltage value is 14.
I found a similar case in the link below and tried it, but the result is different.
e2e.ti.com/.../bq34z100-r2-voltage-and-temperature-calibration-issues
I used R1 = 562K, R2 = 16.5K as distribution resistors.
- Battery Pack Voltage: 25.95V
- Use the external voltage divider (set the PackConfiguration[VOLSEL] bit)
Pack Config: 26977(Decimal value) -> 0x6961(Hexadecimal value)
If you read the Pack Config value using the extended command 0x3A, you can see that it is the same as the setting value.
Use the voltage divider 35060
This value is determined by the calculation below.
Vout = (Vs * R2) / (R1+R2)
1V = Vs * (R2 / (R1 + R2))
Vs = 1V * ((R1 + R2) / R2)
Vs = 1V * ((562K + 16.5K) / 16.5K)
Vs = 35.060V = 35060mV
If you look at the picture below, you can see the set Voltage Divider values.
And the number of cells is set to 1.
Is there something wrong with my setup?