Hard⏱ time3 hr$ cost0
Smart Traffic Light
Simulate an intersection where an AI adjusts light timing to ease traffic.
Start building ↓
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
AI
Hand-Drawn Digit Classifier
Train a tiny neural network in the browser to recognise digits you draw with a mouse.
Medium⏱2 hr$0
AI
Rock-Paper-Scissors Vision
Use a webcam and a no-code model to recognise your hand and play rock-paper-scissors.
Easy⏱1 hr$0
AI
Spam Email Classifier
Train a model on example messages so it can flag new ones as spam or not.
Medium⏱2 hr$0