Arduino: Simple Traffic Lights [MINI PROJECT]


This is a simple Arduino circuit that imitates a traffic light controller. It's intentionally made very simple so that it's easy to understand the code.

Once you have understood it, try to expand on the code so that it behaves more like real traffic lights. Ex: Real traffic lights never jump straight from red to green. Instead, they light up the red and yellow for a bit, before turning on the green light.

Part list:

  • Breadboard
  • Jumper wires
  • Red LED
  • Yellow LED
  • Green LED
  • 3 x resistors 220 Ohm

Connection Diagram

Connection diagram for the traffic lights

Members Only Section

Hey there! To get access to this and all the other resources to learn electronics with Ohmify, you need to be a member.