Grade 7 Robotics Project
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.
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:
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.
Design Thinking is a 5-step process used by engineers to solve real-world problems. Let's apply it to our traffic problem:
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.
"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.
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!
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.
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!
Timing Lab
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.
Intersection Simulator
A bird's-eye view of the intersection. Cars arrive from all 4 directions and obey the signals. Press Run to start.
Challenge Mode
Each scenario shows how much traffic each road has. Set the green times wisely — more traffic should get more time!
Knowledge Check
5 questions about traffic signals. Choose the best answer for each one.