Comparative Simulation of Kalman Filter and Moving Average on Siemens S7-1200 PLC-Based Loadcell Sensor Readings
Article Information
Abstract
This work compared the effectiveness of the Kalman Filter and Moving Average Filter methods in minimizing noise and improving the stability of signal readings on a load-cell sensor simulation. The two filtering methods were applied to process the sensor data, to enhance both the precision and stability of the signal readings. According to the test results, the Kalman filter produced a lower average error of 0.0236, compared to 0.0244 when no filter was used, demonstrating its strong ability to reduce noise and signal fluctuations. On the other hand, the Moving Average Filter recorded a slightly higher error of 0.0238. Although it effectively smooths the signal, its performance is less reliable when dealing with higher levels of interference. Based on these findings, the Kalman Filter is considered more suitable for applications that require highly accurate and stable measurements, while the Moving Average Filter may be sufficient for environments with minimal noise.
Graphical Abstract
Keywords
Data Availability Statement
Funding
Conflicts of Interest
Ethical Approval and Consent to Participate
References
- Al-Dahiree, O. S., Tokhi, M. O., Hadi, N. H., Hmoad, N. R., Ghazilla, R. A. R., Yap, H. J., & Albaadani, E. A. (2022). Design and shape optimization of strain gauge load cell for axial force measurement for test benches. Sensors, 22(19), 7508.
[CrossRef] [Google Scholar] - Alphonsus, E. R., & Abdullah, M. O. (2016). A review on the applications of programmable logic controllers (PLCs). Renewable and Sustainable Energy Reviews, 60, 1185-1205.
[CrossRef] [Google Scholar] - Baskoro, F., Rohman, M., & Nurdiansyah, A. P. (2025). Impact of Sample Size Variation on Moving Average Filter Performance for Stability and Accuracy in Ultrasonic Sensor Measurements. TEM Journal, 14(2).
[CrossRef] [Google Scholar] - Berger, H. (2013). Automating with Simatic S7-1200: Configuration, programming and testing with Step 7 Basic. John Wiley & Sons.
[Google Scholar] - Chalifatullah, F. A., Pambudi, W. S., & Masfufiah, I. (2022). Implementasi Moving Average dan Kalman Filter pada Wireless Odometer untuk Informasi Service Kendaraan Bermotor. Jurnal Sistem Komputer dan Informatika (JSON), 4(1), 156-164.
[Google Scholar] - Fambudi, J. S., Syai’in, M., & Aditya, R. Y. (2024). Penerapan Kalman Filter Pada Pembacaan Sensor Loadcell Berbasis PLC Siemens S7-1200. Jurnal Elektronika dan Otomasi Industri, 11(3), 700-707.
[CrossRef] [Google Scholar] - Thinh, D. T., Quan, N. B. H., & Maneetien, N. (2018, November). Implementation of moving average filter on STM32F4 for vibration sensor application. In 2018 4th International Conference on Green Technology and Sustainable Development (GTSD) (pp. 627-631). IEEE.
[CrossRef] [Google Scholar] - Jwo, D. J., & Biswal, A. (2023). Implementation and performance Analysis of kalman filters with consistency validation. Mathematics, 11(3), 521.
[CrossRef] [Google Scholar] - Muller, I., de Brito, R. M., Pereira, C. E., & Brusamarello, V. (2010). Load cells in force sensing analysis--theory and a novel application. IEEE Instrumentation & Measurement Magazine, 13(1), 15-19.
[CrossRef] [Google Scholar] - Zhang, X., Liang, H., Feng, J., & Tan, H. (2022). Kalman filter based high precision temperature data processing method. Frontiers in Energy Research, 10, 832346.
[CrossRef] [Google Scholar]
Cite This Article
TY - JOUR AU - Rinanto, Noorman AU - Wuri, Adinda Putri Asrining AU - Adhitya, Ryan Yudha AU - Ismail, Harun PY - 2025 DA - 2025/12/29 TI - Comparative Simulation of Kalman Filter and Moving Average on Siemens S7-1200 PLC-Based Loadcell Sensor Readings JO - Sustainable Energy Control and Optimization T2 - Sustainable Energy Control and Optimization JF - Sustainable Energy Control and Optimization VL - 1 IS - 2 SP - 67 EP - 76 DO - 10.62762/SECO.2025.538779 UR - https://www.icck.org/article/abs/seco.2025.538779 KW - kalman filter KW - moving average filter KW - siemens S7-1200 PLC KW - load-cell KW - signal filtering AB - This work compared the effectiveness of the Kalman Filter and Moving Average Filter methods in minimizing noise and improving the stability of signal readings on a load-cell sensor simulation. The two filtering methods were applied to process the sensor data, to enhance both the precision and stability of the signal readings. According to the test results, the Kalman filter produced a lower average error of 0.0236, compared to 0.0244 when no filter was used, demonstrating its strong ability to reduce noise and signal fluctuations. On the other hand, the Moving Average Filter recorded a slightly higher error of 0.0238. Although it effectively smooths the signal, its performance is less reliable when dealing with higher levels of interference. Based on these findings, the Kalman Filter is considered more suitable for applications that require highly accurate and stable measurements, while the Moving Average Filter may be sufficient for environments with minimal noise. SN - 3068-7330 PB - Institute of Central Computation and Knowledge LA - English ER -
@article{Rinanto2025Comparativ,
author = {Noorman Rinanto and Adinda Putri Asrining Wuri and Ryan Yudha Adhitya and Harun Ismail},
title = {Comparative Simulation of Kalman Filter and Moving Average on Siemens S7-1200 PLC-Based Loadcell Sensor Readings},
journal = {Sustainable Energy Control and Optimization},
year = {2025},
volume = {1},
number = {2},
pages = {67-76},
doi = {10.62762/SECO.2025.538779},
url = {https://www.icck.org/article/abs/seco.2025.538779},
abstract = {This work compared the effectiveness of the Kalman Filter and Moving Average Filter methods in minimizing noise and improving the stability of signal readings on a load-cell sensor simulation. The two filtering methods were applied to process the sensor data, to enhance both the precision and stability of the signal readings. According to the test results, the Kalman filter produced a lower average error of 0.0236, compared to 0.0244 when no filter was used, demonstrating its strong ability to reduce noise and signal fluctuations. On the other hand, the Moving Average Filter recorded a slightly higher error of 0.0238. Although it effectively smooths the signal, its performance is less reliable when dealing with higher levels of interference. Based on these findings, the Kalman Filter is considered more suitable for applications that require highly accurate and stable measurements, while the Moving Average Filter may be sufficient for environments with minimal noise.},
keywords = {kalman filter, moving average filter, siemens S7-1200 PLC, load-cell, signal filtering},
issn = {3068-7330},
publisher = {Institute of Central Computation and Knowledge}
}
Article Metrics
Publisher's Note
ICCK stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and Permissions
Copyright © 2025 by the Author(s). Published by Institute of Central Computation and Knowledge. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
Portico