Development of Traffic Light Control System Using Arduino Uno
Development of Traffic Light Control System Using Arduino Uno
Front
Multidisciplinary International Journal (BEAM) Cover
Volume 1, Issue 2, November 2022, Pages 55-58
Abstract
Everything is becoming smarter in the age of smart technology, and a smart transportation system is one area that will
significantly impact how we live. This paper describes an Arduino Uno-based traffic light control system. The objective of
this system is to offer advanced coordination and control to ensure that traffic flows as smoothly and safely as feasible. In
this project, LED lights are used as indicators, and a microcontroller is used to automatically change the signal at a
predetermined range with the daily technological breakthroughs. Instead of a timer, this traffic light management system
will operate using a sensor, and Infrared (IR) sensors.
prepare for a short stop, and the red signal prohibits any Range of obstacles: 2 cm to 10 cm. 35-degree detection
traffic from proceeding (Isa et al., 2014). angle output of just one bit. Size: 1.5 x 3.1 cm (L x W)
Nowadays, many countries suffer from traffic
congestion problems that affect cities' transportation c) LED traffic lights
systems and cause serious dilemmas. The rapid increase in LED Traffic Lights Signal Module 5v RED, Yellow &
automobiles and the constantly rising number of road users Green.Size: 56 * 21 * 11mm Color: red, yellow, green
are not accompanied by promoted infrastructures with LED: 8mm * 3 Brightness Normal brightness, Voltage:
sufficient resources. Despite replacing traffic officers and 5V. Input: Digital signal output, Interface is common
flagmen with automatic traffic systems, the optimization of cathode red, yellow, green control.
the heavy traffic jam is still a significant issue, especially
with multiple junction nodes (Sinhmar, 2012). Partial d) Breadboard jumper wire cable
solutions were offered by constructing new roads, Breadboard Jumper Wire Cable (2.54mm). The
implementing flyovers and bypass roads, creating rings, function of the jumper wire was to link two places in the
and performing road rehabilitation. circuit without soldering. The size of Pin/Hole is 2.54mm
The IR sensors are employed in numerous traffic
systems (Kham & Nwe, 2014; Isa et al., 2014; Sinhmar, e) Arduino software (IDE)
2012; Geetha, Viswanadha & Kavitha, 2014 and Kavya & The Arduino Integrated Development Environment or
Saranya, 2015). The IR transmitter and the IR receiver are Arduino Software (IDE) contains a text editor for writing
mounted on either side of the road. When an automobile code, a message area, a text console, a toolbar with buttons
passes on the road between the IR sensors, the system is for standard functions, and a series of menus. It connects
activated, and the car counter is incremented. The collected to the Arduino hardware to upload programs and
information about the traffic density of the different roads communicate with them.
of a junction is analyzed to dynamically modify the delays
of green lights at the lane with significant traffic volume. Since it is more practical for this project to be
The whole system could be controlled by a PIC successful, as shown in Fig. 1, the sensor that is utilized is
microcontroller (Hafizullah, Ahamed & Arefin, 2013; the Infrared (IR) sensor as a motion detection sensor. When
Okpara et al., 2020; Isa et al., 2014 and Sinhmar, 2012) or an object is spotted at the sensor, the system will cause the
PLC (Dakhole & Moon, 2013; Jadhav, Madhuri & Ketan, traffic signal to change. If an IR sensor detects an
2014 and Ilyas & Zokarkar, 2016). automobile, one traffic light will change from red to green
This research uses the Infrared Sensor(IR Sensor) as a while the other changes from green to yellow to red. The
motion sensor detector since it is more convenient for this other IR sensor and a traffic light will function oppositely.
project to be successful. It detects an object at the sensor,
and the system will trigger a change in the traffic light
when it is detected. If the IR Sensor detects a car, the traffic
light will change from red to green as the other traffic light
will change from green to yellow to red, and it will work
vice-versa with the other IR Sensor and traffic light.
a) ATmega38 microcontroller
The ATmega328 is the basis for a microcontroller
board known as the Arduino Uno (datasheet). In addition
to a 16 MHz ceramic resonator, it has a USB connector, a
power jack, an ICSP header, six analogue inputs, and
fourteen digital input/output pins, six of which can be used
as PWM outputs, and a reset button. You only need to
connect a USB cable, an AC-to-DC adapter, or a battery to
operate; it comes with everything needed to support the
microcontroller. Fig. 1. The circuit of the proposed design
b) IR infrared obstacle avoidance sensor When our sensor picks up an object, the system alters
IR Infrared Obstacle Avoidance Sensor powered at the light signals. The other sensor will be able to detect an
3.3V or 5V DC input power. Green (Object Detection object on our second sensor as the lights change. This small
Indicators) and Red (LED Indicators) (Power Indicators) project will provide the chance to research and demonstrate
57 Chandramohan et al. / Borneo Engineering & Advanced Multidisciplinary International Journal
how System Control Closed-Loop functions in real life. 3. Result and Discussion
The benefit of an Arduino Uno traffic light is that it can
detect an automobile and turn green when it does, as shown As shown in Fig. 4 (a) and (b), the board's green
in Fig. 2. Traffic congestion may be lessened as a result. indication light turns on when the module notices a
Additionally, it contributes to lowering traffic accidents blockage in the path of the output signal while the output
and enhancing road safety for all users. port continues to emit low-level signals continuously.
When the potentiometer is turned counterclockwise, the
detection distance is decreased. While turning the
potentiometer clockwise increases the detection distance.
The red indicator light is on the board level when the power
is turned on. Since active Infrared (IR) sensors can only
detect reflected light, the target detection range's
reflectivity form is essential. The minimum and maximum
detection ranges are for little things from a small area and
a wide area from a grand. The summarization of the overall
output is shown in Table 1.
Fig. 2. The output pins from Arduino that have been used SENSOR CAR DETECTED LED OUTPUT
Sensor 1 Yes Green
Sensor 2 No Red
Sensor 1 No Red
Sensor 2 Yes Green
The sensor module's three-pin interface, marked OUT,
GND, and VCC OUT, is a digital output pin that should be
connected to the microcontroller for any digital input.
When an object is spotted, it will output logic LOW. GND
is where the controller's ground or 0V is connected.
Connect VCC to either +3.3V or +5V, which is the +ve
supply. An IR sensor produces and detects infrared light to
locate specific items or obstructions inside its field of view.
In this instance, the IR sensor will identify the presence of
moving traffic.