ELECTRONIC GATE WITH RTOS AND TELEGRAM

Authors

  • CAMILA DE FIGUEIREDO JARDIM UniFacens
  • JOÃO VICTOR DELAROLI CAMARGO UniFacens
  • JOSÉ LUCAS FOGAÇA AGUIAR UniFacens
  • MARCOS PEDROSO DUARTE UniFacens
  • TAMIRIS TAVARES LEMES UniFacens
  • WESLEY AMORIM DOS SANTOS UniFacens
  • Centro Universitário Facens UniFacens
  • MARCOS FÁBIO JARDINI UniFacens

Keywords:

Home Automation, Real-Time System, Safety Monitoring

Abstract

The objective of this work is to analyze and propose the implementation of an automated electronic gate using the ESP32, FreeRTOS, two limit-switch sensors, and Telegram integration. The study focuses on evaluating the system’s real-time response, improving home automation security through obstacle detection, and sending notifications to the user, ensuring efficient operation and continuous monitoring.

The system was designed using the ESP32 microcontroller running FreeRTOS, integrated with limit-switch sensors and relay-based actuation. The project architecture includes a finite-state machine (FSM) with five main states: CLOSED, OPENING, OPEN, CLOSING, and EMERGENCY_STOP. The system uses three main tasks managed by the RTOS: continuous reading of the limit switches, motor control via the relay, and bidirectional communication with the Telegram API to receive commands and send real-time status notifications.

The model also includes a safety system based on a 5-second timeout: if the gate does not reach a limit switch within this maximum time during an operation, the system automatically triggers an emergency stop, preventing mechanical damage and ensuring equipment integrity.

Published

2026-03-25

How to Cite

DE FIGUEIREDO JARDIM, CAMILA; DELAROLI CAMARGO, JOÃO VICTOR; FOGAÇA AGUIAR, JOSÉ LUCAS; PEDROSO DUARTE, MARCOS; TAVARES LEMES, TAMIRIS; AMORIM DOS SANTOS, WESLEY; CENTRO UNIVERSITÁRIO FACENS; JARDINI, MARCOS FÁBIO. ELECTRONIC GATE WITH RTOS AND TELEGRAM. Journal of Innovation and Science: research and application, [S. l.], v. 5, n. 2, 2026. Disponível em: https://joins.emnuvens.com.br/joins/article/view/1179. Acesso em: 9 may. 2026.