IOT-3 Zoro N - Edited
IOT-3 Zoro N - Edited
IOT-3 Zoro N - Edited
Experiment 3
Aim:
To Develop a smart traffic light management system with the help of IoT.
Objective
Input/Equipment Used-
o 1 × Breadboard
o 1 × Arduino Uno R3
o 3 × LEDs (Red, Yellow, Green)
o 3 × 220Ω Resistor
o 3 × Jumper
Procedure-
Connections:
This is the circuit diagram for the traffic light controller by using Arduino.
o Connect LEDs on the breadboard as Red, Yellow, Green, respectively.
o Connect the negative terminal of the LED and connect the 220 Ohm resistor in series.
o Connect these negative terminals to the ground.
o Connect the positive terminal of the LEDs to the pins 2 to 10, respectively.
o Power the breadboard by using 5V and GND on the Arduino
CODE
void setup() {
pinMode(2, OUTPUT); // Red LED
pinMode(3, OUTPUT); // Yellow LED
pinMode(4, OUTPUT); // Green LED
}
void loop() {
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(5000);
Conclusion
You should see your LED turn on and off. If the required output is not seen, make sure you have
assembled the circuit correctly, and verified and uploaded the code to your board. This traffic
light controller includes a crosswalk signaling system. The traffic light controller in this system
can be implemented practically, and it could be expanded.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
Learning Outcomes:
Learn how to integrate different hardware and software components to create a cohesive
system.
Develop skills in working collaboratively in a team, managing tasks, and integrating
different components of the system.
Understand how to optimize the system for energy efficiency, cost, and performance.
Learn about the potential environmental benefits and challenges of deploying smart traffic
systems in urban areas.