Simulation For Iot Based Smart Traffic Control System For Emergency Vehicles
Simulation For Iot Based Smart Traffic Control System For Emergency Vehicles
PROJECT REPORT
Submitted by
DHARUNKUMAR S (1117210003)
RAHUL R KUMAR (1117210005)
Project Work
BONAFIDE CERTIFICATE
SIGNATURE
Head of the department Supervisor
Mr.T.GOPALAKRISHNAN Dr.VIJULAGRACE.K.S
Associate Professor Associate Professor
Department of Electronics and Department of Electronics and
Communication Engineering Communication Engineering
Certified that the candidates were examined by us in the project work Viva-Voice
examination held
On...........................
DECLARATION
We affirm that the project work title “SIMULATION OF IOT BASED SMART
TRAFFIC CONTROL FOR EMERGENCY VEHICLES” being submitted in partial
fulfilment for the award of Bachelor of Engineering (B.E) is the original work carried out by
us. It has not formed the part of any project work submitted for the award of any degree or
diploma, either in this or any other university.
NAME REGISTER NO
S.DHARUNKUMAR 1117210003
RAHUL R KUMAR 1117210005
The process and final outcome of this project required a lot of guidance and
assistance from many people and we are fortunate to have to get this all among the
completion of our project work. Whatever we have done is only due to such guidance and
assistance and we would not forget to thank them.
We would like to express our special thanks of gratitude to our project guide Dr.
VIJULA GRACE K.S, Associate Professor for her guidance throughout the project on the
topic “SIMULATION OF IOT BASED SMART TRAFFIC CONTROL FOR
EMERGENCY VEHICLES”.
Finally, we would also like to thank our parents and friends who help lot in
finalizing this project within a limited time frame.
ABSTRACT
Nowadays the road accidents in modern urban areas are increased to uncertain level.The
Loss of human life due to accident is to be avoided. Traffic congestion and tidal flow are
Major facts that cause delay to ambulance. To bar the loss of human life due to accidents, a
Scheme called Density based Traffic control and Smart Ambulance is introduced. The main
Theme behind this scheme is to provide a smooth flow for the emergency vehicles like
Ambulance to reach the hospitals in time and thus minimizing the delay caused by traffic
Congestion.
The idea behind this scheme is to control automatically the traffic lights in the path of the
ambulance. When an ambulance approaches the junction, it will communicate the traffic
controller in the junction to turn on the green light. And also a sensor network is
implemented which is used to detect the traffic density. With automatic traffic signal control
system based on the traffic density in the route, the manual effort of policeman on the part of
traffic management is saved
LIST OF CONTENT
1 INTRODUCTION 9
1.1 OBJECTIVES 10
2 ITERATURE SURVEY 11
3 EXISTING MODEL 13
4 IOT BASED SMART TRAFFIC 17
CONTROL SYSTEM FOR EMERGENCY VEHICLES
4.1 INTRODUCTION 17
4.2 PROPOSED MODEL BLOCK DIAGRAM 19
4.3 WORKING OF PROPOSED MODEL 21
4.4 IR SENSOR AND LIGHT EMITTING DIODE 22
4.5 PROCESSING UNIT 23
4.6 GSM/GPRS TRANSMITTER AND RECEIVER 28
5 DESIGN FOR SIMULATION 35
5.1 INTRODUCTION 35
5.2 PROTEUS SOFTWARE INSTALLATION AND SETUP 36
5.3 CIRCUIT CONNECTIONS 37
5.4 SIMULATION PROCESS 39
5.5 RESULT 40
6 CONCLUSION 41
7 REFERENCES 42
LIST OF FIGURES
INTRODUCTION
Traffic congestion costs 1.47 lakh crore per annum for India according a study in 2018 by
Boston Consulting Group (BCG). Traffic issues cause so much inconvenience and frustration
and hence need to be addressed. India is one of the fastest growing economies in the world.
The average income of Indians is growing and thereby the number of privately
owned vehicles is rising. Though public transport is widely available in India, still it is not
sufficient for the population of India. Especially in Metro cities, often public transport
services are crowded. So, to travel peacefully people are opting for commuting in their own
vehicles. And as a result more vehicles are coming on roads.
Therefore, increasing the traffic level in different areas. Road congestion is the main cause
for slower speed, longer waiting time, accidents and frustration. Traffic congestion and tidal
flow are major facts that cause delay to ambulance. To bar the loss of human life due to
accidents, a system called IOT based smart traffic control system is introduced.
The main theme behind this system is to provide a smooth flow for the emergency vehicles
like ambulance to reach the hospitals in time and thus minimizing the delay caused by traffic
congestion using
1.1 OBJECTIVES
This project aims at reducing traffic congestion and unwanted long time delay during
the traffic light switch over’s especially when the traffic is very low.
To be implemented in places nearing the junctions where the traffic signals are
To track the traffic density in each road and accordingly adjusts the time for
The higher number of vehicles (high traffic density) on the road will be
LITERATURE SURVEY
There are many people who were doing project based on “IOT based Smart traffic control
system for Emergency vehicles” let’s see few literature survey about smart traffic control
system.
Iwin Thanakumar Joseph S et al.,(2018)[10]. Another method for IOT based Traffic signaling
system using ultrasonic sensors has been developed. where ultrasonic sensors deployed at
every 50 meters of road to capture the traffic density and communicate to Arduino to control
the traffic signals accordingly, density information is transmitted via Wi-Fi to Raspberry Pi 3
where analysis made on a heavy congestion and less traffic with date and time and the same
communicated to the web page of cloud which can be viewed by the Traffic police authorities
for further analysis. This approach requires a huge number of sensors distributed closely
which is not a feasible solution and managing such number of sensors is not quite easy, also
using ultrasonic sensors, which measure the distance mainly, for detecting objects is a waste
of resources. To reduce the risk of traffic congestion in emergencies, especially ambulances
Mohan Raj A et al., (2020) [17] The Recent method “Density Based Traffic Control Using
IOT” is based on Image processing technique. A camera is placed on the top of the signal.
It captures the vehicles footage and these footages will be digitally image processed and
convert the real time image to Binary image and with this binary image the density of the
vehicles are calculated. Though the process is somewhat new and good but the PPI of camera
will be small. So, the camera cannot capture a large number of vehicles this will lead to
improper clearance of the signal.
M. A.A. Parkhi et al., (2016) [1] The model takes a shot at the guideline of changing the
deferral of Traffic signals dependent on the number of vehicles going through an appointed
segment of the street. There are six sensors put at four sides of a three-way street which
checks the number of vehicles going by the region secured by the sensors. Here we are
utilizing IR sensors supplanting the traffic control framework to plan a thickness-based traffic
flag framework. IR sensor contains an IR transmitter IR collector (photodiode) in itself. This
IR transmitter and IR beneficiary will be mounted on similar sides of the street at a
specific separation. As the vehicle goes through these IR sensors, the IR sensor will recognize
the vehicle and will send the data to the microcontroller. The microcontroller will check the
number of vehicles, and give the sparkling time to LED by the thickness of vehicles. The path
or street which has a higher thickness, at that point the LED will sparkle for higher time than
normal or the other way around. The traffic lights are at first running at a fixed deferral of
1000 milliseconds, which thus creates a postponement of 30000 milliseconds in the whole
procedure. This whole implanted framework is put at that intersection. The microcontroller is
interfaced with LEDs and IR sensors. The all-out number of IR sensors required is 6 and
LED are 6. In this manner, these are associated with any two ports of the Arduino.IR sensor
module comprises of an IR transmitter and an IR beneficiary. At the point when the sensor
finds any article vehicles the, the comparator yield goes low else it gives high voltage, for
example, +5v or 3.3v.
CHAPTER 3
Existing Model
Many types of research try to find solutions for transportation and traffic management
using different approaches using sensors, Bluetooth module, Artificial intelligence
techniques, Wireless sensor networks and Digital image processing.
Drawbacks:
The range of Bluetooth will be short (10m). So the controller should be nearer to the
Bluetooth module to control the traffic lights.
detect the emergency vehicles. The RSU collects the siren signals from the acoustic sensors
and forwards them to the frequency measuring controller. The controller detects the
emergency vehicle by its siren frequencies and computes the average of measured
frequencies. The frequency measuring controller sends the alert signal to the traffic signal
controller, if the frequency is between the range of yelp or wail. The traffic signal controller
stops the fixed sequence and light length algorithm and executes the emergency vehicle
Control Module. The controller executes their proposed algorithm and sends its decision to
traffic lights. After the passage of an emergency vehicle (ambulance), the system resumes its
normal operation.
Drawbacks:
The Acoustic sensor is used to detect the ambulance siren sound this will detect only if
the ambulance is nearer to the traffic signal. so the transmitting frequency of the sensor from
the ambulance to the microcontroller will make some delay for the quick movement of the
ambulance.
Traffic control with Image processing:
Their focus is to monitor traffic density through camera grabbing images in real-time, then
comparing it with the reference image. The information is communicated to the server and
can be remotely monitored and controlled. In addition to that for emergency situation they
include a RF transmitter in the ambulance and receiver in the traffic light and will implement
this system for traffic controlling in a 4 lane junction. Their system also considers pedestrian
trying to cross the road during green signal it will turn on an alarm and warn the pedestrian
and traffic police. This system is also updated with the idea that, when a vehicle trying to
move even during red signal it will turn on an alarm to warn the driver of the vehicle.
Drawback:
The PPI of Camera is small. So, that this will lead to improper clearance of vehicle.
CHAPTER 4
4.1 INTRODUCTION
The concept of Internet of Things started with things with identity communication
devices. The devices could be tracked, controlled or monitored using remote computers
connected through Internet. It Extends the use of Internet providing the communication, and
thus inter-network of the devices and physical objects, or ‘Things’. The two prominent words
are “internet” and “things”.
Internet means a vast global network of connected servers, computers, tablets and mobiles
using the internationally used protocols and connecting systems. Internet enables sending,
receiving, or communicating of information.In dictionary the meaning of ‘Thing’ is a term
used to reference to a physical object, an action or idea, situation or activity, in case when we
do not wish to be precise. , in general consists of inter-network of the devices and physical
objects, number of objects can gather the data at remote locations and communicate to units
managing, acquiring, organizing and analyzing the data in the processes and services. It
provides a vision where things (wearable, watch, alarm clock, home devices, surrounding
objects with) become smart and behave alive through sensing, computing and communicating
by embedded small devices which interact with remote objects or persons through
connectivity.
The scalable and robust nature of Cloud computing is allowing developers to create and host
their applications on it. Cloud acts as a perfect partner, as it acts as a platform where all the
sensor data can be stored and accessed from remote locations. These factors give rise to the
amalgamation of both technologies thus leading to the formation of a new technology called
cloud of Things. In the things (nodes) could be accessed, monitored and controlled from any
remote location through the cloud. Due to high scalability in cloud any number of node could
be added or removed from the system on a real time basis. The ideal of creating a Smart City
is now becoming possible with the emergence of the Internet of Things.
A significant amount of research work carried out on traffic management systems, but
intelligent traffic monitoring is still an active research topic due to the emerging technologies
such as the Internet of Things (IoT) and Artificial Intelligence (AI). The integration of these
technologies will facilitate the techniques for better decision making and achieve urban
growth. However, the existing traffic prediction methods mostly dedicated to highway and
urban traffic management, and limited studies focused on collector roads and closed
campuses. Besides, reaching out to the public, and establishing active connections to assist
them in decision-making is challenging when the users are not equipped with any smart
devices. This research proposes an IoT based system model to collect, process, and store real-
time traffic data for such a scenario. The objective is to provide real-time traffic updates on
traffic congestion and unusual traffic incidents through roadside message units and thereby
improve mobility. These early-warning messages will help citizens to save their time,
especially during peak hours. Also, the system broadcasts the traffic updates from the
administrative authorities. A prototype is implemented to evaluate the feasibility of the
model, and the results of the experiments show good accuracy in vehicle detection and a low
relative error in road occupancy estimation.
4.2 PROPOSED MODEL – BLOCK DIAGRAM
Serial Pins 0 (RX) and 1 (TX): Rx and Tx pins are used to receive and transmit TTL serial
data. They are connected with the corresponding ATmega328P USB to TTL serial chip.
AREF:
Used to provide reference voltage for analog inputs with analog Reference() function.
Reset Pin:
Making this pin LOW, resets the microcontroller.
Fig 4.5:-Pin Diagram of ATMEGA328P
ADC Inputs:
This MCU has six channels—PORTC0 to PORTC5—with 10-bit resolution A/D
converter. These pins are connected to the analog header on the Arduino board.
One common mistake is to think of analog input as dedicated input for A/D function only,
as the header in the board states ”Analog”. The reality is that you can use them as digital I/O
or A/D.
AVCC: The power pin for the A/D unit.
AREF: The input pin used optionally if you want to use an external voltage reference for
ADC rather than the internal Vref. You can configure that using an internal register.
FLOW DIAGRAM:
The pins (RX, TX) of the UART are connected to a USB-to-UART converter circuit
and also connected to pin0 and pin1 in the digital header. You must avoid using the
UART if you’re already using it to send/receive data over USB.
SPI Peripheral:
The SPI (Serial Peripheral Interface) is another serial interface. The ATmega328 has
only one SPI module.
Besides using it as a serial interface, it can also be used to program the MCU using a
standalone programmer. You can reach the SPI's pins from the header next to the
MCU in the Arduino UNO board or from the digital header as below:
11<->MOSI
12<->MISO
13<->SCK
TWI:
The I2C or Two Wire Interface is an interface consisting of only two wires, serial
data, and a serial clock: SDA, SCL.
You can reach these pins from the last two pins in the digital header or pin4 and pin5
in the analog header.
4.6 GSM/GPRS TRANSMITTER AND RECEIVER:
Transmitter:
Mobile phones are used as a transmitter to this system because mobile phones consist of
GPRS and GPS for transmitting and locating the user area. So, mobile phones act as a
transmitter for transmitting the location by sharing via GPRS to the Receiver(sim900 module)
placed at the traffic signal system.
GPIO Pins
The GPIO pins help to perform the simple and advance I/O function. All pins give the
maximum output equal to the power supply which is useable to control most of the devices
like sensors and other modules. All GPIO pins in SIM900A are:
GPIO1 – Pin40
GPIO2 – Pin41
GPIO3 – Pin42
GPIO4 – Pin43
GPIO5 – Pin44
GPIO6 – Pin47
GPIO7 – Pin48
GPIO8 – Pin49
GPIO9 – Pin50
GPIO10 – Pin51
GPIO11 – Pin67
GPIO12 – Pin68
Status Pins
The module has two status pins which help to indicate two different kinds of status. The
first one is the working status of the module and the second for communication status. Net
status means either the module is connecting to the network or other network functions, etc.
Both these pins can’t operate LED directly. They always act with a combination of a
transistor.
STATUS – Pin52
NIGHTLIGHT – Pin66
The device offers a 4 pin display interface with itself. The display isn’t necessary; it is only
in case of requirement. The use of interface helps to get the visualization with the module
and make it an application. All display pins are:
DISP_DATA – Pin12 – For Display Data
DISP_CLK – Pin11 – For Clock Input
DISP_CS – Pin14 – To enable the display
DISP_D/C – Pin13 – To select between data and command
I2C Pins
popularity. The module has a single I2C protocol pin, which helps to build the application
The two-pin keypad is interface able with the module. The module will take the keypad
data as a 2D matrix value from the KCB pins for each value. The keypad interface pins in the
module are:
KBR0~KBR4 (ROWS) – Pin40~Pin44
KBC0~KBC4 (COLUMN) – Pin47~Pin51
Serial Port
The UART serial interface uses the two pins for proper data communication, which are
RX and TX. Both pins have no independence on any other pins or modules. In SIM900A
these pins are available but it also has some other pins for status/indication of data. By
combining these pins, the serial port helps to generate the RS-232 connector too. All the
Debug Interface
Debugging helps the developers to debug the module and update its firmware. In this
module, there are separate serial interface pins for debugging. Both pins are:
DBG_TXD – Pin27 – For Data Transmission
DBG_RXD – Pin28 – For Data receiving
SIM Interface
The module has only a single pin to detect and convert the analog signal to digital for
PWM Pins
The PWM is mostly in microcontrollers for industrial applications but due to IoT, the module
offers two PWM pins which helps to make the IoT and PWM based device without using any
third interface.
PWM1 – Pin35
PWM2 – Pin36
Audio Interface
The audio interface will help to connect the mic and speaker with SIM900A. The connection
of Line, Audio and Speaker will help to make the calls through the modules.
MIC_P – Pin19
MIC_N – Pin20
SPK_P – Pin21
SPK_N – Pin22
LINEIN_R – Pin23
LINE_L – Pin24
Control Pin
There is power on pins on the device, which helps to turn it on using external signals.
There is two power on pins. The first one is PWRKEY which requires a LOW signal to
power on/off the system. To do that, the pins require an input signal for a little bit long time. .
The second pin is PWRKEY_OUT, which gets short with the PWRKEY pin and turn on/off
the device.
PWRKEY – Pin1
PWRKEY_OUT – Pin2
Reset pins
The device has an external LOW input signal reset pin to reset the device with the use of
an external signal.
NRESET – Pin16
To extend the range of the SIM900A the antenna pin needs to connect with an external
wire. The official antenna is also available for the module.
RF_ANT – Pin60
Power Pins
The module SIM900A has multiple types of power pin. Some works as input and some as
output. The most important one to understand is VRTC, which acts as a backup for the
internal RTC of the device. All power and ground pins of the module are:
VBAT(Input) – Pin55, Pin56, Pin57
VDD_EXT(OUTPUT) – Pin15
GND – Pin17, Pin18, Pin29, Pin39, Pin45, Pin46, Pin53, Pin54, Pin58, Pin59, Pin61,
The simulation of IOT based smart traffic control cannot be completely designed or
implemented because there are some restrictions.
The restrictions are the IR sensors which are implemented in block diagram cannot be used in
simulation because for IR sensors there should be any obstacle for blocking it. In simulation
we cannot keep any obstacle so, here we use a push button as a obstacle
CHAPTER 5
5.1 INTRODUCTION
Key issues in modeling and simulation include the acquisition of valid sources of information
about the relevant selection of key characteristics and behaviors used to build the model, the
use of simplifying approximations and assumptions within the model, and fidelity and
validity of the simulation outcomes. Procedures and protocols for model verification and
validation are an ongoing field of academic study, refinement, research and development in
simulations technology or practice, particularly in the work of computer simulation.
5.2 PROTEUS SOFTWARE INSTALLATION AND SETUP:
ISIS is the software used to draw schematics and simulate the circuits in real time.The
simulation allows human access during run time, thus providing real time simulation.
ARES is used for PCB designing.It has the feature of viewing output in 3D view of
the
requirements.
Download the Proteus 8 Professional software and then extract the zip file
in particular folder and save them.
2. Select "I accept the terms of this agreement" and select Next. On the
“License Agreement” page, check “I accept terms of this agreement” and
click “Next”.
3. Open the file from folder for installing the software Click twice on the
installation exe file. (Click “Next) if would to like to select another folder
browse otherwise to continue “click next”.
G1 TO PB0
Y1 TO PB1
R1 TO PB2
G2 TO PB3
Y2 TO PB4
R2 TO PB5
R3 TO PD7
Y3 TO PD6
G3 TO PD5
R4 TO PD4
Y4 TO PD3
G4 TO PD2
In this simulation, we are using push button rather than IR sensors and GSM/GPRS because
in simulation we cannot implement any obstacles in front of IR sensors and also cannot send
message with GSM/GPRS. Both of these can only do with the real time unit.
Step 1:
After the completion of connection and coding start simulation by clicking the play
button, which is highlighted.
Step 2:
Fig 5.3:-Simulation process step 2
When the push button 1 is set for condition, then the traffic signal 1 will be set for green
until the pushbutton 1 is released.
Step 3:
5.5 RESULT:
The system we propose provides a real-time smart traffic control system for
emergency vehicles .This method of traffic control system will reduce time and also the stress
that people faces int heir day to day life.
CHAPTER 6:
CONCLUSION
To reduce the congestion and unwanted time delay in traffic, an advanced system is required.
One such advanced technology is IOT based smart traffic control system for emergency
vehicles. Keeping the patients health in mind, because a single second of delay can cause a
loss of life. so, this technique is used. Whether, it is Low traffic density, or Medium traffic
density, or High traffic density. Once the ambulance acknowledged, then the Green light will
be on for 60 seconds till the Ambulance pass through the signal junction. With this technique,
a new era of traffic signal control is entered.
CHAPTER 7
REFERENCES
1) M. A.A. Parkhi, Mr. A.A. Peshattiwar, Mr. K.G. Pande “Intelligent Traffic System
Using Vehicle Density”. Yeshwantrao Chavan College of Engg., Nagpur.
International Journal of Electrical and Electronic Engoneers, 2016.
2) Bilal Ghazal, Khaled ElKhatib “Smart Traffic Light Control System”. Conference
Paper- April 2016.
3) Dinesh Rotake, Prof. Swapnil Karmore “Intelligent Traffic Signal Control System
Using Embedded System”. G.H Raisoni College of Engineering, Nagpur. Innovative
Systems Design and Engineering, 2012.
8) Divya Vani P., Aruna. K. and Ragvendra Rao K., ”Internet of Things-A Practical
Approach to Certain Cloud Services using CC3200,” Internet of Things-A Practical
Approach to Certain Cloud Services using CC3200-Volume 117 No. 10 , 2017.
9) “IoT based smart traffic signal monitoring system using vehicles counts”,
International Journal of Engineering and Technology, vol. 7, no. 221, p. 309, 2018.
12) K. Ramachandran and R. Priya, “IoT Based Traffic Management System and
Congestion Control”, International Consortium of Scientists and Researchers, Volume
3, Issue 1, Dec, 2017.
13) N. Choosri, Y. Park, S. Grudpan, P. Chuarjedton, and A. Ongvisesphaiboon, “IOT-
RFID Testbed for Supporting Traffic Light Control”, International Journal of
Information and Electronics Engineering, Vol. 5, No. 2, March 2015.
15) Khalil M. Yousef, Jamal N. Al-Karaki, Ali M. Shatnawi “Intelligent Traffic Light
Flow Control System Using Wireless Sensors Networks”. Journal of Information
Science and Engineering, May 2010.
16) Ashok P.V, SivaSankari. S and V. M. S. Sankaranarayanan, “IOT Based Traffic
Signalling System”, International Journal of Applied Engineering Research ISSN
0973-4562 Volume 12, Issue 19 (2017) pp. 8264-8269.
17) Mohan Raj A et al, International Journal of Computer Science and Mobile
Computing, Vol.9 Issue.1, January- 2020,“DENSITY BASED TRAFFIC CONTROL
USING IOT”