Arduino Stop Light

by spookss15 in Circuits > Arduino

23 Views, 0 Favorites, 0 Comments

Arduino Stop Light

IMG_4870.png

Beginners stoplight project to be used as an intro to circuits and programming.

Supplies

3693114118949070089.jpeg

1) Arduino board

1) breadboard

4) M-M dupont wires

3) 220 ohm resistors

1) red LED

1) yellow LED

1) green LED

8731609996495527506.jpeg
IMG_4870.png

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.


IMG_4876.png

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!