Major Project
Major Project
ON
Submitted
BACHELORS OF TECHNOLOGY
IN
Submitted by
1
CANDIDATE’S DECLARATION
We hereby declare that this report entitled “Intelligent Traffic Management System” in partial
fulfilment of the requirement for the award of Bachelor of Technology in Instrumentation and
Control Engineering, submitted to the Department of Instrumentation and Control Engineering,
Bharati Vidyapeeth’s College of Engineering, New Delhi (Affiliated to Guru Gobind Singh
Indraprastha University, New Delhi, India) is an authentic record of our work carried out from
February 2024 to May 2024 under the guidance and supervision of Mr. Manish Talwar(Assistant
Professor), Department of Instrumentation and Control Engineering, Bharati Vidyapeeth’s College
of Engineering, New Delhi. The matter presented in this report has not been submitted by us for
the award of any other degree of this institute or any other institute.
2
CERTIFICATE
This is to certify that the Candidate’s Declaration is correct to the best of my knowledge and belief
The B. Tech Major Project Viva-Voce Examination of ABHISHEK YADAV (enrolment number -
00111507621), PRATEEK VASHISHTE (enrolment number - 00211507621), & RITIK SINGH
BISHT (enrolment number -00311507621) has been held on 20th May 2024
3
ACKNOWLEDGEMENT
This report is an amalgamation of knowledge gathered from several people. We express our
gratitude to our mentor Mr. Manish Talwar (Assistant Professor), Department of Instrumentation
and Control Engineering, Bharati Vidyapeeth’s College of Engineering, New Delhi for his kind
constant guidance and support without which this work would not have been possible. We also
thank him for bearing with our shortcomings and helping us to raise our level. Our sincere thanks
to the Head of Department Mrs. Aarti Kane, Instrumentation and Control Engineering Department,
Bharati Vidyapeeth’s College of Engineering, New Delhi for providing the necessary research
facilities to carry out this work. Also, we would like to thank the whole Instrumentation and
Control Engineering Department, Bharati Vidyapeeth’s College of Engineering for helping us
throughout the process.
4
ABSTRACT
In present-day times, the number of vehicles has increased drastically, but in contrast, the
capabilities of our roads and transportation systems still remain underdeveloped and as a result,
fail to cope with this upsurge in the number of vehicles. As a consequence, traffic jamming,
road accidents, increase in pollution levels are some of the common traits that can be observed
in our new age cities. With the emergence of the Internet of Things and its applicability in Smart
Cities, creates a perfect platform for addressing traffic-related issues, thus leading to the
establishment of Intelligent Traffic Management Systems (ITMS). The work presented in this
paper talks about an intelligent traffic management system that lays its foundation Cloud
computing, Internet of Things and Data Analytics. Our proposed system helps to resolve the
numerous challenges being faced by traffic management authorities, in terms of predicting an
optimum route, reducing average waiting time, traffic congestion, travel cost, and the extent of
air pollution. The system aims at using machine learning algorithms for predicting optimum
routes based upon traffic mobilization patterns, vehicle categorization, accident occurrences
and levels of precipitation. Finally, the system comes up with the concept of a green corridor,
wherein emergency services are allowed to travel without facing any kinds of traffic congestion.
5
TABLE OF CONTENTS
1. INTRODUCTION .………………………………………………………………...8
1.1 Definition of ITMS .....….…………………………………………………………..8
1.2 Key Components of ITMS ………………………………………………………….8
1.2.1 Benefits of ITMS …………………………………………………………………....9
1.2.2 Analysis of the Traffic …..………………………………………………………....10
1.3 Component Used …………………………………………………………………..11
1.3.1 Hardware Component ……………………………………………………………..11
1.3.2 Software Component ………………………………………………………………16
1.3.3 Block Diagram …………………………………………………………………….17
1.3.4 Circuit Diagram ……………………………………………………………………18
1.3.5 Project Hardware …………………………………………………………………..19
1.4 Programs for the ITMS …………………………………………………………….21
1.5 Conclusion………………………………………………………………………….29
1.6 References …………….…………………………………………………………...30
6
LIST OF FIGURES
7
INTRODUCTION
Efficient traffic management has emerged as a crucial concern for city managers and urban
planners in today's rapidly urbanizing world. The intricacies of contemporary traffic patterns are
frequently too complex for conventional traffic management systems to handle, which results in
congestion, pollution, and longer travel times. Intelligent traffic management systems (ITMS) have
arisen as creative answers to these problems, utilizing state-of-the-art technologies to optimize
traffic flow, augment safety, and boost overall transportation efficiency.
The term "intelligent traffic management system" (ITMS) describes an extensive collection of
integrated technologies and tactics intended to track, manage, and maximize traffic flow on
roadway networks. It increases the effectiveness of transportation networks, lessens traffic, and
enhances traffic management by utilizing real-time data, sophisticated analytics, and
communication technology.
8
• Variable message signs and intelligent signage provide dynamic information to
drivers, alerting them to traffic conditions, suggesting alternative routes, and
enhancing overall situational awareness.
f) Smart Parking Solutions:
• ITMS often integrates smart parking solutions, guiding drivers to available parking
spaces through mobile applications or electronic signage. This reduces unnecessary
traffic circulation and minimizes parking-related congestion.
g) Public Transportation Integration:
• ITMS may include features to enhance the integration of public transportation
systems, such as real-time tracking of buses and trains, and coordination of traffic
signals to prioritize public transit.
9
1.2.2 Analysis of Factor that Contributes to Traffic Congestion (FTC) on the National Highway 48
From the bar graph, 28.16% voted FTC 1 which is a slow traffic light timer as the primary factor,
and FTC 3 which is the high demand for transportation is highlighted as the secondary factor of
traffic congestion at National Highway-48. From the result, we can assure that the current traffic
light does not meet the requirements of smart traffic management as there is an issue with its timer.
Moreover, the current traffic light monitoring system does not operate with real-time data, which
means it has a static time base and does not take into account the non-uniform and ever-changing
nature of traffic conditions that cause traffic congestion Furthermore, the third most significant
factor that contributes to traffic jams on the National Highway-48 is FTC6 (Decrease in Public
Transport Usage), which has a percentage of 14.21%. Moreover, FTC4 (National Car Project) and
FTC5 (Fuel Subsidies) have equal significance as factors that lead to traffic congestion on National
Highway 48 due to the same percentage value of 13.68%. Last but not least, road users have voted
for accidents (FTC2) as the most insignificant factor for the occurrence of traffic jams on particular
highway
10
1.3 Components Used
a) IR Proximity Sensor
The sensor is equipped with a 3-pin header that is connected to the Arduino or microcontroller
board via female to male or female to female jumper wires. A mounting hole that makes it simple
to attach one or more sensors to the front or back of your robot chasis.
11
b) Lithium ion Batteries
The positive and negative terminals of every battery cell are linked to internal electrodes, which
are actual chemical structures that store and release electrochemical energy that powers an external
electrical load. Intercalation is the method used by Li-ion batteries, whereby lithium ions are
integrated into the composition of the electrode materials. Lithium ions go throughout the cell from
the positive to the negative electrode during charging and from the negative to the positive
electrode during discharge of the battery. When the battery is discharging, potential chemical
energy held in the battery can be used to drive a load, and when the battery is charging, electrons
flow through an external circuit in the same direction as the lithium ions.
c) Solar Panel
Solar panels are devices that convert sunlight into electricity through the photovoltaic effect. They
consist of many solar cells made of semiconductor materials, such as silicon, which absorb photons
from sunlight and generate electric currents. Solar panels are commonly used to generate
renewable energy for both residential and commercial purposes. They're a key component of solar
power systems, which can help reduce reliance on fossil fuels and lower carbon emissions.
Solar panels operate on the principle of the photovoltaic effect, which is the conversion of light
into electricity. These panels are comprised of multiple solar cells, typically constructed from
semiconductor materials like silicon. When sunlight strikes the solar panel, the photons in the light
are absorbed by the semiconductor material. This absorption of photons energizes electrons within
the material, causing them to break free from their atoms and create electron-hole pairs. The
12
structure of the solar cell then separates these charges, generating an electric field within the cell.
This electric field drives the movement of the energized electrons, creating an electric current. This
current can be directed to an external circuit, where it can power electrical devices or be stored for
later use in batteries. This process of converting sunlight into electricity enables solar panels to
produce clean, renewable energy from the sun.
d) AT89S52
13
Figure 5 :- AT89S52
e) HT12D DECODER
The HT12D decoder, a part of Holtek Semiconductor's 212 series, is a versatile integrated circuit
commonly employed in wireless communication systems. Designed to complement the HT12E
encoder, it facilitates straightforward data transmission in remote control applications and beyond.
Operating within a voltage range of 2.4V to 12V, it balances performance with power efficiency,
catering to diverse applications, including those reliant on battery power. With four binary data
outputs, it seamlessly translates encoded signals into usable data, offering flexibility in system
design. Address bit configuration via external pins allows for customization and avoids
interference in multi-device environments. Incorporating a built-in data validity check ensures
robust communication, vital for reliable operation. Furthermore, its cascade capability enables
scalability by accommodating multiple decoders, expanding address space for complex
applications. Overall, the HT12D's simplicity, reliability, and versatility make it a popular choice
for wireless communication projects spanning from remote controls to home automation systems.
Figure 6 :- HT12D
14
f) HT12E ENCODER
The HT12E encoder, a fundamental component in remote control and wireless communication
systems, is a pivotal integrated circuit within Holtek Semiconductor's 212 series. Its primary
function revolves around converting parallel data inputs into a serial output signal, essential for
efficient transmission over wireless channels. Operating typically between 2.4V to 12V, it strikes
a balance between performance and power efficiency, accommodating various applications,
including those powered by batteries. With its address and data inputs, it enables customization
and differentiation between multiple devices operating in proximity, thus minimizing interference.
The HT12E encoder's seamless integration with the HT12D decoder ensures a robust
communication link, bolstered by built-in data validity checks, crucial for error-free operation.
Additionally, its simplicity and reliability make it a go-to choice for applications ranging from
basic remote controls to more complex wireless security systems and home automation setups.
g) RF MODULES
The RF module, as the name suggests, operates at Radio Frequency. The corresponding
frequency range varies between 30 kHz & 300 GHz. In this RF system, the digital data
is represented as variations in the amplitude of carrier wave. This kind of modulation is known
as Amplitude Shift Keying (ASK).
Transmission through RF is better than IR (infrared) because of many reasons. Firstly, signals
through RF can travel through larger distances making it suitable for long range applications.
Also, while IR mostly operates in line-of-sight mode, RF signals can travel even when there
is an obstruction between transmitter & receiver. Next, RF transmission is more strong and
reliable than IR transmission. RF communication uses a specific frequency unlike IR signals
which are affected by other IR emitting sources. This RF module comprises of an RF Transmitter
and an RF Receiver. The transmitter/receiver (Tx/Rx) pair operates at a frequency of 434 MHz.
An RF transmitter receives serial data and transmits it wirelessly through RF through its antenna
connected at pin4. The transmission occurs at the rate of 1Kbps - 10Kbps.The transmitted data is
received by an RF receiver operating at the same frequency as that of the transmitter. The RF
module is often used along with a pair of encoder/decoder. The encoder is used for encoding
15
parallel data for transmission feed while reception is decoded by a decoder. HT12E-HT12D,
HT640-HT648, etc. are some commonly used encoder/decoder pair ICs.
• ARDUINO IDE
The Arduino is programmed in C language. The language is very simple and provides many
abstractions for simplicity of reading and writing powerful applications. It provides a serial
monitor to see the serial data from the USB virtual COM port. Allows one click compiling,
verification and burning of code onto the Arduino.
16
1.3.3 Block Diagram
17
1.3.4 Circuit Diagram
18
1.3.5 Project Hardware
19
Figure 12 :- Project Hardware
20
1.4 Program for the Intelligent Traffic Management System
#include<reg51.h>
red1 = 1;
yellow1 = 1;
green1 = 0;
red2 = 0;
yellow2 = 1;
green2 = 1;
P0 = 0xC0; //for 7 segment
P2 = 0xC0;
red1 = 0;
yellow1 = 1;
green1 = 1;
red2 = 1;
yellow2 = 1;
21
green2 = 0;
P0 = 0xC0; //for 7 segment
P2 = 0xC0;
i = 115;
while(i>0){
i--;
}
j--;
}
count--;
}
}
void main()
{
sensor1 = sensor2 = sensor3 = sensor4 = 1;
red1 = 1;
yellow1 = 1;
22
green1 = 1;
red2 = 1;
yellow2 = 1;
green2 = 1;
INT0_EMERGENCY_SWITCH = 1;
INT1_EMERGENCY_SWITCH = 1;
IT0=0; //LEVEL TRIGGERED
IT1=0; //LEVEL TRIGGERED
IE=0x85; //enable interrupt for EINT0 EXTERNAL INTERRUPT 0 & EINT1 EXTERNAL
INTERRUPT 1
while(1)
{ if(sensor1 != 0 && sensor2 != 0 && sensor3 != 0 && sensor4 != 0 ){
red1 = 0;
green2 = 0;
display(5);
red1 = 1;
green2 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
red2 = 0;
green1 = 0;
display(5);
red2 = 1;
green1 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
}
if(sensor1 == 0 ){
red1 = 0;
green2 = 0;
display(7);
red1 = 1;
green2 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
23
yellow2 = 1;
red2 = 0;
green1 = 0;
display(5);
red2 = 1;
green1 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
}
if(sensor1 == 0 && sensor2 == 0 ){
red1 = 0;
green2 = 0;
display(9);
red1 = 1;
green2 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
red2 = 0;
green1 = 0;
display(5);
red2 = 1;
green1 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
}
if(sensor3 ==0){
red1 = 0;
green2 = 0;
display(5);
red1 = 1;
green2 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
24
yellow2 = 1;
red2 = 0;
green1 = 0;
display(7);
red2 = 1;
green1 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
}
if(sensor3 ==0 && sensor4 ==0){
red1 = 0;
green2 = 0;
display(5);
red1 = 1;
green2 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
red2 = 0;
green1 = 0;
display(9);
red2 = 1;
green1 = 1;
yellow1 = 0;
yellow2 = 0;
display(2);
yellow1 = 1;
yellow2 = 1;
}
}
}
IOT CODE
#include<reg51.h>
#include<string.h>
sbit relay1=P3^7;
sbit relay2=P3^6;
sbit relay3=P2^0;
25
sbit relay4=P2^1;
sbit relay5=P2^2;
sbit relay6=P2^3;
sbit relay7=P2^4;
sbit relay8=P2^5;
sbit relay9=P2^6;
sbit relay10=P2^7;
void main()
{
int i=0;
char arr[16];
relay1=relay2=relay3=relay4=relay5=relay6=relay7=relay8=relay9=relay10=1;
P3=0xff;
while(1)
{
while(P1!=0xfc)
{
if(P1==0xf1)
{
arr[i++]='1';
while(P1==0xf1);
}
else if(P1==0xf2)
{
arr[i++]='2';
while(P1==0xf2);
}
else if(P1==0xf3)
{
arr[i++]='3';
while(P1==0xf3);
}
else if(P1==0xf4)
{
arr[i++]='4';
while(P1==0xf4);
}
else if(P1==0xf5)
{
arr[i++]='5';
while(P1==0xf5);
}
else if(P1==0xf6)
{
26
arr[i++]='6';
while(P1==0xf6);
}
else if(P1==0xf7)
{
arr[i++]='7';
while(P1==0xf7);
}
else if(P1==0xf8)
{
arr[i++]='8';
while(P1==0xf8);
}
else if(P1==0xf9)
{
arr[i++]='9';
while(P1==0xf9);
}
else if(P1==0xfa)
{
arr[i++]='0';
while(P1==0xfa);
}
arr[i]='\0';
}
i=0;
if(strcmp(arr,"11")==0)
relay1=1;
else if(strcmp(arr,"1")==0)
relay1=0;
else if(strcmp(arr,"22")==0)
relay2=1;
else if(strcmp(arr,"2")==0)
relay2=0;
else if(strcmp(arr,"33")==0)
relay3=1;
else if(strcmp(arr,"3")==0)
relay3=0;
else if(strcmp(arr,"44")==0)
relay4=4;
else if(strcmp(arr,"4")==0)
relay4=0;
if(strcmp(arr,"55")==0)
relay5=1;
27
else if(strcmp(arr,"5")==0)
relay5=0;
else if(strcmp(arr,"66")==0)
relay6=1;
else if(strcmp(arr,"6")==0)
relay6=0;
else if(strcmp(arr,"77")==0)
relay7=1;
else if(strcmp(arr,"7")==0)
relay7=0;
else if(strcmp(arr,"88")==0)
relay8=1;
else if(strcmp(arr,"8")==0)
relay8=0;
else if(strcmp(arr,"99")==0)
relay9=1;
else if(strcmp(arr,"9")==0)
relay9=0;
else if(strcmp(arr,"100")==0)
relay10=1;
else if(strcmp(arr,"10")==0)
relay10=0;
else if(strcmp(arr,"0")==0)
P2=0xff;
while(P1==0xfc);
}
}
28
1.5 CONCLUSION
In conclusion, the integration of Arduino Mega 2560, ultrasonic sensors, and LEDs provides a
robust foundation for an intelligent traffic management system. The Arduino Mega 2560 serves as
the central control unit, capable of processing sensor data and coordinating the actions of the
system. The ultrasonic sensors act as reliable detectors for monitoring vehicle presence and
absence at intersections or lanes. By utilizing LEDs, the system can effectively convey signals to
drivers and pedestrians, optimizing traffic flow and enhancing overall safety.
This intelligent traffic management system can be further expanded and customized to include
features such as real-time data collection, wireless communication, and adaptive signal control
algorithms. Additionally, the scalability of Arduino allows for future enhancements and integration
with other technologies, making it a versatile platform for addressing complex traffic management
challenges. Overall, the project demonstrates the potential for smart and efficient traffic control
solutions using readily available hardware and open-source platforms.
29
1.6 REFERENCES
30