If what you're looking for is missing, call us — we'll help you find it

Beginner Projects

Arduino Traffic Light with Pedestrian Button

Red, yellow and green LEDs cycle on a timer; a button requests a crossing.

Arduino Traffic Light with Pedestrian Button — main component

Overview

A first multi-LED project with a state machine and a button interrupt.

Build Steps

  1. Wire three LEDs

    Each LED goes through its own 220 Ω resistor to a digital pin.

  2. Add the button

    Wire a tactile button to ground with INPUT_PULLUP.

  3. Write the cycle

    Cycle green, yellow, red using millis(); a button press shortens the green phase.

Related Projects