A smart traffic light using a microcontroller based on the fuzzy logic

Desmira Desmira, Mustofa Abi Hamid, Norazhar Abu Bakar, Muhammad Nurtanto, Sunardi Sunardi


Traffic jam that is resulted from the buildup of vehicles on the road has become an important problem, which leads to an interference with drivers. The impacts it has on cost and time effectiveness may take the form of increased fuel consumption, traffic emissions, and noise. This paper offers a solution by creating a smart traffic light using a fuzzy-logic-based microcontroller for a greater adaptability of the traffic light to the dynamics of the vehicles that are to cross the intersection. The ATMega2560 microcontroller-based smart traffic light is designed to create a breakthrough in the breakdown of congestions at road junctions, thereby optimizing the real-time happenings in the road. Ultrasonic, infrared, and light sensors are used in this smart traffic light, resulting in the smart traffic light’s effectiveness in parsing jams. The four sets of sensors that are placed in four sections determine the traffic light timing process. When the length of vehicle queue reaches the sensor, a signal is sent as the microcontroller’s digital input. Ultrasonic and infrared sensors can reduce congestions at traffic lights by giving a green light time when one or all of the sensors are active so that the vehicle congestions can be relieved.


fuzzy logic; microcontroller; sensors; smart traffic lights; traffic jam;

Full Text:


DOI: http://doi.org/10.11591/ijai.v11.i3.pp809-818


  • There are currently no refbacks.

View IJAI Stats

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.