Projects / Ideas / Adaptive traffic light model

Adaptive traffic light model

AdvancedEdge AIIdeaReviewed
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

How to build it

  1. Count vehicles in each lane zone
  2. Work out green time from the counts
  3. Run a safe light sequence with amber
  4. Keep a minimum and maximum green
  5. Compare waiting time with fixed timing

Related projects

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.