Traffic Light (children)

by mike05122005 in Circuits > Arduino

72 Views, 1 Favorites, 0 Comments

Traffic Light (children)

2020-05-28.jpg

I notice the importance of traffic light during the weekends. Since I found out that there were many accidents cause by drivers who doesn't follow the traffic. So then I wanna make a model of traffic light to help others realize the importance of it.

Material

Arduino Leonardo

Jumping Wires make to male

Green LED

Red LED

Yellow LED

Resister

Code

Code

The code will changes the shine of each LED light. It also affect the speed between the shine of two LED lights. You could change the delaying time of LED light to make it faster or slower.

Circuit

1. There were a long leg and a short leg on the LED. Connect the long leg to D-pin and the short leg to the resister and to the negative.

2. Repeat step 1 for the three the LED. Make sure that the oder of the light is Green Yellow than Red.

3. Last, plug the positive and negative to the electrode.

4. Positive to 5V; Negative to GND

How It Works

It is a traffic light make with LED. The traffic light changes color just like a normal traffic. However, the delaying time between the traffic will decrease as it gets to the stopping color(Red).

Youtube Code