HomeExperiments
Traffic Light Controller
Robotics

Traffic Light Controller

Build a 3-LED traffic light system and program it to cycle through red, yellow, and green with realistic timing.

30 min (set-up 10 min)
Robotics Fundamentals

What students learn

Students learn sequential logic by controlling multiple LEDs in a timed sequence, simulating a real traffic light system.

The science behind this experiment

  • Sequential logic executes steps in a fixed order
  • Each LED needs its own current-limiting resistor
  • Traffic lights follow international standards for phase timing
  • State machines represent systems with defined states and transitions

Key relation: Total cycle time = T_green + T_yellow + T_red

Equipment used

  • Arduino Uno R3
  • Breadboard
  • 1x Red LED
  • 1x Yellow LED
  • 1x Green LED
  • 3x 220Ω resistors
  • Jumper wires

Questions for students

  • How would you add a pedestrian crossing button to this traffic light?
  • Why do real traffic lights have sensors embedded in the road?

What to expect

The three LEDs cycle in the correct traffic light sequence with realistic timing. A traffic light controller demonstrates sequential logic — executing steps in a defined order with precise timing. Each state (green, yellow, red) has a specific duration and transition rule.

Run this experiment in your classroom

This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.

See the ATP Volta mobile science labTalk to our team

The full experiment library

Eighty-six guided experiments across physics, chemistry and biology — each with learning goals, equipment, background theory and questions for students. Browse the library

Physics 42
Chemistry and biology 44