Multiple-led-lights:traffic Lights
by JudyChen in Circuits > Arduino
325 Views, 0 Favorites, 0 Comments
Multiple-led-lights:traffic Lights
![Multiple-led-lights: traffic lights](/proxy/?url=https://content.instructables.com/F17/5U5R/KHG9TQQE/F175U5RKHG9TQQE.jpg&filename=Multiple-led-lights: traffic lights)
It is a traffic light simulator.
Program the Arduino
![截圖 2020-11-14 下午3.00.14.png](/proxy/?url=https://content.instructables.com/FE6/H3CZ/KHG9TQT6/FE6H3CZKHG9TQT6.png&filename=截圖 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:
Connecting the LEDs
![jjjjj.jpg](/proxy/?url=https://content.instructables.com/FBX/LLMJ/KHG9TQTX/FBXLLMJKHG9TQTX.jpg&filename=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](/proxy/?url=https://content.instructables.com/F95/LVVH/KHG9TQQK/F95LVVHKHG9TQQK.jpg&filename=Arduino Leonardo)
Make It Look Like a Traffic Light
![111111.jpg](/proxy/?url=https://content.instructables.com/FIS/M3EY/KHG9TQVS/FISM3EYKHG9TQVS.jpg&filename=111111.jpg)
I use a bag to cover the breadboard. Then, cut 3 holes to let the light more shining.