S ScienceFairProjects.info
Hard⏱ time3 hr$ cost0

Smart Traffic Light

Simulate an intersection where an AI adjusts light timing to ease traffic.

Start building ↓
fig — working model Result first

The build

Step 01

Model the roads

Simulate cars arriving at an intersection.

Step 02

Add lights

Control green/red durations.

Step 03

Add a rule

Lengthen green for the busier road.

Step 04

Measure

Track average wait time.

Working Principle

The controller watches how many cars wait on each road and gives more green time to the busier direction to cut total waiting.

The science behind it

A closer look

Adaptive control beats fixed timers when traffic is uneven; it's a model of real smart-city systems.

Take it further

Variables to test

  • 1 Compare fixed vs adaptive timing on wait time.
  • 2 Add a pedestrian crossing — how does it cope?

More AI