bit-Tech
Vol. 8 No. 3 (2026): bit-Tech

IoT-Based Automatic Traffic Light Prototype Using ESP32-CAM

Antarina, Selvi (Unknown)
Gunanto, Sigit (Unknown)



Article Info

Publish Date
10 Apr 2026

Abstract

Traffic congestion at signalized intersections remains a persistent challenge due to the dominance of fixed-time traffic lights that cannot respond to short-term variations in vehicle demand. Although recent advances in computer vision and Internet of Things (IoT) technologies enable adaptive traffic control, many existing solutions depend on costly hardware platforms or simulation-based validation, limiting their applicability in resource-constrained contexts. This study proposes and evaluates a low-cost AIoT-based automatic traffic light prototype that integrates visual sensing, real-time vehicle detection, and adaptive signal control within an end-to-end operational framework. The system utilizes an ESP32-CAM as a vision sensor, a server-side You Only Look Once (YOLO) model for vehicle detection, and an ESP32 microcontroller for traffic light actuation, with communication implemented via WiFi using the HTTP protocol. Experimental validation is conducted under controlled prototype scenarios with traffic densities ranging from zero to three vehicles per lane to examine feasibility under hardware and network constraints. The results indicate reliable vehicle counting performance, achieving 100% accuracy for low to moderate densities and 93.3% accuracy at higher prototype density levels. Compared with a fixed-time strategy, the adaptive mechanism dynamically adjusts green light durations, reducing idle green time under low demand and increasing service time as vehicle density rises. The findings provide empirical insights into the feasibility and performance limits of low-cost vision-based adaptive traffic control systems.

Copyrights © 2026






Journal Info

Abbrev

bt

Publisher

Subject

Computer Science & IT

Description

The bit-Tech journal was developed with the aim of accommodating the scientific work of Lecturers and Students, both the results of scientific papers and research in the form of literature study results. It is hoped that this journal will increase the knowledge and exchange of scientific ...