Idea
In short
How do you build an adaptive traffic light model?
A camera counts vehicles on each road of a model junction and gives green time to the busier road. You need Raspberry Pi 5, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi 27 W USB-C power supply, Raspberry Pi Camera Module 3, LED 5 mm red × 4, LED 5 mm yellow × 4, LED 5 mm green × 4 and Resistor 220 Ω × 12.
- Level
- Advanced
- Time
- About 360 min
- Parts
- 8
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Use detection results to control a system.
Parts list
- Single Board Computers
- SBC Accessories
- SBC Accessories
- SBC Accessories
- SemiconductorsLED 5 mm red × 4
- SemiconductorsLED 5 mm yellow × 4
- SemiconductorsLED 5 mm green × 4
- PassivesResistor 220 Ω × 12
How to build it
- Count vehicles in each lane zone
- Work out green time from the counts
- Run a safe light sequence with amber
- Keep a minimum and maximum green
- Compare waiting time with fixed timing
Common questions
What parts do I need for the adaptive traffic light model?
Raspberry Pi 5, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi 27 W USB-C power supply, Raspberry Pi Camera Module 3, LED 5 mm red × 4, LED 5 mm yellow × 4, LED 5 mm green × 4 and Resistor 220 Ω × 12.
How long does the adaptive traffic light model take to build?
About 360 minutes for a advanced maker.
