Assignment 4 Document
Assignment 4 Document
Abstract-Traffic light control systems play a critical role in an ambulance, where every second can determine the
ensuring smooth and safe vehicular movement, particularly at outcome for a patient in need of urgent care.
intersections. With the increasing complexity of urban traffic, Traffic lights are widely used at road intersections to regulate
it is essential to incorporate emergency response features to vehicle and pedestrian movement using a standard colour
prioritize life-saving services such as ambulances. This study sequence—Red, Yellow, and Green. Traditional systems,
focuses on the design and implementation of a traffic light however, follow fixed timing patterns and are not equipped to
control system using VHDL (VHSIC Hardware Description prioritize emergency vehicles. This limitation can cause
Language), integrating an emergency state specifically severe delays for ambulances, risking lives and increasing the
triggered by the detection of an approaching ambulance. strain on emergency services. To address this, intelligent
A Finite State Machine (FSM) model was used to simulate the traffic systems using digital logic and hardware design
behaviour of traffic signals under normal and emergency methods are being explored.
conditions. The system was designed using VHDL and This project investigates the design and implementation of a
simulated using LabVIEW to validate its accuracy and smart traffic light control system using VHDL (VHSIC
functionality. Hardware Description Language) with an added emergency
mode that detects an ambulance and dynamically adjusts
Upon detecting an approaching ambulance, the FSM signal states to allow safe and quick passage. A Finite State
overrides the normal operation, granting green light priority Machine (FSM) approach is used to model the different signal
to the emergency vehicle while ensuring cross-traffic safety phases, including normal traffic flow and emergency override
through controlled signal transitions. Simulation results conditions.
demonstrate that this design can reduce ambulance delays by The implementation involves coding the FSM in VHDL,
more than 30%, enhancing overall traffic responsiveness. simulating the system using LabVIEW, and analysing the
The model ensures that upon ambulance detection, traffic behaviour of the signal states under different scenarios. This
signals switch to prioritize ambulance movement while approach not only improves traffic flow efficiency but also
maintaining safety for other vehicles. This approach enhances public safety by giving priority to emergency
demonstrates how digital design techniques can enhance vehicles when required.
existing traffic systems with smart, responsive, and critical The remainder of the report is structured as follows: Section
emergency-handling capabilities. II presents a literature review and theoretical background.
Section III details the design methodology and state diagrams.
I. INTRODUCTION Section IV covers simulation, implementation, and result
Modern cities face increasing challenges related to traffic analysis. Finally, Section V concludes the report and outlines
congestion, road safety, and the need for faster emergency future improvements.
response times. One of the major contributors to traffic
delays at intersections is the lack of intelligent traffic signal II. LITERATURE REVIEW
control systems that can adapt to dynamic road conditions
particularly during emergencies. The need for more Traffic management has been a problem in society. A well
responsive traffic management becomes crucial when planned and organized traffic management technique needs to
dealing with life-critical situations such as the approach of come to play, it is much needed to reduce not only accidents
but also the waiting and the travelling time on roads [1].
In this section we will further discuss the use of; Traffic lights consist normally of three signals, transmitting
a) Road Traffic Management Systems, meaningful information to drivers and riders through colors
b) Emergency Vehicle Detection Using Radio Signals, and symbols including arrows and bicycles. The regular
c) Finite State Machines (FSM), traffic light colors are red, yellow (also known as amber), and
d) FPGA-Based Traffic Light Controllers, as well as green arranged vertically or horizontally in that order.
e) VHDL for System Design. Although this is internationally standardized, variations exist
on national and local scales as to traffic light sequences and
A. Road Traffic Management Systems
laws [2].
Urbanization and increasing vehicle volumes have led to Traffic lights are used to control how quickly and safely
persistent traffic congestion, delays, and challenges in vehicles and passengers can move through an area. Drivers
emergency response times. Efficient road traffic management who disobey the laws and guidelines outlined by traffic lights
aims to optimize traffic flow, reduce accident rates, and ensure run a very high risk of getting into an accident. As a result,
faster travel for priority vehicles such as ambulances. traffic lights contribute to a decrease in vehicle collisions.
Conventional traffic control systems typically use pre- Traffic lights also aid in time savings because they coordinate
programmed, time-based sequences which do not adapt traffic flows and routes without causing congestion. It also
dynamically to real-time road conditions. To address this, contributes to establishing discipline in people's daily lives
modern systems incorporate traffic data collection and because those who disregard traffic regulations and warning
adaptive control to optimize signal timings and provide real- signs must pay fines to the authorities. Before traffic lights
time responses to changing traffic patterns. were installed, traffic was governed by the traffic police.
A critical advancement in this field is priority control for Traffic lights shield traffic police officers from roadside air
emergency vehicles, which allows traffic systems to detect pollution by reducing the amount of time they must stand on
approaching ambulances and modify signal behaviour to grant the road directing traffic [2].
them right-of-way. This function significantly reduces the
response time of emergency services and minimizes the risk
of intersection-related accidents during emergencies [1].
Figure 5: Emergency vehicle Pre-emption system[5]. Figure 6: Example of a simple finite – state machine. [6].
- Cost-effectiveness
FPGAs are made viable by the fact that they can be
reprogrammed. Since FPGAs do not have repetitive
engineering expenditures like support fees, this lowers
costs for many markets. FPGAs have a lengthy useful
life [3] [2].
- Adaptability
FPGAs are capable of quickly adapting to variations
made by user’s software engineers, including upgrades,
modifications, and reprogramming. After modifications
and recreation, FPGAs function exactly how the client Figure 7: LabVIEW program [14].
desires [4] [1].
b. LabVIEW Simulation
LabVIEW was used to simulate and validate the logic design
before hardware implementation. This involved:
• Creating a Blank VI Project.
• Building the Front Panel with interactive controls
and indicators.
• Designing the Block Diagram for logic flow based
on FSM rules.
• Utilizing the LabVIEW MakerHub for community
support and testing with BeagleBone or similar
platforms.
Figure 8: State diagram for the traffic control system. Figure 10: A Section of the code showing one normal state of the
traffic lights.
IV. RESULTS
V. Ethical Consideration
VI. Conclusion
II. REFERENCES