top of page
Search

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

Writer's picture: WatchIT GroupWatchIT Group

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件のコメント


igorntwari28
2020年8月04日

great..it's working

いいね!

Brian nziza
Brian nziza
2020年7月27日

worked


いいね!

evekumutoni
2020年6月05日

It worked

いいね!

Ismael Siriyamungu
Ismael Siriyamungu
2020年6月01日

Worked !!

いいね!

jocelyne
jocelyne
2020年5月13日

worked!

いいね!
Post: Blog2_Post
bottom of page