Smart Adaptive
Traffic Signal Controller

Traditional signals waste time giving equal green light to every road — even empty ones. You are going to build a smarter system that adapts to real traffic.

🏙️
1  The Scenario — What is happening in our city?
▼

Modern cities face a serious problem — traffic congestion. The main cause is not the number of cars, but the way we manage them. Traditional traffic signals give the same green-light time to every road, no matter how many vehicles are waiting. This means:

🚗 Busy Road — 80 cars waiting
30s
gets same 30 sec ← UNFAIR
🚗 Empty Road — 5 cars waiting
30s
also gets 30 sec ← WASTEFUL
❌ Traditional Signal Problems
• Same green time for all roads
• Busy roads cause long queues
• Empty roads waste green time
• Increased fuel consumption
• More pollution, more frustration
✅ Smart Adaptive Solution
• More traffic = more green time
• Less traffic = shorter green time
• No wasted seconds
• Less fuel, less pollution
• Happier commuters!
🎯
2  Problem Statement
▼
OFFICIAL PROBLEM STATEMENT

Design and develop a Smart Adaptive Traffic Signal Controller using an Arduino Uno R3 and four traffic signal modules. The system should dynamically allocate the duration of the green signal based on the traffic density of each lane.

📋 OBJECTIVES — What your system must do:
1
Detect the traffic density on all four roads.
2
Allocate longer green time to roads with higher traffic.
3
Allocate shorter green time to roads with lower traffic.
4
Ensure that only ONE road has a green signal at any given time.
5
Repeat the process continuously as traffic conditions change.
🔧 YOUR KIT — The tools you have:
🤖
Arduino Uno R3
The brain — runs your code
🚦
4× Traffic Signal Modules
Red, Yellow, Green LEDs each
🔌
Jumper Wires
Connect everything together
🗺️
Intersection Base Plate
Top-view road sticker
🧠
3  Design Thinking — How do we solve it?
▼

Design Thinking is a 5-step process used by engineers to solve real-world problems. Let's apply it to our traffic problem:

👁️
STEP 1 — EMPATHISE

Understand the problem from the user's view

Imagine you are a driver stuck at a red light while the crossing road is completely empty. How frustrating! Or you are late to school because traffic never moves. We need to understand who is affected and how.

🔍
STEP 2 — DEFINE

Write a clear problem statement

"Traditional traffic signals give equal green time to all roads, causing unnecessary delays on busy roads and wasted time on empty roads." — This is our defined problem. Now we know exactly what to solve.

💡
STEP 3 — IDEATE

Brainstorm possible solutions

Ideas our team came up with: ① Give more time to roads with more cars. ② Use sensors to count cars in real time. ③ Use a camera + AI. ④ Let a person control signals manually. We picked ① as it is simple, effective, and buildable with our kit!

🔨
STEP 4 — PROTOTYPE

Build a working model

We use our Arduino + 4 traffic signal modules + base plate to build a real, working prototype. The code we write controls which signal gets green and for how long — based on the traffic density we define.

✅
STEP 5 — TEST

Test and improve

We test our system: Does the busy lane get more green time? Does only one signal show green at a time? Does the cycle repeat? We observe, note problems, and improve our code. That is exactly what this lab helps you do!

🚀
4  Your Mission — What you will do in this lab
▼
⏱️ Timing Lab
See how green time is shared across 4 signals. Edit times and watch the Gantt chart update live.
🗺️ Intersection Sim
Watch cars move through a real top-view intersection with your signals controlling traffic.
🎯 Challenge Mode
Solve real traffic scenarios — set green times wisely and get scored on your decisions.
📝 Quiz
Test your understanding with 5 questions about traffic signals and smart systems.
🏁
When you complete this lab, you will have the full understanding and logic needed to write and upload the Arduino code for your real hardware kit!

How do signals share time?

Each signal gets Green → Yellow → Red time. Edit the seconds below and watch the Gantt chart update live. Only ONE signal can be green at a time.

Total cycle: —s
Signal Timing Chart
One full cycle shown — scroll shows repeating pattern
🟢 Green 🟡 Yellow 🔴 Red
Edit the signal times above to see the cycle formula here.

Watch Spark City from above

A bird's-eye view of the intersection. Cars arrive from all 4 directions and obey the signals. Press Run to start.

Speed:
Vehicles: 3
Press Run to start
Signal: — Phase: — Time: —

Can you solve Spark City's traffic problems?

Each scenario shows how much traffic each road has. Set the green times wisely — more traffic should get more time!

🧠 HINT — The Golden Rule of Traffic Timing
If Road A has 2× more traffic than Road B, give Road A 2× more green time. Total green time for all signals should add up to about 60 seconds for one full cycle.

Test what you've learned

5 questions about traffic signals. Choose the best answer for each one.

0/5