Arduino Traffic Light
I started the basics of Arduino on TinkerCad, and then after I got a hang of the wiring process, I moved onto the actual Arduino. I used a bread board, so I didn't have to solder the wire. I used a common ground, which is represented in the blue wire. Pins 13, 12, and 11 are assigned to a specific pin, so when I write the code they work.
My code starts with the opening syntax, "void setup ()" and then continued to my output commands where I would define each of my pins. I then use the "void loop()" command to set up the rest of the code on a loop. This loop is separated into 3 sections where I use time delays, so I have one light on at a time and the other two off.
As shown in the picture,
digitalWrite (13, HIGH);
digitalWrite (12 LOW);
digitalWrite (11 LOW);
This switches as then the other two pins take place of pin 13 and look like the code in the picture beside.
![](https://www.google.com/images/icons/product/drive-32.png)
This is the video of the Traffic Lights in action!!