Automatic Railway Gate for Unmanned Railway Crossing Using Arduino

circuit diagram 1 (1)

Untested Circuit 1

The aim of this project is to save lives of people who are crossing unmanned railway crossings; by providing an automatic railway gate solution. There are many accidents occurred and lives are lost while crossing the unmanned railway crossings in India.

Materials Used:

  • Wood
  • Thermocol
  • Train and Track,

Electronic components:

  • IC L293D
  • IR Sensor set
  • Arduino Uno
  • DC Motor
  • GSM Module
  • Solar Panel (Next phase of project)
  • Bread Board, wires and Power supply

Circuit operation

Arduino gives a pulse to the ultrasonic sensor. The ultrasonic sensor has a transmit eye and a receive eye. When the Arduino gives a pulse to ultrasonic sensor, the transmit eye transmits an ultrasonic wave. When the train arrives, the ultrasonic wave bounces back. Then the receive eye receives the ultrasonic wave. It gives signal to the arduino; which calculates the distance.

The formula to calculate the distance is to multiply the speed of sound with the time taken for the ultrasonic wave to bounce back and dividing the answer by two.

Then the L293D and the buzzer gets signal from the Arduino and it gives output to the motor. And then Railway gate falls/closes. After the train crosses, the gate goes up/opens. The Motor for Railway gate can also be powered from Solar Panel.circuit diagram 1 (1)

Applications & Benefits

If installed in unmanned railway crossings, it prevents accidents and saves lives.

  • Saving lives of people
  • Eco friendly solution.
  • Low cost
  • Can be easily installed

Program

//pin which triggers ultrasonic sound
const int pingPin = 13;

//pin which delivers time to receive echo using pulseIn()
int inPin = 12;

//range in cm which is considered safe to enter, anything
//coming within less than 5 cm triggers red LED
int safeZone = 5;

//LED pin numbers
int right = 5;
int left = 2;
int buzzer =10;

void setup() {
// initialize serial communication
Serial.begin(9600);
}

schematic

Read more: Automatic Railway Gate for Unmanned Railway Crossing

Leave a Comment

Your email address will not be published. Required fields are marked *