Arduino Traffic Light Controller | 4-Way
by Mudit5246 in Circuits > Arduino
8606 Views, 9 Favorites, 0 Comments
Arduino Traffic Light Controller | 4-Way
In this post, you are going to learn about how to make an Arduino traffic light controller. This traffic light controller will be used to control the flow of traffic. These can be applied at high traffic areas to avoid traffic blocks or accidents.
This project is done to give you an idea of how the traffic light controller works. This is not the real-time traffic light controller.
So at the start, the green light of signal 1 and red lights at other signals will light up to give time to the vehicles at signal 1 to pass. After 5 seconds, the yellow light at signal 1 will light up to give an indication that the red light at signal 1 is about to come up and also to give an indication to the vehicles at signal 2 that the green light is about to light up. So after 2 seconds, red light at signal 1 will come up and green light at signal will come up meaning vehicles at signal 1 must stop and vehicles at signal 2 can move. Similarly, the traffic light controller will work for signal 3, signal 4 and the system will keep looping.
Components Required:
1. Arduino UNO
2. LEDs *12
3. Breadboard
4. Resistors *12(220 ohms)
Circuit Diagram:
There is a total of 12 LEDs used in this project. Each signal has 3 LEDs (Red, Yellow and Green) connected to it through the 220-ohm resistors.
The resistors are used to limit the current that is going to pass through the LEDs. If you won’t use the resistors then the LEDs may burn due to excessive current.
Code:
For credit, please follow my following accounts.
Thanks
For more interesting projects connect with me on:
Youtube: https://www.youtube.com/channel/UCTS10_CRYJhT-vb9...
Facebook page: https://www.facebook.com/techeor1/
Instagram: https://instagram.com/official_techeor?igshid=uc8...