Traffic Light

I connected red, yellow, and green LEDs with Arduino, and I coded them to light consecutively in a loop. The red LED lights for five seconds, then the yellow LED  flashes for one second; finally, the green LED lights for 4 seconds.  

Traffic code

Arduino with LEDs

Red LED(5 seconds)


Green LED