Arduino: Simple Traffic Lights [MINI PROJECT]

Description

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

Members only

The rest of this lesson is for Ohmify members

Log in to see it, or become a member to get access to every course and the community.