Forge · Invention Blueprint
School-run traffic lights
A fixed-time signal gives the busy north–south road only 10 s of green and the quiet east–west road 40 s, so queues on the main road grow all morning. Choose the two green times so the mean wait is at most 20 s, nobody waits more than 60 s, and there are no safety violations.
Beginner · guidedTransport systems
Starting design: the Explorer system of the Smart Transportation Junction.
Constraints
- Mean wait at most 20 s
- Nobody waits more than 60 s
- Zero safety violations
Components
Crossroads · Signal controller
Before you start
- Timed sequences: the traffic light (Level 2)
- Stacks and queues: who goes next? (Level 3)
Extensions
- Work out each road's share of the traffic and compare it with its share of the green time.
- Make the whole cycle twice as long with the same split. What happens to the longest wait?
Learning pathway
- 1Watch the queuesRun it and compare the two queue plots. One road empties every cycle; the other only grows.
- 2Share by demandNorth–south has about 10 cars a minute and east–west about 4. Give the busier road the bigger share of green.
- 3Mind the cycleEvery change of lights loses a few seconds to amber and clearance, so very short greens waste time too.
- 4Check fairnessLook at both roads' mean waits as well as the overall mean before you save your best revision.
Your project
Switch freely between Learn (the pathway, step by step), Challenge (the settings and targets) and Create (the full sandbox). Everything stays private in this browser; your technical document is generated from it.
Curriculum
- Timed sequences: the traffic light (Level 2)
- Stacks and queues: who goes next? (Level 3)
- A state machine in twelve lines (Level 2)
Labs
Technically checked by automated tests; not yet reviewed by an educator. Results come from simplified educational models, never from real hardware.