Sei sulla pagina 1di 9

INTERNET OF THINGS(ECE35001)

ASSESSMENT – 4

NAME:DESTA YAKOB
REG.NO:18BML0121
Slot: L37+L38
FACULTY:PROF.KARTHIKEYAN B
TWO WAY TRAFFIC CONTROL SYSTEM

AIM: To Design a two-way traffic control light system with


LED and ARDUINO.
APPARATUS REQUIRED: TINKERCAD software

LIST OF THE COMPONENTS:


OPERATION:

⬧ By using TINKERCAD software we are making the connection of the basic


circuits with AERDUINO.
⬧ Make the connection and follow the procedure

THEORY:
Traffic congestion is a growing problem in many countries especially
in large urban areas. The reason behind this is the increase in number
of vehicles all over the world. Due to this vehicles do not run efficiently
which increases travel time, noise pollution, carbon dioxide emissions
and fuel usages. In large urban cities, traffic signal controller plays an
important role to improve the efficiency of vehicles, traffic congestion
and hence reduces travel time, noise pollution, carbon dioxide emission
and fuel used. A four stage traffic light system for real-time traffic
monitoring has been proposed to dynamically manage both the phase
and green time of traffic lights for an isolated signalized intersection
with the objective of minimizing the average vehicle delay in different
traffic flow rate. Traffic lights are essential in modern road networks to
help control and maintain the flow of traffic. The control of traffic light
signal is one of the subjects of intelligent or advance systems being
investigated by researchers because this kind of control has a direct
impact on the effectiveness of urban transportation systems.
PROCEDURE:
⬧ Search the TinkerCAD in web browser
⬧ Open the TinkerCAD by your login
⬧ Create the project
⬧ Click in the circuit button to create the circuit
⬧ Search the elements in search button
⬧ Make the connection as per the circuit diagram
⬧ Write the code – Text/Block+Text/Block
⬧ Simulation of the circuit and see the results.

CIRCUIT DIAGRAM:
OUTPUT:
The car passes when Green light is glowing on one side while on
other side the car stoppes when Red light is glowing.Yellow light
shows the delay as shown below:
CODE:
// light one
int red1 = 10;
int yellow1 = 9;
int green1 = 8;

// light two
int red2 = 13;
int yellow2 = 12;
int green2 = 11;

void setup(){
// light one
pinMode(red1, OUTPUT);
pinMode(yellow1, OUTPUT);
pinMode(green1, OUTPUT);

// light two
pinMode(red2, OUTPUT);
pinMode(yellow2, OUTPUT);
pinMode(green2, OUTPUT);
}
void loop(){
changeLights();
delay(15000);
}
void changeLights(){
// turn both yellows on
digitalWrite(green1, LOW);
digitalWrite(yellow1, HIGH);
digitalWrite(yellow2, HIGH);
delay(5000);

// turn both yellows off, and opposite green and red


digitalWrite(yellow1, LOW);
digitalWrite(red1, HIGH);
digitalWrite(yellow2, LOW);
digitalWrite(red2, LOW);
digitalWrite(green2, HIGH);
delay(5000);

// both yellows on again


digitalWrite(yellow1, HIGH);
digitalWrite(yellow2, HIGH);
digitalWrite(green2, LOW);
digitalWrite(red1, LOW);
delay(3000);

// turn both yellows off, and opposite green and red


digitalWrite(green1, HIGH);
digitalWrite(yellow1, LOW);
digitalWrite(red1, LOW);
digitalWrite(yellow2, LOW);
digitalWrite(red2, HIGH);
delay(5000);

INFERENCE:
It can be observed from the result that a two way traffic light system provide
better performance in terms of average vehicle delay than pre-timed control
system. Therefore, two way traffic light system improve the efficiency of
vehicles, traffic congestion and hence reduce travel time, noise pollution, carbon
dioxide emission, fuel used and save the time of human being. In the fixed time
system, being an open loop system phase sequence is not changeable and the
green time is not extended whatever the density of carat the junction.

Potrebbero piacerti anche