MATLAB: Coulomb Counting Calculation of the battery SoC

battery soccoulomb counting

How to calculate or estimate the battery SoC by Coulomb Counting?

Best Answer

  • Coulomb counting is basically the integral of the current w.r.t. time. So if you have current values and corresponding time values, then you can use cumtrapz()
    t; % time
    I; % current values
    Q = cumtrapz(t, I)