You are on page 1of 6

ECE3501 – IoT LAB TASKS

NAME: RUDRAROOP BASU


REG NO: 20BEC0394
SLOT: L -25+26
COURSE NAME/CODE: ECE3501 – IoT
FACULTY: APARNA MOHANTY MA’AM
LAB TASK: 1

PROBLEM STATEMENT:
Implement a smart traffic lighting system consisting of two traffic
lights, where the red light glows for 5 seconds, orange for 2 seconds,
and green for 7 seconds respectively.

CIRCUIT:
CODE (BLOCKS + TEXT):
COMPONENTS:
LINK:
https://www.tinkercad.com/things/1tyJZ5nzLxF-
smarttrafficlightingsystem/editel

DISCUSSION:
1) When I changed all the values of the resistors from 1kohm to
1ohm, the following warning sign flashed:

2) When I changed all the values of the resistors to 1Mohm, the


brightness of the LEDs reduced considerably, as the current
through the LEDs reduced. The higher the value of the resistors,
the less bright the LEDs will glow.
3) On removing the resistors completely, the following warning
sign flashed:

4) Therefore, for a suitable value of the resistors, 500ohm to


1kohm works well enough.
RESULT:
Therefore, in this smart traffic system, the first red-green LED
pair will glow for 5 seconds, then the orange LED pair will glow
for 2 seconds, then the next red-green LED pair will glow for 7
seconds and this cycle will continue until the simulation is
stopped.
This has been done so that when the first red light glows for the
first traffic, the other traffic can pass because of the first green
light; then the two orange lights will glow simultaneously; and
lastly, the second red light will glow for the other traffic while
the first traffic can pass due to the second green light.

You might also like