Coulomb counting is an algorithm commonly used to estimate the state of charge (SOC) of a battery. Its basic principle is to calculate the remaining battery power by integrating the changes in the battery’s charge and discharge current over time.