top of page
Search

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.



 
 
 

7 commentaires


igorntwari28
04 août 2020

great..it's working

J'aime

Brian nziza
Brian nziza
27 juil. 2020

worked


J'aime

evekumutoni
05 juin 2020

It worked

J'aime

Ismael Siriyamungu
Ismael Siriyamungu
01 juin 2020

Worked !!

J'aime

jocelyne
jocelyne
13 mai 2020

worked!

J'aime
Post: Blog2_Post

©2019 by watchIT group ltd

bottom of page