Tag: traffic light project in Proteus

1 articles found.

Density Based Traffic Light with Raspberry Pi 5 - Proteus Simulation

Density Based Traffic Light with Raspberry Pi 5 - Proteus Simulation: four signal heads and eight FC-51 IR sensors on a Raspberry Pi 5

Hello friends, I hope you all are doing great. Today, I am going to share the Density Based Traffic Light with Raspberry Pi 5 - Proteus Simulation, project 104 of our IoT Projects series. An ordinary traffic light gives every road the same green in a fixed turn, even when one road is empty and another has a long queue. A density based traffic light counts what is actually waiting and gives the green where it is needed. It is one of the most popular final year projects, and here is a complete one with the circuit, the Python program and a Proteus simulation you can run before you build anything. The junction has four roads, north, east, south and west, each with its own signal head of red, yellow and green LEDs. Two IR sensors on each road tell the Raspberry Pi 5 whether a car is waiting at the stop line and whether the queue reaches back to the second sensor. From these the Pi works out the traffic density of every road, picks the busiest road for the next green, makes the green longer when the queue is long and shorter when it is not, ends a green early when its road empties, and makes sure no road waits too long. An ambulance can take the green from a web dashboard on a laptop or a phone. In this tutorial, we will go through the circuit, how an IR sensor detects a car, how two sensors give a density, the decision rules and the Python code. Then we run a whole rush hour in the simulation. At the end, you can download the project with the program and every library file. ...