top of page
Search
Writer's pictureWatchIT Group

Project 1 : How to make a Traffic light 🚦 with Menya IoT Kit.

Updated: Dec 1, 2019

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.



160 views7 comments

7 Comments


igorntwari28
Aug 04, 2020

great..it's working

Like

Brian nziza
Brian nziza
Jul 27, 2020

worked


Like

evekumutoni
Jun 05, 2020

It worked

Like

Ismael Siriyamungu
Ismael Siriyamungu
Jun 01, 2020

Worked !!

Like

jocelyne
jocelyne
May 13, 2020

worked!

Like
Post: Blog2_Post
bottom of page