Final Year Project Report
Final Year Project Report
TECHNICAL EDUCATION
(MUMBAI)
A
PROJECT REPORT
ON
“SMART TRAFFIC CONTROL SYSTEM FOR AMBULANCE’’
SUBMITTED BY,
Sr.
Name of Student Enrollment No. Seat No.
No.
1 Ayesha Aslam Kazi 2109930053 232262
Prof. Patil S. A.
Certificate
This is to certify that the project report entitled “Smart Traffic Control
System For Ambulance” has been successfully completed by:
Sr.
Name of Student Enrollment No. Seat No.
No.
1 Ayesha Aslam Kazi 2109930053 232262
ACKNOWLEDGEMENT
With deep sense of gratitude we would like to thanks all the people
who have lit our path with their kind guidance. We are very grateful to these
intellectuals who did their best to help during our project work. It is our
proud privilege to express deep sense of gratitude to, Dr. Joshi S. B.,
Principal of Brahmdevdada Mane Polytechnic, Solapur for his
comments and kind permission to complete this project. We remain indebted
to Prof. Pawar R. R. H.O.D. of Computer Technology (CM)
Department for their timely suggestion and valuable guidance.
The special gratitude goes to our guide Prof. Patil S. A. and staff
members, technical staff members of Computer Technology Department for
their expensive, excellent and precious guidance in completion of this work.
We thank to all the colleagues for their appreciable help for our working
project.
With various industry owners or lab technicians to help, it has been our
endeavor to throughout our work to cover the entire project work.
We are also thankful to our parents who providing their wishful
support for our project completion successfully.
And lastly we thanks to our all friends and the people who are directly
or indirectly related to our project work.
Ayesha Kazi
Bhavana Kolkar
Khushaboo Shaikh
Vedika Chavan
INDEX
Chapter No. Particulars Page
No.
Abstract 1
1 Preamble 2
1.1 Introduction 2
1.2 Review of Literature 2
1.3 Problem Statement 5
2 System Architecture 8
2.1 Methodology 8
2.2 Modules 11
4 System Modelling 13
4.1 Dataflow Diagrams 13
4.2 UML Diagram 14
5 Implementation Details 18
5.1 Implementation 18
5.1.2 Platform Used 18
5.2 Modules and Language Used 22
5.3 Cost 22
6 Coding 23
7 Testing 33
7.1 Unit Testing 33
7.2 System / Integration Testing 33
7.3 Test Cases and Results 34
8 Conclusion 37
8.1 Advantages 38
9 Future Scope 39
10 References 40
11 Appendix A 42
FIGURE INDEX
TABLE INDEX
1. INTRODUCTION
Unfortunately about 30% of deaths are caused due to delayed ambulance. In today’s
scenario the number of accidents per day is increasing exponentially and so is the
number of deaths caused by it. Every year, clear statistics state that thousand of people
lose the chance to live due to ambulance delays. One of the reasons contributing to this
delay is “Road blockag”-Road blockages are a result of poor road management and huge
population of vehicles giving rise to traffic jams on the road. Many nations worldwide
have adapted several strategies to combat this, one of the simplest was laying down a
different lane for emergency services on the road way.
We have gone through some traffic control systems the overview of them are as bellows:
1. “A Review of Intelligent Traffic Management Systems for Emergency Vehicles”
by Smith et al. (2018) – This study provides an overview of various intelligent
traffic management systems designed specifically for emergency vehicles,
including ambulances. It discusses the use of real time tracking, predictive
modeling, and adaptive signal control to improve response times and minimize
delays.
2. Enhancing Emergency Vehicle Navigation Using Intelligent Transportation
Systems” by Lee et al. (2020) – This paper explores the integration of
intelligent transportation systems (ITS) with emergency vehicle navigation. It
discusses the use of real-time traffic information, vehicle-to infrastructure
communication, and advanced routing algorithms to improve ambulance
Traffic lights will manage data about the various traffic density based on the
data collected particularly at junction, supported the density of the traffic
which is measured using new technique. However, using this technique it is
not possible to identify the density of the traffic beyond a particular distance
and it is too expensive. Similar method is employed in adaptive traffic
control IOT Based Traffic Signal Control Technique for Helping Emergency
Vehicles is proposed for the better management of the traffic of emergency
vehicles through the use of internet of things (IOT). The proposed method
enables the emergency vehicles to send message to the traffic signal
controller placed at the traffic junction where two or more lanes meet
regarding their arrival in order that the traffic can be regulated accordingly.
In today’s traffic world, ambulance plays a major role when an accident occurs on
the road network and the need arises to save valuable Human life. Transportation of
a patient to an emergency hospital seems quite simple but in actuality, it is quite
difficult and gets more difficult during peak hours. Traffic congestion in urban areas
significantly hinders the timely arrival of ambulances at emergencies. Precious
minutes lost due to gridlock can have life-threatening consequences for patients in
critical condition. This problem necessitates a smarter traffic management system
that prioritizes the movement of emergency vehicles. Traditional traffic lights
operate on fixed cycles, causing delays even when there are no ambulances. Drivers
may not be aware of approaching ambulances or intentionally block the way due to
lack of proper notification. An intelligent system is required to optimize traffic flow
and expedite the movement of ambulances. This system should Accurately detect
approaching ambulances. Dynamically adjust traffic light timings to prioritize
ambulance passage. Warn drivers about approaching emergency vehicles and
encourage them to yield the right of way.
If an ambulance carrying a critical patient or organ for transplantation need to reach its
destination quickly ,It requires a posses of traffic policemen on the ground to clear its path
and provide priority passage so we have a solution for this. When an ambulance equipped
with a sensor tracer and approaches an intersection ,the system will detect its presence. The
system will then communicates with the traffic signal controller and request a green light for
the ambulance. The traffic signal controller will grant the request and change the light to
green, allowing the ambulance to pass through the intersection without delay. In between the
it sends message to the central control system that a particular ambulance is crossing from a
particular road.
The ambulance driver or a user can login to the web application where the he or she will get
a shortest route to it’s destination from his current location. The user can also fill the patients
information form from the website for patient registration in hospital at the time of
emergency.
There is no need to wait for patient registration in hospital.
2. Financial Feasibility:
The Project needs open source software’s and some hardware part like
fingerprint sensor which is easily available. Also, it is available at moderate cost and
can be purchased easily.
4. Operational Feasibility:
2.1 METHODOLOGY
A. Communication
B. Planning
C. Modelling
It includes detail requirement analysis and project design. Flowchart shows
complete pictorial flow of program whereas algorithm is step by step solution of
problem.
We analyze the requirement of the user according to that we draw the block
diagrams of the system.
That is nothing but behavioral structure of the system using UML i.e. Class
Diagram, use case Diagram, Components Diagram etc.
D. Construction
It includes coding and testing steps:
2) Testing
Testing is carried out by analyzing the application i.e. we first develop the
module of the application and step by step find out input and output errors such as
Interface errors, performance errors, data structure errors, initialization errors
etc. Therefore, here Black Box testing strategy is useful.
E. Deployment
It includes software delivery, support and feedback from customer. If user
suggest some corrections, or demands additional capabilities then changes are
required for such corrections or enhancements. After user evaluation, next spiral
1. Ambulance operator :
Ambulance operator can login to the web application and add his current
location and the destination hospital which generates the shortest route to its
destination which will save the response time of ambulance. It will also provide a
patient registration form.
2. User :
User can login to the application and can do patient registration. At the time of
emergency one can easily register the patient. There is no need to wait at the time
of emergency occurred.
User
Figure 4.1.1: DFD Level-0 of System
1. Structural Diagram:
The structural diagrams illustrate the static structure of the entire system.
These Static structures represent the aspects of a diagram shows the main structure
of system. These static structures are represented in the form of classes, objects,
interfaces,
Nodes, components etc. The four structural diagrams are-
I. Component Diagram:
A Component diagram illustrates the pieces of software, embedded
controllers, etc. that will make up a system. A Component diagram hides the system
2. Behavioral Diagram:
These diagrams are used to represent dynamic aspects of the system. UML has
The following five types of behavioral diagrams-
I. Use case diagram
II. Activity diagram
5.1 IMPLEMENTATION
One of the most critical decisions to be made was the LANGUAGE. The project
deals with user application so it required a language that provides all the required
features as well as it should be easy to use. So finally we arrived at conclusion to
use python as implementation language.
code looks like simple English words. There is no use of semicolons or brackets,
and the indentations define the code block. You can tell what the code is
supposed to do simply by looking at it.
CHAPTER NO: 6
CODING
Index page
<!doctype html>
<html lang=”en”>
<head>
<!—Required meta tags →
<meta charset=”utf-8”>
<meta name=”viewport” content=”width=device-width, initial-scale=1”>
<!—Bootstrap CSS →
<link rel=”stylesheet” href=”css/bootstrap.min.css”>
<link rel=”stylesheet” href=”css/owl.carousel.min.css”>
<link rel=”stylesheet” href=”css/owl.theme.default.min.css”>
<link href=’https://unpkg.com/[email protected]/css/boxicons.min.css’ rel=’stylesheet’>
<link rel=”stylesheet” href=”css/style.css”>
<!—Unicons →
<link rel=”stylesheet” href=https://unicons.iconscout.com/release/v4.0.0/css/line.css />
<link rel=”stylesheet” href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/
all.min.css integrity=”sha512-…” crossorigin=”anonymous” /> <title>Prixima BS5 Template</title>
</head>
<body data-bs-spy=”scroll” data-bs-target=”.navbar” data-bs-offset=”70”>
<!—TOP NAV →
<div class=”top-nav” id=”home”>
<div class=”container”>
<div class=”row justify-content-between”>
<div class=”col-auto”>
<p> <I class=’bx bxs-envelope’></i> [email protected]</p>
<p> <I class=’bx bxs-phone-call’></i> (219) 555-0114</p>
</div>
<div class=”col-auto social-icons”>
<a href=”#”><I class=’bx bxl-facebook’></i></a>
<a href=”#”><I class=’bx bxl-twitter’></i></a>
<a href=”#”><I class=’bx bxl-instagram’></i></a>
<a href=”#”><I class=’bx bxl-pinterest’></i></a>
</div>
</div>
</div>
</div>
<!—BOTTOM NAV →
<nav class=”navbar navbar-expand-lg navbar-light bg-white sticky-top”>
<div class=”container”>
<a class=”navbar-brand” href=”#”>LifeLine Saviors<span class=”dot”></span></a>
<button class=”navbar-toggler” type=”button” data-bs-toggle=”collapse” data-bs-
target=”#navbarNav”
Aria-controls=”navbarNav” aria-expanded=”false” aria-label=”Toggle navigation”>
<span class=”navbar-toggler-icon”></span>
</button>
<div class=”collapse navbar-collapse” id=”navbarNav”>
<!—ABOUT →
<section id=”about”>
<div class=”container”>
<div class=”row justify-content-center”>
<div class=”col-lg-5 py-5”>
<div class=”row”>
<div class=”col-12”>
<div class=”info-box”>
<!—Home →
<section class=”home”>
<div class=”form_container”>
<I class=”uil uil-times form_close”></i>
<!—Login From →
<div class=”form login_form”>
<form action=”#”>
<h2>Login</h2>
<div class=”input_box”>
<input type=”email” placeholder=”Enter your email” required />
<I class=”ui uil-envelope-alt email”></i>
</div>
<div
class=”input_box”>
<!—Signup From →
<div class=”form signup_form”>
<form action=”#”>
<h2>Signup</h2>
<div class=”input_box”>
<input type=”email” placeholder=”Enter your email” required />
<I class=”ui uil-envelope-alt email”></i>
</div>
<div class=”input_box”>
<input type=”password” placeholder=”Create password” required />
<I class=”uil uil-lock password”></i>
<I class=”uil uil-eye-slash pw_hide”></i>
</div>
<div class=”input_box”>
<input type=”password” placeholder=”Confirm password” required />
<I class=”uil uil-lock password”></i>
<I class=”uil uil-eye-slash pw_hide”></i>
</div>
<button class=”button”>Signup Now</button>
<div class=”login_signup”>Already have an account? <a href=”#” id=”login”>Login</a></div>
</form>
</div>
</div>
</section>
<script src=”script.js”></script>
<section id=”services” class=”text-center”>
<div class=”container”>
<div class=”row”>
<div class=”col-12”>
<div class=”intro”> <h6>Our
Services</h6>
<h1>What We Do?</h1>
<p
class=”mx-auto”>At Emergency Ambulance Service our soule focus is the lives we touch everyday.The
<div class=”service”>
<img src=”img/22.png” alt=””>
<h5>Compassion</h5>
<p>Delivering care with empathy,respect and dignity and treating everyone fairly.</p>
</div>
</div>
<div class=”col-lg-4 col-md-6”>
<div class=”service”>
<img src=”img/33.png” alt=””>
<h5>Integrity</h5>
<p>Emergency ambulance service built on integrity.We believe in honesty,responsibility and hard work.</p>
</div>
</div>
<div class=”col-lg-4 col-md-6”>
<div class=”service”>
<img src=”img/44.png” alt=””>
<h5>Timeliness</h5>
<p>Reducing waits and delays for both those who receive and who give care.</p>
</div>
</div>
<div class=”col-lg-4 col-md-6”>
<div class=”service”>
<img src=”img/55.png” alt=””>
<h5>Communications</h5> <p>Listening to and supporting each other,and creating an
environment that seeks and hears the voice of customer.</p>
</div>
</div>
<div class=”col-lg-4 col-md-6”>
<div class=”service”>
<img src=”img/66.png” alt=””>
<h5>Safety</h5> <p>Promoting a culture of respect and accountability that provides the
highest degree of safety to our patient and caregivers.</p>
</div>
</div>
Department of Computer Technology, Brahmdevdada Mane Polytechnic, Solapur Page 30
</div>
</div>
</section>
<footer>
<div class=”footer-top text-center”>
<div class=”container”>
<div class=”row justify-content-center”>
<div class=”col-lg-6 text-center”>
<h4 class=”navbar-brand”>LifeLine Savior<span class=”dot”>.</span></h4>
<p>Good, better, best. Never let it rest. ‘Til your good is better and your better is best.</p>
<div class=”col-auto social-icons”>
<a href=”#”><I class=’bx bxl-facebook’></i></a>
<a href=”#”><I class=’bx bxl-twitter’></i></a>
<a href=”#”><I class=’bx bxl-instagram’></i></a>
<a href=”#”><I class=’bx bxl-pinterest’></i></a>
</div>
</div>
</div>
</div>
</div>
<div class=”col-lg-6”>
<label for=”userName” class=”form-label”>Last name</label>
Department of Computer Technology, Brahmdevdada Mane Polytechnic, Solapur Page 31
<input type=”text” class=”form-control” placeholder=”Smith” id=”userName” Aria-
describedby=”emailHelp”>
</div>
<div class=”col-12”>
<label for=”userName” class=”form-label”>Email address</labe
<input type=”email” class=”form-control” [email protected] id=”userName”
Aria-describedby=”emailHelp”> </div>
<div class=”col-12”>
<label for=”exampleInputEmail1” class=”form-label”>Enter
Message</label> <textarea name=”” placeholder=”This is looking great and
nice.” Class=”formcontrol” id=”” rows=”4”> </textarea> </div>
<div class=”col-12”>
<button type=”submit” class=”btn btn-brand” value=”Submit”>Submit</button> </div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src=”js/jquery.min.js”></script>
<script src=”js/bootstrap.bundle.min.js”></script>
<script src=”js/owl.carousel.min.js”></script> <script
src=”js/app.js”></script>
</body>
</html>
Login page
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0”>
<title></title>
<style>
Body {
Font-family: Arial, sans-serif;
Background-color: #f0f5ff;
Margin: 0;
Padding: 20px;
}
.container {
Max-width: 600px;
Margin: 0 auto;
Background-color: #fff;
Padding: 20px;
Cursor: pointer;
Font-size: 16px;
Display: block;
Margin: 0 auto;
}
Input[type=”submit”]:hover {
Background-color: #0d47a1;
}
</style>
</head>
<body>
<div class=”container”>
<h1>Patient Information</h1>
<label for=”address”>Address:</label>
<input type=”text” id=”address” name=”address” required>
<label for=”city”>City:</label>
<input type=”text” id=”city” name=”city” required>
<label for=”province”>Province:</label>
<input type=”text” id=”province” name=”province” required>
</form>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0”>
<title>Get Map</title>
<style>
Body {
Font-family: Arial, sans-serif;
Background-color: #f0f0f0;
Margin: 0;
Padding: 0;
Display: flex;
Justify-content: center;
Align-items: center;
Height: 100vh;
}
#map-container {
Width: 80%;
Max-width: 600px;
Background-color: #fff;
Border-radius: 8px;
Box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
Padding: 20px;
}
Input[type=”text”] {
Width: 100%;
Padding: 10px;
Margin-bottom: 10px;
Box-sizing: border-box;
Border: 1px solid #ccc;
Border-radius: 4px;
Font-size: 16px;
}
Button {
Padding: 10px 20px;
Background-color: #007bff;
Color: #fff;
Border: none;
Status
Pass
In this world of busy roads, traffic signal plays the vital factor in saving person’s life. In
this project we are not only tried to provide a way to ambulance but also tried to
provide a ready situation in hospital to do the treatment of patient in time. We
implemented two solutions like storing the medical history of all citizens, suggesting
the nearest hospitals and giving an optimal path to reach hospital in time. Citizens can
register and store their information with authentication which provides security to
them. To suggest the nearest hospital and optimal path GPS and micro controller
technologies are used. This system detects the occurrence of ambulance and switch the
signals to green. The entire system is automated, thus it require less human
intervention. “Smart Traffic Control System for Ambulance” increase the possibility of
saving lives.
3) Low cost
5) Increased safety
6) Easy maintenance
The future of smart traffic control systems for ambulances holds immense promise
for saving lives. Here are some exciting possibilities: Advanced routing and
prioritization:
• Dynamic traffic light control: Traffic signals could communicate with approaching
ambulances and adjust light cycles in real-time to create a green wave, eliminating
red lights entirely.
• Multi-modal integration: The system could consider alternative routes, including
waterways or dedicated ambulance lanes, and seamlessly integrate with public
transport systems to temporarily clear a path.
• Predictive traffic management: By analyzing historical traffic patterns and real-
time data, the system could predict congested areas and reroute ambulances
proactively.
• Integration with hospital systems: Ambulances could transmit vital patient data to
the hospital ahead of arrival, allowing medical staff to prepare for the specific be
needs of the patient.
1. wikipedia.org
2. AhmedBenAyed(2017);AConceptualSecureNFC–
BasedElectronicVotingSystem;InternationalJournalofNetwork
Security&ItsApplications(IJNSA)Vol.9,No.3,
3. PavelTarasovandHiteshTewari(2017);TheFutureofE-
Voting;IADISInternationalJournalonComputerScienceand
InformationSystemsVol.12,No.2,pp.148-165I
4. ZibinZheng1,ShaoanXie1,HongningDai2,XiangpingChen4,andHuaiminWang
3(2017);AnOverviewofNFC
Technology:Architecture,Consensus,andFutureTrends;IEEE6thInternationalC
ongressonBigData.
6. MahdiH.Miraz1,MaarufAli2(2018);ApplicationsofNFCTechnologybeyondCryptoc
urrency;AnnalsofEmerging TechnologiesinComputing(AETiC)Vol.2,No.1,2018
7. MichaelCrosby,Google,Nachiappan,Yahoo,PradhanPattanayak,Yahoo,SanjeevVer
m
a,SamsungResearchAmerica,VigneshKalyanaraman,FairchildSemiconductor(201
5);NFCTechnologyBeyondBitcoin.
10. AayushiGupta1*,JyotirmayPatel2,MansiGupta1,HarshitGupta1(2017);IssuesandEff
e ctivenessofNFCTechnology
onDigitalVoting;InternationalJournalofEngineeringandManufacturingScience.
ISSN2249-3115Vol.7,No.1(2017)
11. GautamSrivastava1,AshutoshDharDwivedi2andRajaniSingh2(2018);Crypto-
democracy:ADecentralizedVoting Scheme using NFCTechnology.
12. FriðrikÞ.Hjálmarsson,GunnlaugurK.Hreiðarsson(2018);NFC-BasedE-
VotingSystem.
13. NirKshetriandJeffreyvoas(2018);NFCEnabledE-
Voting;www.computer.org/software.
14. UmutCanÇabuk1,EylülAdıgüzel2,EnisKaraarslan2(2018);ASurveyonFeasibili
tyandSuitabilityofNFC Techniques for the E-Voting Systems; International Journal
of Advanced Research in Computer and Communication Engineering.
15. Madise,Ü.&Martens,T.(2006).E-
votinginEstonia2005.ThefirstpracticeofcountrywidebindingInternetvotinginthe
world. Electronic Voting,86.
CHAPTER NO: 11
APPENDIX A
Department of Computer Technology, Brahmdevdada Mane Polytechnic, Solapur Page 45
SCREENSHOTS
Fig.11.4:PATIENT INFORMATION