Simulation – Traffic light

For this project we are simulating a traffic light with 6 LEDs for 2 traffic lights. Select the used inputs and outputs on the simulator. In this case we use LEDs on digital pins 2, 3, 4, 6, 7 and 8. You can change the colors of the LEDs by clicking on them. Connect the Arduino with the COM port in the simulator and start simulating.

Arduino code