Arduino Stop Light
Beginners stoplight project to be used as an intro to circuits and programming.
Supplies
1) Arduino board
1) breadboard
4) M-M dupont wires
3) 220 ohm resistors
1) red LED
1) yellow LED
1) green LED
On your board of choice, we will be wiring from pin 4 to a resistor, from the other side of the resistor to the long leg of a red led, and from the short leg of the led to ground. Repeat this for pins 5 and 6 using yellow led for 5 and green led for 6. Then run a wire from ground on the breadboard to a ground pin on your Arduino board to complete the circuit.
Now the circuit is wired, you can copy the code from my GitHub and paste it into arduino IDE. Make sure the correct board and port is selected, then upload the code.
Congrats! You should see your stoplight light up! Play around with the numbers in “delay()” to shorten or extend light times!