Tag: level crossing project

1 articles found.

Automatic Railway Gate Control with Raspberry Pi - Proteus Simulation

Automatic Railway Gate Control with Raspberry Pi - Proteus Simulation: three FC-51 IR sensors, an SG90 barrier, warning lights and a train signal on a Raspberry Pi 5

Hello friends, I hope you all are doing great. Today, I am going to share the Automatic Railway Gate Control with Raspberry Pi - Proteus Simulation, project 108 of our IoT Projects series. Many level crossings still depend on a gatekeeper who closes the gate by hand when a train is due, and accidents happen when the gate is closed late or not at all. An automatic railway gate sees the train coming and closes the crossing by itself. It is one of the most popular final year projects, and here is a complete one on a Raspberry Pi 5, with the circuit, the Python program and a Proteus simulation you can run before you build the model. Two IR sensors watch the track, one on each side of the crossing, so the Pi knows when a train is coming and from which direction. A third sensor looks across the road under the barrier. When a train comes, the road's red lights flash and a bell rings, and after a few seconds an SG90 servo lowers the barrier. Only when the barrier is down does the train's signal turn green. If a car is standing on the crossing, the barrier waits and the train's signal stays red: the crossing is never closed on top of a vehicle. When the train has passed the sensor on the far side, the signal goes red again and the barrier rises. In this tutorial, we will go through the circuit, how the train is detected, the safety rules and the Python code. Then we run two trains and a stuck car in the simulation. At the end, you can download the project with the program and every ...