Assessment of AEKF SoC Estimation in a LiFePO₄ Battery System with Relay Switching Control
DOI:
https://doi.org/10.33387/protk.v13i2.11204Keywords:
Adaptive Extended Kalman Filter, State of Charge estimation, LiFePO4 battery, Equivalent circuit model dan Relay switching controlAbstract
This study implements an Adaptive Extended Kalman Filter (AEKF) for real-time state of charge (SoC) estimation to support charge–discharge regulation in a LiFePO₄ battery system integrated with photovoltaic (PV) generation. Due to the variability of PV output, accurate and stable SoC estimation is essential for ensuring reliable battery operation. A first-order equivalent circuit model (1RC ECM) is employed to represent battery dynamics based on measured current and terminal voltage. The proposed AEKF algorithm is implemented on a Raspberry Pi 5 to enable real-time computation, and the estimated SoC is directly used as the control variable in a dual-relay switching mechanism to regulate charging and discharging processes. Experimental results show that the proposed method achieves a Mean Absolute Error (MAE) of 1.24% and a Root Mean Square Error (RMSE) of 1.58%, which are both below the 5% target specified in the system design. The system successfully maintains the battery within a safe SoC range of 57.5% to 85.2%, while ensuring stable relay operation without chattering under dynamic load and charging conditions. These results demonstrate that the proposed AEKF-based approach provides accurate, stable, and practical SoC estimation, making it suitable for real-time battery management in small-scale energy storage applications.
Downloads
References
L. Lu, X. Han, J. Li, J. Hua, and M. Ouyang, “A review on the key issues for lithium-ion battery management in electric vehicles,” J. Power Sources, vol. 226, pp. 272–288, Mar. 2013, doi: 10.1016/j.jpowsour.2012.10.060.
X. Hu, S. Li, and H. Peng, “A comparative study of equivalent circuit models for Li-ion batteries,” J. Power Sources, vol. 198, pp. 359–367, Jan. 2012, doi: 10.1016/j.jpowsour.2011.10.013.
G. L. Plett, “Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs,” J. Power Sources, vol. 134, no. 2, pp. 277–292, Aug. 2004, doi: 10.1016/j.jpowsour.2004.02.033.
M. Chen and G. A. Rincon-Mora, “Accurate electrical battery model capable of predicting runtime and I-V performance,” IEEE Transactions on Energy Conversion, vol. 21, no. 2, pp. 504–511, Jun. 2006, doi: 10.1109/TEC.2006.874229.
Hongwen He, Rui Xiong, Xiaowei Zhang, Fengchun Sun, and JinXin Fan, “State-of-Charge Estimation of the Lithium-Ion Battery Using an Adaptive Extended Kalman Filter Based on an Improved Thevenin Model,” IEEE Trans. Veh. Technol., vol. 60, no. 4, pp. 1461–1469, May 2011, doi: 10.1109/TVT.2011.2132812.
S. Yang et al., “A parameter adaptive method for state of charge estimation of lithium-ion batteries with an improved extended Kalman filter,” Sci. Rep., vol. 11, no. 1, p. 5805, Mar. 2021, doi: 10.1038/s41598-021-84729-1.
D. Ma, K. Gao, Y. Mu, Z. Wei, and R. Du, “An Adaptive Tracking-Extended Kalman Filter for SOC Estimation of Batteries with Model Uncertainty and Sensor Error,” Energies (Basel)., vol. 15, no. 10, p. 3499, May 2022, doi: 10.3390/en15103499.
E. Chemali, P. J. Kollmeyer, M. Preindl, R. Ahmed, and A. Emadi, “Long Short-Term Memory Networks for Accurate State-of-Charge Estimation of Li-ion Batteries,” IEEE Transactions on Industrial Electronics, vol. 65, no. 8, pp. 6730–6739, Aug. 2018, doi: 10.1109/TIE.2017.2787586.
C. Vidal, P. Malysz, P. Kollmeyer, and A. Emadi, “Machine Learning Applied to Electrified Vehicle Battery State of Charge and State of Health Estimation: State-of-the-Art,” IEEE Access, vol. 8, pp. 52796–52814, 2020, doi: 10.1109/ACCESS.2020.2980961.
M. S. H. Lipu et al., “A review of state of health and remaining useful life estimation methods for lithium-ion battery in electric vehicles: Challenges and recommendations,” J. Clean. Prod., vol. 205, pp. 115–133, Dec. 2018, doi: 10.1016/j.jclepro.2018.09.065.
J. Xie, J. Ma, and J. Chen, “Peukert-Equation-Based State-of-Charge Estimation for LiFePO4 Batteries Considering the Battery Thermal Evolution Effect,” Energies (Basel)., vol. 11, no. 5, p. 1112, May 2018, doi: 10.3390/en11051112.
X. Lai, Y. Zheng, and T. Sun, “A comparative study of different equivalent circuit models for estimating state-of-charge of lithium-ion batteries,” Electrochim. Acta, vol. 259, pp. 566–577, Jan. 2018, doi: 10.1016/j.electacta.2017.10.153.
Z. He et al., “State-of-charge estimation of lithium ion batteries based on adaptive iterative extended Kalman filter,” J. Energy Storage, vol. 39, p. 102593, Jul. 2021, doi: 10.1016/j.est.2021.102593.
K. Zhou, X. Wang, and Y. Li, “Battery state of charge estimation solution based on optimized Ah counting and online calibration strategy for electric vehicle,” International Journal of Low-Carbon Technologies, vol. 19, pp. 1780–1786, Jan. 2024, doi: 10.1093/ijlct/ctae127.
E. Banguero, A. Correcher, Á. Pérez-Navarro, F. Morant, and A. Aristizabal, “A Review on Battery Charging and Discharging Control Strategies: Application to Renewable Energy Systems,” Energies (Basel)., vol. 11, no. 4, p. 1021, Apr. 2018, doi: 10.3390/en11041021.
Downloads
Published
How to Cite
Issue
Section
License
Copyright & License
Copyright, licensing, and reuse terms for articles published in Protek: Jurnal Ilmiah Teknik Elektro
1. Copyright
Authors who publish in Protek: Jurnal Ilmiah Teknik Elektro retain the copyright of their work. Copyright of each article is vested exclusively in its authors.
2. License
Articles in Protek are published under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Anyone may share and adapt the work under the following terms:
3. Author's Warranties
By submitting a manuscript, the author warrants that the article:
- is original and has not been published before;
- contains no unlawful statements;
- does not infringe the rights of others;
- is subject to copyright vested exclusively in the author(s); and
- includes any necessary permissions to quote material from other sources.
4. User Rights
Under CC BY-NC-SA 4.0, users may copy, distribute, display, and perform the work for non-commercial purposes only. When distributing the work, users must give proper credit to the authors and to Protek as the original place of publication.
7. Royalties
The parties agree that no royalties or other fees are paid to the authors for publication. To the extent legally permissible, authors waive any claim to royalties for the publication of their article.
8. Miscellaneous
- Protek publishes the article in electronic form and makes it freely available to the public, without charge to readers.
- The editors may modify the article to conform to the journal's style, including punctuation, spelling, capitalization, referencing, and usage.
Questions about copyright or licensing can be sent to protek@unkhair.ac.id. See also the Open Access Policy and Publication Ethics.

