Simulation of N-Way Traffic Lights Using Arduino Uno Environment
Simulation of N-Way Traffic Lights Using Arduino Uno Environment
Chibuike .E.
Madubuike
Department of
Computer Science,
Akanu Ibiam Federal
Polytechnic, Unwana,
Ebonyi State, Nigeria
Akaninyene Udo
Ntuen
Department of
Computer Science,
Akanu Ibiam Federal
Polytechnic
Unwana,Ebonyi State,
Nigeria
Abstract: Traffic is a major challenge in many cities in the world today. In many instances traffic flow is dictated by certain
devices such as traffic lights. Traffic lights have become an integral part of human day-to-day life. This work focuses on
the simulation of traffic light system with a microcontroller programmed on the Arduino Uno board. This system was
designed to handle road traffic control as well as assisting pedestrians to move freely without auto crashes. The traffic lights
simulation system was implemented using an Arduino Uno microprocessor connected to electronic circuit board. The
programming platform for the simulation of the traffic light system was done using C++ programming language while the
electronic circuit used was designed with some semiconductor components such as transistors, microprocessor, resistors
and light emitting diodes (LEDs) to achieve optimal performance of the traffic lights.
Keywords: Embedded System, Light Emitting Diode (LED), Microcontroller, Simulation, Traffic Light.
1.0 INTRODUCTION
The tremendous increase of the number of vehicles on our
roads and the over-whelming array of pedestrians on road
side ways call for great concern. The numerous avoidable
accidents at intersections be it T-junction or 4-way-junction
is acknowledged not only by government but also other
users of the roads. This situation calls for remedy or
assistance of some sort not only to save lives but also to
ensure orderliness in our everyday life. Electronic devices,
which can do services round the clock, throughout the
whole season of the year, are call to play this indispensable
role.
www.ijcat.com
543
2.0
REVIEW
LITERATURE
OF
RELATED
www.ijcat.com
544
.
Fig.1: Block Diagram of a microcontroller
Source: [12]
3.0
METHODOLOGY
www.ijcat.com
545
The output terminal can either be the source or the sink current.
The maximum sink or source current is about 40MA. The high
output is about 0.5v below Vcc while the low output voltage is
about 0.1V about ground for load current below 25mA. The
positive voltage supply terminal can take any voltage between
+5v and +18v.
4.1
Input Design
The Arduino software consists of two parts: Arduino BootLoader and Arduino IDE. Arduino Boot-Loader is a piece of
code residing inside the microcontroller which make the
controller special and gives it the power of integration to the
Arduino IDE and the Arduino board. The Arduino IDE has a
compiler, serial monitor etc. Arduino language is a variant of
C++ at least it looks like C++ Programs.
Apart from the basic Arduino, other tools that were used
include:
www.ijcat.com
546
Fig.3: The schematic design of the Arduino uno microcontroller traffic system
4.2
www.ijcat.com
547
4.3
1
=
ON
0
=
OFF
Key: R = Red, Y = Yellow, G = Green, N = North, E = East,
W = West
www.ijcat.com
548
5.0 CONCLUSION
This work showed the practical application of simulation of
traffic lights to improve traffic conditions. Traffic is a
challenge in many cities of the world. Traffic flow is dictated
by certain devices such as traffic lights. These traffic lights
signal when each lane is able to pass through the intersection.
The purpose of this work was to find a way to make
intersections to be easily controlled with traffic lights. This
goal was accomplished through the simulation of traffic lights
using Arduino Uno environment and programmed with C++
www.ijcat.com
549
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
http://maxembedded.com/2011/06/mcu-vs-mpu/
[13]
https://www.arduino.cc/en/Reference/Board
www.ijcat.com
550