Reducing Temperature Reading Errors in Embedded Systems
Öz
Modern embedded systems form the basis for applications that enable accurate and reliable acquisition of environmental data. In particular, the processing of analog signals such as temperature in microcontroller-based systems plays a critical role in real-time decision-making processes. Temperature measurement is not only a fundamental parameter in environmental monitoring, but also a key variable in a wide range of applications including industrial automation, smart buildings, energy management systems, medical devices, food storage and safety, and climate control systems. Accurate temperature sensing is essential for ensuring system efficiency, safety, and reliability; even small measurement errors can lead to significant performance degradation, energy losses, or unsafe operating conditions in sensitive applications. However, these analog signals produced by sensors are often affected by factors such as environmental noise, electromagnetic interference, and sensor accuracy, which directly impact the system's performance. Applying digital filtering techniques to such noisy measurements enhances signal stability, enabling more reliable and repeatable results. In this context, the Exponential Moving Average (EMA) filter, which has low computational costs, and the Kalman filter, which is more sophisticated and accuracy-focused, are two powerful approaches that are frequently compared. The EMA filter is a simple and fast technique that filters past data using exponential weights. Due to this feature, it is widely preferred in microcontroller systems with limited resources. On the other hand, the Kalman filter provides a statistical estimate by considering both the current measurement and the previous state of the system, making it superior in terms of accuracy. However, the Kalman filter is computationally more expensive due to its requirement for matrix operations and a system model. This study aims to experimentally compare the performance of EMA and Kalman filters on a microcontroller-based ambient temperature measurement system. In the experimental application conducted using an LM35 temperature sensor and an STM32F4 microcontroller platform, both filters were run on the same analog data set; the results were evaluated in terms of filtering accuracy, response time, and computational load. Furthermore, this study contributes to simplifying and improving temperature measurement in embedded systems by demonstrating how appropriate filtering techniques can effectively reduce noise and enhance measurement quality. The findings provide practical guidance for selecting the most suitable filtering method in different application scenarios, ultimately facilitating more accurate, stable, and efficient temperature monitoring solutions.
Anahtar Kelimeler
Kaynakça
- [1] Çelik M, Erfidan T. Microcontroller-Based Kalman Filter Measurement of Ambient Temperature. Kocaeli J Sci Eng. 2025;8(1):71-79. Available from: https://doi.org/10.34088/kojose.1528174.
- [2] Fikri M, Herdjunanto S, Cahyadi A. On the performance similarity between exponential moving average and discrete linear Kalman filter. In: Proc Asia Pacific Conf Res Ind and Syst Eng (APCoRISE); 2019. Available from: https://doi.org/10.1109/APCoRISE46197.2019.9318810.
- [3] Ojike O, Mbajiorgu C, Anoliefo E, Okonkwo W. Design and analysis of a multipoint temperature datalogger. Nigerian J Technol. 2016;35(2):458-464. Available from: https://doi.org/10.4314/njt.v35i2.30.
- [4] Wibawa IMS, Putra IKGD. Design of remote temperature monitoring system tool using vhf waves based on vfc lm331. Int Res J Eng IT Sci Res. 2023;9(4):148-156. Available from: https://doi.org/10.21744/irjeis.v9n4.2348.
- [5] Saleh SB, Mazlan S, Hamzah NIB, Karim AZZBA, Zainal MS, Hamzah SA, et al. Smart home security access system using field programmable gate arrays. Indones J Elec Eng Comp Sci. 2018;11(1):152-160. Available from: https://doi.org/10.11591/ijeecs.v11.i1.pp152-160.
- [6] Santoso J, Sugriwan I, Fahrudin AE, Susilo TB, Soesanto O, Musthafa H, et al. Desain dan Pabrikasi Alat Ukur Suhu ve Kelembaban Berbasis ATmega 16A-PU. J Fis Flux. 2022;19(1):83-9.
- [7] Nahmias S, Cheng Y. Production and operations analysis. 6th ed. New York: McGraw-Hill; 2005.
- [8] Wang S, Chen W, Tsui KL. Bayesian validation of computer models. Technometrics. 2009;51(4):439-451. doi:10.1198/TECH.2009.07011.
Ayrıntılar
Birincil Dil
İngilizce
Konular
Kontrol Mühendisliği, Mekatronik ve Robotik (Diğer)
Bölüm
Araştırma Makalesi
Yayımlanma Tarihi
12 Haziran 2026
Gönderilme Tarihi
29 Haziran 2025
Kabul Tarihi
7 Nisan 2026
Yayımlandığı Sayı
Yıl 2026 Cilt: 2026 Sayı: 17