Hardware Required:
- Arduino Uno board
- LED (x5)
- 330 ohm (x5), 10 K ohm resistors
- Pushbutton switch (N.O.)
- jumper wires
|
Schematic:
|
Project Steps:
- Insert LEDs with their short legs in the ground strip (column).
- Insert 330 ohm resisters between long legs of the LED and the next channel row.
- Connect wires between LED resistors and the Arduino pins:
Red to D9
Yellow to D10
Green to D11
Orange to D6
White to D5
- 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.
- Connect a wire between the ground and the ground strip (column)
- Connect the Arduino unit to your computer with the USB cable
- 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.