Assignment #2 -
Parts: 1 Breadboard, 1 Red LED, 1 Yellow LED, 1 Green LED, 3 resistors (220 ohm red, red, brn, gold), at least 8 jumper wires
In Class We'll Discuss:
- CQCQ - Link
-Morse Code to 800 hz - Link
-LEDs and Resistor Codes
-Calculating Current Limiting resistor values in ohms (
Ω
) -
Ohm's Law V=I R
10mA at 5 Volt, 20mA at 5 Volt, Current at 5 Volts and 220 ohms
** Note: Arduino Digital Pins can safely output a maximum of 40 mA

-Comic Strip Pages 10 - 11 - Wiring LEDs on a breadboard
- Don't let the Smoke Out !!! - Use only prescribed wiring !
- Wire with the Power OFF (USB unplugged)
With no Power to your Arduino:
Wire 3 LEDs (with 3 Current Limiting Resistors) to Pins 4,5,6
Pin4 to Resistor1.1 (resistor 1 - wire 1)
Resistor1.2 to LED+ (resistor 1 - wire 2)
LED- to Gnd
Pin5 to Resistor2.1 (resistor 2 - wire 1)
Resistor2.2 to LED+ (resistor 2 - wire 2)
LED- to Gnd
Pin6 to Resistor3.1 (resistor 3 - wire 1)
Resistor3.2 to LED+ (resistor 3 - wire 2)
LED- to Gnd

1) Modify Blink to test each LED
2) Write a program to simulate a traffic light.
Green for 10 Seconds
Yellow for 2 Seconds
Red for 5 Seconds
Add comment lines to the top of your program to explain what is wired to the Arduino
