Development of an IoT-Enabled Rule-Based Adaptive Traffic Signal System Using Discrete Vehicle Queue-State Detection and ESP32

Authors

  • Jihan Athira Ramadhani Politeknik Caltex Riau
  • Agus Urip Ari Wibowo Politeknik Caltex Riau
  • Muhammad Diono Politeknik Caltex Riau

DOI:

https://doi.org/10.61255/decoding.v4i3.2192

Keywords:

Adaptive traffic signal, ESP32, Infrared sensor, Intelligent transportation system, Internet of things

Abstract

Purpose – This study aims to develop and evaluate an IoT-enabled, rule-based adaptive traffic signal prototype that responds to discrete vehicle queue states at a four-way intersection. The system is designed as a low-complexity alternative to fixed-time signal control by associating detected vehicle presence at predefined spatial points with different green-light durations.
Methods – The prototype was developed using ESP32 microcontrollers and eight infrared (IR) sensors, with two detection points assigned to each of four approaches. The physical prototype uses spatially separated detection points to represent different queue states. Sensor inputs are processed locally by the ESP32 and classified into predefined traffic states. The controller assigns green-light durations of 20, 25, or 30 s according to the detected state. The prototype was evaluated under five laboratory-scale traffic configurations using simulated vehicles to verify sensor detection, traffic-state classification, signal response, and IoT communication functionality.
Findings – The experimental evaluation verified that the controller responded according to the predefined queue-state rules. When neither detection point was active, the corresponding traffic state was classified as normal and a 20-s green duration was assigned. Activation of the first detection point resulted in a 25-s green duration, while activation of both detection points resulted in a 30-s green duration. The five predefined scenarios demonstrated that the controller could apply different timing levels according to the traffic-state distribution among the four approaches. Repeated-cycle testing resulted in 49 successful detection-and-control responses out of 50 cycles, corresponding to a 98% successful-cycle rate under the tested laboratory conditions.
Research Implications – The results demonstrate the functional feasibility of integrating discrete IR-based queue-state detection, local ESP32 processing, traffic-signal control, and wireless communication in a laboratory-scale prototype. However, the study does not establish a quantitative reduction in real-world delay, queue length, or congestion because the evaluation does not include field testing or a comprehensive fixed-time performance baseline.
Originality – The contribution of this study lies in the implementation of a low-complexity two-point queue-state detection architecture that translates spatial vehicle-presence information into rule-based green-time selection on a four-approach prototype. The architecture provides a basis for subsequent development involving repeated quantitative experiments, additional detection zones, improved traffic-state estimation, and field-based evaluation.

Abstract views: 52 , PDF downloads: 46

Downloads

Download data is not yet available.

References

Indonesia, UU No. 22 Tahun 2009 tentang Lalu Lintas dan Angkutan Jalan

Alfith, A., & Kartiria, K. (2019). Pengembangan perancangan smart traffic light berbasis ldr sensor dan timer delay system. Jurnal Teknik Elektro, 8(1), 35-39.

Aria and R. Faizal, 2017, “Sistem Lalu Lintas Terpadu Embedded Traffic System,” Telekontran, vol. 5, no. 2, pp. 83–93.

Bagus, I. (2022). Pengembangan smart traffic light berbasis iot dengan mobile backend as a service sebagai wujud smart city bidang transportasi. Jurnal Portal Data, 2(10).

Hozanna, G., Nur, D., & Kasim, K. (2021, October). Sistem monitoring dan controlling lampu lalu lintas berbasis wireless sensor network menggunakan lora. In Seminar Nasional Teknik Elektro dan Informatika (SNTEI) (pp. 223-228).

Intan, J., & Gunawan, I. R. (2019). Traffic light automation berbasis arduino menggunakan rf transceiver untuk kendaraan prioritas. Seminastika, 2, 122-29.

Jatmika, S., & Andiko, I. (2014). Simulasi pengaturan lampu lalu lintas berdasarkan data image processing kepadatan kendaraan berbasis mikrokontroler atmega16. Jurnal Ilmiah Teknologi dan Informasi ASIA, 8(2).

Li, J., Peng, L., Hou, K., Tian, Y., Ma, Y., Xu, S., & Qiu, T. Z. (2023). Adaptive signal control and coordination for urban traffic control in a connected vehicle environment: A review. Digital Transportation and Safety, 2(2), 89–111. https://doi.org/10.48130/DTS-2023-0008

Li, Y., & Peng, L. (2024). Elevating adaptive traffic signal control in semi-autonomous traffic dynamics by using connected and automated vehicles as probes. IET Intelligent Transport Systems, 18(6), 1016–1030. https://doi.org/10.1049/itr2.12483

Agrahari, A., Dhabu, M. M., Deshpande, P. S., Tiwari, A., Baig, M. A., & Sawarkar, A. D. (2024). Artificial intelligence-based adaptive traffic signal control system: A comprehensive review. Electronics, 13(19), 3875. https://doi.org/10.3390/electronics13193875

Cai, C., & Wei, M. (2024). Adaptive urban traffic signal control based on enhanced deep reinforcement learning. Scientific Reports, 14, 14116. https://doi.org/10.1038/s41598-024-64885-w

Yang, X., Yu, Y., Feng, Y., & Ochieng, W. Y. (2024). Improving the urban transport system resilience through adaptive traffic signal control enabled by decentralised multiagent reinforcement learning. Journal of Advanced Transportation, 2024, 3035753. https://doi.org/10.1155/2024/3035753

Fusing crowdsourced data to an adaptive wireless traffic signal control system architecture. (2024). Internet of Things, 26, 101169. https://doi.org/10.1016/j.iot.2024.101169

Traffic Signal Coordination Under Stochastic Demands and Turning Ratios Considering Spatial-Temporal Dependencies. (2024). IEEE Transactions on Intelligent Transportation Systems, 25(11), 18236–18251. https://doi.org/10.1109/TITS.2024.3453495

Downloads

Published

2026-09-10

How to Cite

Jihan Athira Ramadhani, Agus Urip Ari Wibowo, & Muhammad Diono. (2026). Development of an IoT-Enabled Rule-Based Adaptive Traffic Signal System Using Discrete Vehicle Queue-State Detection and ESP32 . Journal of Deep Learning, Computer Vision and Digital Image Processing, 4(3), 226–243. https://doi.org/10.61255/decoding.v4i3.2192

Issue

Section

Articles