V2X-Smart-Traffic-Simulation

V2X Smart Traffic Simulation

Overview

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:

My Contributions

Key Features

Vehicle Speed Monitoring

Graph showing average speed and emergency stops over time. Speed Graph

SUMO Simulation View

SUMO visualization of traffic flow through an X-junction.
Green vehicle represents the emergency vehicle, other vehicles yield to it. SUMO Simulation

Sprint Summary

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 Overview

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

๐Ÿ”— Repository & Commits