Arduino Workshop - Project 06: Traffic & Pedestrian signal


Hardware Required:

  • Arduino Uno board
  • LED (x5)
  • 330 ohm (x5), 10 K ohm resistors
  • Pushbutton switch (N.O.)
  • jumper wires

    Hardware Required

Schematic:




Project Steps:

  1. Insert LEDs with their short legs in the ground strip (column).
  2. Insert 330 ohm resisters between long legs of the LED and the next channel row.
  3. Connect wires between LED resistors and the Arduino pins:
    Red to D9
    Yellow to D10
    Green to D11
    Orange to D6
    White to D5
  4. Connect pushbutton as in project 4 & 5. Connect a wire from +5V to one pin. Connect a 10K ohm resistor to the second pin. Connect a wire between the ground and the 10K ohm resistor. Connect the second pin (with the resistor) to D7.
  5. Connect a wire between the ground and the ground strip (column)
  6. Connect the Arduino unit to your computer with the USB cable
  7. Open the Project6 sketch into the Arduino software and upload it to your module

Things to try:

  • Change the timing of the lights.
  • Change the "pedestrian" button to use a different pin than D7
  • Add 3 more LEDs and create a second signal light for a traffic intersection.

Technical Support Community

Free technical support is available for your desktops, laptops, printers, software usage and more, via our new community forum, where our tech support staff, or the Micro Center Community will be happy to answer your questions online.

Forums

Ask questions and get answers from our technical support team or our community.
PC Builds
Help in Choosing Parts
Troubleshooting

Knowledge Base

Helpful articles written by Micro Center Experts.
ESET
Windows

Sign in for the best experience

Access helpful features and personalize your experience - Sign in or create an account now

Sign In
Don't have an account? Create Account