Wednesday, February 6, 2013

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:


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.

For more assistance contact Micro Center Technical Support.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.