The existence of a sensor is very essential and is needed by a digital system to produce the right decision. But every use of a sensor will have an error and noise process that cannot be avoided, and greatly affects the accuracy of the measurement results. One of the popular sensors in the market place is the INA219 sensor made by Texas Instrument which is often used to measure dc current. But the results of the experiment show that the sensor cannot be used directly because its output is relatively unstable or fluctuates. This paper implements the Standard Kalman Filter to reduce noise on the INA219 sensor to produce more accurate dc current measurements. The experimental results show that the variance value of the KF output is much smaller than the sensor output, so that the Kalman filter algorithm has worked optimally to produce accurate DC current measurements. Besides that, Kalman Filer is also very suitable for use in DC motor control as a dynamic system that implements duty cycle (D) changes in the PWM method on its DC input voltage. The Output of Standard Kalman Filter which has been implemented with the ESP32 are influenced by the values assigned to the noise sensor covariance matrix (R) and process noise covariance (Q). With a value of R=100, for resistive loads the values of Q=0.5, while for inductive load (DC motor), the values of Q=0.05 have effectively reduced the amount of noise to enhance the accuracy and precision in using the INA219 current sensor.
| Published in | American Journal of Electrical and Computer Engineering (Volume 9, Issue 2) |
| DOI | 10.11648/j.ajece.20250902.14 |
| Page(s) | 45-55 |
| Creative Commons |
This is an Open Access article, distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution and reproduction in any medium or format, provided the original work is properly cited. |
| Copyright |
Copyright © The Author(s), 2025. Published by Science Publishing Group |
Sensor, INA219, Kalman Filter, Esp32, Accuracy, Precision
| [1] | THERESA KRUSE, THOMASGRIEBE, and KNUT GRAICHEN, "Adaptive Kalman Filtering: Measurement and Process Noise Covariance Estimation Using Kalman Smoothing," IEEE Access, vol. VOLUME 13, pp. 11863-11875, 2025. |
| [2] | Harsha Vardhana Jetti and Simona Salicone, "A Possibilistic Kalman Filter for the Reduction of the Final Measurement Uncertainty, in Presence of Unknown Systematic Errors," Metrology 2021, 1, pp. 39–51, |
| [3] | Hanyu Hou, Kezhi Pu, Jiaqi Jiang, Hao He, "A Kalman Filter-based Method for Measuring the Spacing of Tiny Parallel Capacitor Plates," Journal of Physics: Conference Series ECCST-2022, pp. 1-5, 2023. |
| [4] | Muhammad Haryo Setiawan, Alfian Ma’arif, Hamzah M. Marhoon, Abdel-Nasser Sharkawy, Abdullah Çakan, "Distance Estimation on Ultrasonic Sensor Using Kalman Filter," vol. 5, pp. 210-217, 2023. |
| [5] | Umi Pratiwi, Imam Fadli, Otto Iskandardinata. Wahyu Tri Cahyanto, Hartono, "Implementation of Kalman Filter Algorithm to optimize the Calculation of Ultrasonic sensor distance value in Hooke Law Props System," Eastern-European Journal of Enterprise Technologies ISSN 1729-3774, pp. 48-60, 2024, |
| [6] | Alfian Ma’arif, Iswanto, Aninditya Anggari Nuryono, Rio Ikhsan Alfian, "Kalman Filter for Noise Reducer on Sensor Readings," Signal and Image Processing Letters (SIMPLE), vol. 1, no. 2, 2019, |
| [7] | Thirafi Wian Anugrah, Andrian Rakhmatsyah, Aulia Arif Wardana, "Non-Line of Sight LoRa –Based Localization using RSSI-Kalman-Filter and Trilateration," International Journal On ICT (IJOICT), vol. 6, no. 2, pp. 52-63, 2020, |
| [8] | Ziya Gökalp ERSAN, Metin ZONTUL, İlkay YELMEN, "Map matching with kalman filter and location estimation," Cumhuriyet Science Journal, vol. 41, no. 1, pp. 43-48, 2020, |
| [9] | Nassima Jihani, Mohammed Nabil Kabbaj, Mohammed Benbrahim, "Kalman filter based sensor fault detection in wireless sensor network for smart irrigation," Elssevier, pp. 1-6, 2023, |
| [10] | Reski Septiana, Ibnu Roihan, Raldi A. Koestoer, "Denoising MAX6675 reading using Kalman filter and factorial design," International Journal of Electrical and Computer Engineering (IJECE), vol. 11, no. 5, p. 3818~3827, 2021, |
| [11] | Aurélien Valade, Pascal Acco, Pierre Grabolosa, and Jean-Yves Fourniols, "A Study about Kalman Filters Applied to Embedded Sensors," Sensors, pp. 1-18, 2017, |
| [12] | Yifan Huang, Meghna Thomas, Matthew Bartos and Lina Sela, "Employing Extended Kalman Filter for Faulty Sensor Detection in Water Distribution Systems," MDPI Engineering Proceeding, Eng. Proc. 2024, pp. 1-5, 2024, |
| [13] | Kurnia Brahmana and Josefan Osbert Pardede, "Improving Reading Accuracy of ACS712 Current Sensor with ATmega328 10-Bit ADC: Enhancing Resolution to 5 mA/Bit via AD620 Differential Amplifier and Kalman Filters," Journal of Techno Material Physics, vol. 05, no. 2, pp. 104-110, 2023, |
| [14] | Paulo Lopea dos Santos, T-P Azevedo PerdiCoúlis, Paula A. Salgado, Jos´e Carlos Azevedo, "Kalman Filer for Noise Reduction of Li-Ion Cell discharge current," International Federation of Automatic Control (IFAC) PapersOnLine 56-2, pp. 9582–9587, 2023, |
| [15] | Wardah Alfalaha, 1, Varlenda Sarma Qurainia, Nabilah Qurrotuayuna, "Implementation of Kalman Filter With Pi-Controller for Temperature Sensor in Fish Pond Monitoring System," Journal of Robotics, Automation, and Electronics Engineering, vol. 2, no. 2, pp. 1-10, 2024, |
| [16] | Syifaul Fuada, Trio Adiono, "Accuracy Improvement of RSSI-based Distance Localization using Unscented Kalman Filter (UKF) Algorithm for Wi-Fi Tracking Application," International Journal International Journal of Interactive Mobile Technologies (iJIM), vol. 14, pp. 225-233, 2020, |
| [17] | Kadir Eker, Yücel Çetinceviz, Erdal Şehirli, "State Estimation of Buck Converter by Using Kalman Filter," IEEE Global Energy Conference (GEC) 2022, pp. 402-407, 2022, Batman, Turkey, |
| [18] | Fahime, Farahi, Hadi Sadoghi Yazdi, "Probabilistic Kalman Filter for moving object tracking. Science direct (Signal Processing: Image Communication)," Science direct (Signal Processing: Image Communication), vol. 82, March 2020, |
| [19] | Jonghuy Choi, Yonghyeok Yoon, Taekyeong Song, Sunhee Kim, " FPGA Implementation of a Pipelined Kalman Filter for Object Tracking in Two Dimensions", International Advance Science Engineering Information Technology, vol. 14, no. 2, pp. 540-547, 2024, |
| [20] | Rico Bernando Putra and Suhartati Agoes, "Design of a Fuel Sensor Noise Reduction System Using Kalman Filter," ELKHA: Jurnal Teknik Elektro, vol. 13, no. 1, pp. 48-54, April 2021, |
APA Style
Marzuki, A., Muzakkir, T., Arief, M. S. (2025). Implementation of a Kalman Filter for Noise Reduction on the INA219 Current Sensor. American Journal of Electrical and Computer Engineering, 9(2), 45-55. https://doi.org/10.11648/j.ajece.20250902.14
ACS Style
Marzuki, A.; Muzakkir, T.; Arief, M. S. Implementation of a Kalman Filter for Noise Reduction on the INA219 Current Sensor. Am. J. Electr. Comput. Eng. 2025, 9(2), 45-55. doi: 10.11648/j.ajece.20250902.14
AMA Style
Marzuki A, Muzakkir T, Arief MS. Implementation of a Kalman Filter for Noise Reduction on the INA219 Current Sensor. Am J Electr Comput Eng. 2025;9(2):45-55. doi: 10.11648/j.ajece.20250902.14
@article{10.11648/j.ajece.20250902.14,
author = {Achmad Marzuki and Taufik Muzakkir and Muhammad Sulkhan Arief},
title = {Implementation of a Kalman Filter for Noise Reduction on the INA219 Current Sensor},
journal = {American Journal of Electrical and Computer Engineering},
volume = {9},
number = {2},
pages = {45-55},
doi = {10.11648/j.ajece.20250902.14},
url = {https://doi.org/10.11648/j.ajece.20250902.14},
eprint = {https://article.sciencepublishinggroup.com/pdf/10.11648.j.ajece.20250902.14},
abstract = {The existence of a sensor is very essential and is needed by a digital system to produce the right decision. But every use of a sensor will have an error and noise process that cannot be avoided, and greatly affects the accuracy of the measurement results. One of the popular sensors in the market place is the INA219 sensor made by Texas Instrument which is often used to measure dc current. But the results of the experiment show that the sensor cannot be used directly because its output is relatively unstable or fluctuates. This paper implements the Standard Kalman Filter to reduce noise on the INA219 sensor to produce more accurate dc current measurements. The experimental results show that the variance value of the KF output is much smaller than the sensor output, so that the Kalman filter algorithm has worked optimally to produce accurate DC current measurements. Besides that, Kalman Filer is also very suitable for use in DC motor control as a dynamic system that implements duty cycle (D) changes in the PWM method on its DC input voltage. The Output of Standard Kalman Filter which has been implemented with the ESP32 are influenced by the values assigned to the noise sensor covariance matrix (R) and process noise covariance (Q). With a value of R=100, for resistive loads the values of Q=0.5, while for inductive load (DC motor), the values of Q=0.05 have effectively reduced the amount of noise to enhance the accuracy and precision in using the INA219 current sensor.},
year = {2025}
}
TY - JOUR T1 - Implementation of a Kalman Filter for Noise Reduction on the INA219 Current Sensor AU - Achmad Marzuki AU - Taufik Muzakkir AU - Muhammad Sulkhan Arief Y1 - 2025/12/09 PY - 2025 N1 - https://doi.org/10.11648/j.ajece.20250902.14 DO - 10.11648/j.ajece.20250902.14 T2 - American Journal of Electrical and Computer Engineering JF - American Journal of Electrical and Computer Engineering JO - American Journal of Electrical and Computer Engineering SP - 45 EP - 55 PB - Science Publishing Group SN - 2640-0502 UR - https://doi.org/10.11648/j.ajece.20250902.14 AB - The existence of a sensor is very essential and is needed by a digital system to produce the right decision. But every use of a sensor will have an error and noise process that cannot be avoided, and greatly affects the accuracy of the measurement results. One of the popular sensors in the market place is the INA219 sensor made by Texas Instrument which is often used to measure dc current. But the results of the experiment show that the sensor cannot be used directly because its output is relatively unstable or fluctuates. This paper implements the Standard Kalman Filter to reduce noise on the INA219 sensor to produce more accurate dc current measurements. The experimental results show that the variance value of the KF output is much smaller than the sensor output, so that the Kalman filter algorithm has worked optimally to produce accurate DC current measurements. Besides that, Kalman Filer is also very suitable for use in DC motor control as a dynamic system that implements duty cycle (D) changes in the PWM method on its DC input voltage. The Output of Standard Kalman Filter which has been implemented with the ESP32 are influenced by the values assigned to the noise sensor covariance matrix (R) and process noise covariance (Q). With a value of R=100, for resistive loads the values of Q=0.5, while for inductive load (DC motor), the values of Q=0.05 have effectively reduced the amount of noise to enhance the accuracy and precision in using the INA219 current sensor. VL - 9 IS - 2 ER -