Traffic Light Control Using IoT With Motion Sensor
Traffic Light Control Using IoT With Motion Sensor
Laboratory Activity 9
Project Title
Traffic Light Control using IoT with motion sensor
1. Objective(s):
1. Develop a control system capable of controlling the traffic lights to turn green, yellow and red for
government and private emergency vehicles
2. Integrate a control system for the quick response of the emergency unit and avoid accidents in
intersections that might cause property damages
3. Establish a wireless connectivity system using IoT based communication w/ Blynk App that
facilitates the system from the sensors to web applications.
2. Background
Traffic congestion and accidents at intersections are significant issues, especially when emergency
vehicles need to pass through. Traditional traffic light systems do not prioritize emergency vehicles, leading
to delays and potential accidents. This laboratory activity aims to develop a smart traffic light control system
that can detect emergency vehicles and adjust the traffic lights accordingly. The system will use IoT
technology and the Blynk app for manual control, ensuring quick response times and reducing the risk of
accidents.
1. NodeMCU ESP8266
2. LEDs
3. PIR sensor
4. Jumping wires
4. Design
System Architectecture
Flowchart
Block Diagram
5. Procedures
2. LED transitions:
- Making sure only one LED is ON at any given time.
- Check for smooth transitions without delays or flickering.
Presentation
The system was tested in various scenarios to ensure its functionality. The normal traffic light sequence
was verified, and the PIR sensor's ability to detect motion and interrupt the sequence was confirmed.
Manual control via the Blynk app was also tested to ensure seamless switching between automatic and
manual modes.
Analysis
The system successfully followed the normal traffic light sequence, with each LED turning on and off as
expected. The PIR sensor accurately detected motion, causing the red light to activate immediately. Manual
control through the Blynk app was responsive, allowing for real-time control of the LEDs without affecting
the other lights.
Interpretation
The results indicate that the system can effectively manage traffic lights, prioritizing emergency vehicles
when motion is detected. The integration of IoT technology and the Blynk app provides a reliable method
for manual control, ensuring flexibility and quick response times.
7. Conclusion:
The laboratory activity successfully demonstrated the development of a smart traffic light control system.
The system met all the objectives, including the ability to control traffic lights for emergency vehicles,
integrate a quick response control system, and establish wireless connectivity using IoT. The project
highlights the potential for improving traffic management and safety at intersections.
This innovation not only addresses the immediate need for faster emergency response but also promotes
safety for all road users by reducing the likelihood of accidents at intersections. It represents a significant
step towards smarter and more responsive urban traffic management, leveraging technology like sensors,
GPS, and communication networks to create real-time adaptability.
For governments, such a system reflects a commitment to public welfare and efficient resource utilization.
For private entities, it demonstrates the integration of technology with societal responsibility. Ultimately, this
control system bridges the gap between technological advancement and practical application, creating
safer and more efficient roads for everyone.
8. Assessment (Rubric for Laboratory Performance):