In this project we will make a traffic light with 6 LEDs. The opposite lights below should be placed on the left or right, but the intention is actually to show the principle of a traffic light. The steps are shown in the video above. All the instructions in with a capital letter can be written as normal codes with lowercase letters because of our simulator library update.
Drag the 6 LEDs in the work space. Select the digital pins 2, 3, 4, 6, 7 and 8 for each LED. It’s possible to change the color by clicking on it. Connect the Arduino to the simulator and start the simulation. Use some drawing tools to make a more realistic simulation or add a image as background (folder button icon).