This project simulates a real-time smart traffic management system using Vehicle-to-Everything (V2X) communication at a busy 4-way intersection. The goal is to demonstrate how intelligent traffic systems can adapt to real-world conditions like emergency vehicle detection and weather changes to improve road safety and efficiency.
I built this project using SUMO (Simulation of Urban MObility) and Python via the TraCI interface. The system features:
Speed Monitoring: Generates and visualizes vehicle speed graphs
Displays live traffic status, emergency detection, rain toggle, and simulation alerts.
Graph showing average speed and emergency stops over time.
SUMO visualization of traffic flow through an X-junction.
Green vehicle represents the emergency vehicle, other vehicles yield to it.
Sprint | Goal | Key Output |
---|---|---|
Sprint 1 | Set up basic simulation with SUMO | 4-way junction, vehicle routing, configuration files |
Sprint 2 | Emergency vehicle logic | Emergency vehicle priority and stopping normal traffic |
Sprint 3 | Rain condition handling | Slows down vehicles, triggers dashboard alert |
Sprint 4 | Interactive dashboard | GUI with live status, alert display, screenshot functionality |
Task / User Story | Status | Notes |
---|---|---|
Vehicles yield to emergency vehicles | Done | Used TraCI logic to identify emergency and stop other vehicles |
Rain triggers speed reduction + alert | Done | Handled in traffic_control.py , shown in dashboard |
Dashboard displays simulation status | Done | Built using Tkinter, shows vehicles, alerts, signal state |
Snapshot of current traffic simulation | Done | Tkinter โScreenshotโ button implemented |
Live signal phase display | Done | Signal status displayed live in GUI |