Multiple-led-lights:traffic Lights

by JudyChen in Circuits > Arduino

305 Views, 0 Favorites, 0 Comments

Multiple-led-lights:traffic Lights

Multiple-led-lights: traffic lights

It is a traffic light simulator.

Program the Arduino

截圖 2020-11-14 下午3.00.14.png

The following link is the website for the program:

https://create.arduino.cc/editor/judy1104chen/3c79...

I make the light delay longer, it is because if it blinks too fast, the car will not be able to cross the road.

original link:

https://www.instructables.com/Multiple-Blinking-L...

Connecting the LEDs

jjjjj.jpg

You need 7 wires and 3 LEDs.

First, plug a wire from 13 on the Arduino to the top row on the breadboard. Next, plug a wire from 12 on the Arduino to the top row on the breadboard. Then plug a wire from 11 on the Arduino to the top row on the breadboard. Connect a wire going from the negative rail to the right of the other wires on the breadboard. Lastly, put the longer leg of the Led (+) under the wire that goes to the Arduino. The shorter leg of the LED goes under the port that connects to the negative rail.

Working

Arduino Leonardo

Make It Look Like a Traffic Light

111111.jpg

I use a bag to cover the breadboard. Then, cut 3 holes to let the light more shining.