TECHNICAL AND ECONOMIC FEASIBILITY STUDY, IN A SIMULATION ENVIRONMENT, FOR THE REPLACEMENT OF PROGRAMMABLE LOGIC CONTROLLERS IN THE AUTOMATION OF INDUSTRIAL HEATING, VENTILATION, AND AIR CONDITIONING SYSTEMS
Abstract
This study evaluates, in a simulation environment, the technical and economic feasibility of replacing Programmable Logic Controllers (PLCs) with 32-bit microcontrollers, specifically the ESP32, in the automation of small and medium-sized industrial Heating, Ventilation, and Air Conditioning (HVAC) systems. The hypothesis investigated was that this replacement may be feasible, provided that isolation and protection circuits against transients and electromagnetic noise are applied. This is an applied, exploratory, quantitative study conducted through computer simulation, using custom chips developed to reproduce, in the simulation environment, the functional behavior of the SHT31 sensor and the ULN2003 driver, and using the two cores of the ESP32 to separate the control loop from network tasks. Eight functional firmware test scenarios were executed: steady-state operation with a hysteresis band, interlock against successive starts, short-cycle rejection, sensor fail-safe behavior, sequential actuator startup, network resilience, equipment redundancy, and unconditional shutdowns (phase loss and emergency stop). All of them showed behavior compatible with the criteria defined for the simulation. On the economic side, the comparative survey indicated an estimated reduction of 35% to 46% in the acquisition cost of the components considered, relative to a reference PLC. The results, limited to the simulation environment and without validation in a physical prototype, provide preliminary evidence of functional feasibility and potential economic advantage, which justifies continuing the research toward bench validation.
Author Biographies
Undergraduate student in Electrical Engineering at the University of Araraquara (UNIARA), São Paulo, Brazil.
PhD student in Electrical Engineering at the São Carlos School of Engineering (EESC), University of São Paulo (USP), since 2024. Master in Electrical Engineering from EESC/USP and graduated in Mechatronics Engineering from the Federal University of Uberlândia (UFU) in 2022. Researcher in Instrumentation and Digital Signal Processing, focusing on Ocular Bioengineering projects. Experience in Analog Electronics, Digital Electronics, Instrumentation and Microcontrollers.
References
BANKS, Andrew; GUPTA, Rahul (ed.). MQTT version 3.1.1: OASIS standard. [S. l.]: OASIS, 2014. Disponível em: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html Acesso em: 1 out. 2026.
ESPRESSIF SYSTEMS. ESP32 series datasheet: version 5.3. Shanghai: Espressif Systems, [2025?]. Disponível em: https://documentation.espressif.com/esp32_datasheet_en.pdf Acesso em: 1 out. 2026.
ESPRESSIF SYSTEMS. ESP-IDF programming guide: FreeRTOS (IDF). Shanghai: Espressif Systems, [2026]. Disponível em: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/freertos_idf.html Acesso em: 3 out. 2026.
INTERNATIONAL ELECTROTECHNICAL COMMISSION. IEC 61508-1: functional safety of electrical/electronic/programmable electronic safety-related systems: part 1: general requirements. 2. ed. Geneva: IEC, 2010.
INTERNATIONAL ELECTROTECHNICAL COMMISSION. IEC 61131-2: industrial-process measurement and control: programmable controllers: part 2: equipment requirements and tests. 4. ed. Geneva: IEC, 2017.
ISLAM, Fabliha Bushra; NWAKANMA, Cosmas Ifeanyi; KIM, Dong-Seong; LEE, Jae-Min. IoT-based HVAC monitoring system for smart factory. In: INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY CONVERGENCE (ICTC), 2020, Jeju Island. Anais [...]. Jeju Island: IEEE, 2020. p. 701-704. DOI: https://doi.org/10.1109/ICTC49870.2020.9289249
LUGLI, Alexandre Baratella; SANTOS, Max Mauro Dias. Redes industriais: características, padrões e aplicações. São Paulo: Érica, 2014.
MCQUISTON, Faye C.; PARKER, Jerald D.; SPITLER, Jeffrey D. Heating, ventilating, and air conditioning: analysis and design. 6. ed. Hoboken: John Wiley & Sons, 2005.
MONTEBELLER, Sidney José. Estudo sobre o emprego de dispositivos sem fios – wireless na automação do ar condicionado e de outros sistemas prediais. 2006. Dissertação (Mestrado em Engenharia Elétrica) – Escola Politécnica, Universidade de São Paulo, São Paulo, 2006.
PETRUZELLA, Frank D. Controladores lógicos programáveis. 4. ed. Porto Alegre: AMGH, 2014.
SENSIRION. Datasheet SHT3x-DIS: humidity and temperature sensor. Version 7. Stäfa: Sensirion, 2022. Disponível em: https://sensirion.com/media/documents/213E6A3B/63A5A569/Datasheet_SHT3x_DIS.pdf Acesso em: 5 out. 2026.
TEXAS INSTRUMENTS. ULN200x, ULQ200x high-voltage, high-current Darlington transistor arrays: SLRS027T. Dallas: Texas Instruments, 2025. Disponível em: https://www.ti.com/lit/ds/symlink/uln2003a.pdf Acesso em: 1 out. 2026.
WOKWI. Wokwi docs: ESP32 simulation. [S. l.]: Wokwi, [2026]. Disponível em: https://docs.wokwi.com/guides/esp32 Acesso em: 5 out. 2026.
ZANCAN, Marcos Daniel. Controladores programáveis. 3. ed. Santa Maria: Universidade Federal de Santa Maria, Colégio Técnico Industrial de Santa Maria, 2011.
