Smart Street and Traffic Light Control System Using Arduino
by Youssef Abdelghaffar in Circuits > Arduino
54 Views, 1 Favorites, 0 Comments
Smart Street and Traffic Light Control System Using Arduino

This project is a smart street and traffic light system using Arduino. It helps save electricity by turning on street lights only when it's dark and when someone is nearby. It also controls traffic lights based on movement, instead of staying on all the time. The goal is to make roads safer and more energy-efficient using simple sensors and automation.
Made By: Youssef Abdelghaffar & Youssef Khalifa
Supplies
Electronics:
- 1x Arduino UNO
- 2x IR Sensors
- 1x LDR Sensor
- 2x Red LEDs
- 2x Yellow LEDs
- 2x Green LEDs
- 4x Orange LEDs
- Breadboard
- Jumper Wires (Male-Male & Female-Male)
Build & Decoration:
- Cardboard
- Paint (Black/White/Yellow)
- Cutter/Scissors
- Paper
- Glue Gun
Analyze Circuit Diagram

Analyze the circuit Diagram an get a clear view on the circuit
Test on Breadboard With Code
connect The LEDs and the sensors to the breadboard and the arduino to check if the code and the sensors are working and here are the pins:
Traffic light 1 -->
- green led 1: pin 11
- yellow led 1: pin 13
- red led 1: pin 9
Traffic light 2 -->
- green led 2: pin 8
- yellow led 2: pin 12
- red led 2: pin 10
Street light pins -->
- Infrared sensor 1: pin 7 (at the beginning of the street to check movement)
- Infrared sensor 2: pin 6 (at the end of the street to check if a car is coming from the opposite direction or Leaving)
- LEDs: pin 5 (Note: all the LEDs for the street light art connected in one pin because they operate as one lamp.)
- LDR sensor: pin 4 (to check if there is sunlight or not)
And Here is the code below
Downloads
Making the Design




Use your scissors/cutter to cut cardboard and paper to build the mini street and use more wires to extend the LEDs and sensors and attach them to the mini street build. and finally paint it all to get the beautiful street look and building that you want.
The End


And there you have it the smart road. all automatic, functional without any human/manual interaction.