Implementation of a real-time operating system in an embedded system for temperature control

Keywords: Temperature Control, Microcontroller, PID, RTOS

Abstract

This work presents an application of Real Time Operating System (RTOS) in a embedded system of temperature control, throughout the implementation, it has been analyzed how to program a RTOS in comparison to a standard methods (bare metal) in embedded system, the complexity on the development, the application of resource management for the tasks in real time and synchronization. Besides, it has been evaluated the benefits of using a RTOS, like the simplification of the resource management, determining which task has the highest priority or the performance on the temperature control of the proposed application. The results show the efficiency of the RTOS in an embedded system for temperature control, using the FreeRTOS as base for development in a microcontroller ARM (STM32F401), making it available as a base of development for new projects in the embedded systems.

Author Biographies

Andrew Ral Sen Wong, Instituto Federal de São Paulo - Campus São Paulo

Graduando em Engenharia de Controle e Automação - IFSP/ Campus São Paulo.

Arthur Augusto de Lima Maximiano, Instituto Federal de São Paulo - Campus São Paulo

Graduando em Engenharia de Controle e Automação - IFSP/ Campus São Paulo.

Rodrigo Rech, Instituto Federal de Educação, Ciência e Tecnologia de São Paulo, Campus São Paulo.

Possui graduação em Automação Industrial pelo Instituto Federal de São Paulo (2011), Especialização em Automação Industrial na Faculdade SENAI de Tecnologia Mecatrônica (2015) e Mestrado em Automação e Controle de Processos pelo Instituto Federal de São Paulo (2018). Atualmente é professor do Instituto Federal de São Paulo. Tem experiência na área de Engenharia Elétrica, com ênfase em Automação Eletrônica de Processos Elétricos e Industriais. 

References

Bastos, C. A.; Rech, R. Estudo de métodos de controle para um sistema térmico. In: 12o Congresso de Inovação, Ciência e Tecnologia do IFSP (CONICT). São Paulo: Instituto Federal de São Paulo (IFSP), 2021. p. 1–5. Disponível em: https://ocs.ifsp.edu.br/conict/xiiconict/paper/view/7375/2538 . Acesso em: 16 set. 2024.
Bertoleti, P. Principais conceitos de RTOS para iniciantes com Arduino e FreeRTOS Brasil: Embarcados, 2019. Disponível em: https://embarcados.com.br/rtos-para-iniciantes-com-arduino-e-freertos/. Acesso em 8 dez. 2024.
Cardoso, M. O Que É Um Microcontrolador? Brasil: IEEE RAS UFCG, 2020. Disponível em: https://edu.ieee.org/br-ufcgras/o-que-e-um-microcontrolador/. Acesso em 30 jun. 2025.
Jain, R. Arduino FreeRTOS Tutorial 3- Using Semaphore and Mutex in FreeRTOS with Arduino India: Circuit Digest, 2020. Disponível em: https://circuitdigest.com/microcontroller-projects/arduino-freertos-tutorial-using-semaphore-and-mutex-in-freertos-with-arduino. Acesso em 20 out. 2024.
Leroux, P. N. RTOS versus GPOS: What is best for embedded development? Canada: QNX Software Systems Ltd, 2005.
Ogata, K. Engenharia de Controle Moderno. 5ª Edição Brasil: São Paulo, 2011.
Schneider, J.; Smalley, I. O que é um microcontrolador? EUA: IBM, 2024. Disponível em: https://www.ibm.com/br-pt/think/topics/microcontroller. Acesso em 30 jun. 2025.
TPointTech Difference between Real-Time operating system and general-purpose operating system. India: Noida, 2025. Disponível em: https://www.tpointtech.com/real-time-operating-system-vs-general-purpose-operating-system. Acesso em 20 out. 2024.
Walls, C. Embedded RTOS Design: Insights and Implementation Grã-Bretanha: Newnes, 2021.
Vaibhav. What Makes RTOS an Ideal Choice for the Next Generation Embedded Applications? India: Embitel, 2019. Disponível em: https://www.embitel.com/blog/embedded-blog/what-is-rtos-and-why-is-it-critical-for-embedded-systems/. Acesso em 29 jun. 2025.
Zhao, H. RTOS vs GPOS: A Complete Guide China: WellPCB, 2021. Disponível em: https://www.wellpcb.com/blog/comparisons/rtos-vs-gpos/#Wrapping_Up. Acesso em 20 out. 2024.
Published
2025-10-22
How to Cite
Wong, A., Maximiano, A., & Rech, R. (2025). Implementation of a real-time operating system in an embedded system for temperature control. Revista Para Graduandos/Instituto Federal De Educação, Ciência E Tecnologia De São Paulo - Campus São Paulo - REGRASP, 10(3), 119-132. https://doi.org/10.47734/regrasp.v10.03.p119-132