Skip to main content
Firmware Stable

Balancing states

info
  • All mentioned variables are located in folder /driver/balancing/.

Balancing configuration

Balancing is allowed in states IDLE and greater.

ParameterDescription
cellBalVoltageIf voltage of cell is above this value, balancing of that cell is allowed.
balStartDeltaIf the difference between the highest and lowest cell voltage is above this value, balancing is started.
balEndDeltaIf the difference between the highest and lowest cell voltage is below this value, balancing is stopped.
maxSimBalMaximum number of cells balanced at one moment. If there is overtemperature of balancer, the BMS will automatically reduce number os balanced cells.

Balancing states

StateDescription
balCmd1: Balancing is allowed.
2: Balancing is forced (ignoring) cellBalVoltage parameter and BMS state
balState1: At least one cell is balancing
2: Balancer overtemperature
4: Cell overvoltage
8: Cell undervoltage
16: Cell check error
32: Balancer failure
64: Critical undervoltage
badCellsSignalize bitwise cell with error.
- If cell is expected and voltage is below 100mV
- If the cell is not expected and voltage is above 100mV

*All the states are bitwise

Balancer readings

VariableDescription
cellVoltages[mV] Array of cell voltages.
cellMin[mV] Minimum cell voltage.
cellMinIndexIndex of the cell with the lowest voltage.
cellMax[mV] Maximum cell voltage.
cellMaxIndexIndex of the cell with the highest voltage.
cellDiff[mV] Difference between the highest and lowest cell voltage.
cellVoltageSum[V] Sum of all cell voltages.