Traffic lights are a set of color coded signals installed at busy road intersections or junctions. A road signal for directing vehicular traffic , typically red for stop, green for go, and yellow for proceed with caution. Also called stoplight, traffic signal.
The Menya IoT kit traffic light is a fun little project that you can build in under an hour. Here’s how to build your own.
Procedure
Traffic light Circuit
the table below show how to connect pins of the arduino to the LEDs
Circuit connection on the Board
Arduino sketch
Code explanation
Syntax ( the structure of statements in a computer language )
digitalWrite (pin , value)
pinMode(pin, mode)
Parameters
pin: the Arduino pin number. value: HIGH or LOW.
mode: INPUT, OUTPUT,
digitalWrite() description: Write a HIGH or a LOW value to a digital pin.
pinMode() description : Configures the specified pin to behave either as an input or an output.
great..it's working
worked
It worked
Worked !!
worked!