Automatic Railway Gate Control & Track Switching

Similar documents
Seminar Report Railway Gate Control 1. INTRODUCTION

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

AUTOMATIC RAILWAY CROSSING SYSTEM

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

PLC BASED RAILWAY LEVEL CROSSING GATE CONTROL

ANGULAR POSITION CONTROL OF DC MOTOR USING SHORTEST PATH ALGORITHM

WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING IR (PWM and H-Bridge)

AEIJST - January Vol 4 - Issue 1 ISSN Automatic Railway Gate Controller by Using AT89C51

International Journal of Advance Engineering and Research Development. Wireless Control of Dc Motor Using RF Communication

Experiment#6: Speaker Control

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

BIDIRECTIONAL ROTATION OF AN INDUCTION MOTOR WITH A REMOTE CONTROL DEVICE

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

HIGH LOW Astable multivibrators HIGH LOW 1:1

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

ULTRASONIC TRANSMITTER & RECEIVER

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Control of Electrical Lights and Fans using TV Remote

Laboratory Seven Stepper Motor and Feedback Control

CHAPTER 2 PHASE SHIFTED SERIES RESONANT DC TO DC CONVERTER

Multivibrators. Department of Electrical & Electronics Engineering, Amrita School of Engineering

Input/Output Control Using Interrupt Service Routines to Establish a Time base

Advanced Soldier Monitoring and Tracking System Using GPS and GSM Introduction

Process Components. Process component

AppKit: Using the LTC bit Analog-to-Digital Converter

Automatic Motor Detection and Control System (A.M.D.A.C.S.)

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

Introduction to IC-555. Compiled By: Chanakya Bhatt EE, IT-NU

Digital Monitoring Cum Control of a Power Transformer with Efficiency Measuring Meter

Small DC Motor Control

5v AC R. 12v. 1kohm. F=35KHz oscilloscope. 3 Final Project OFF. ON Toggle Switch. Relay 5v 2N3906 2N uF LM311. IR Detector +5v GND LED PNP NPN

Auto-Fact Security System

Hidden Active Cellphone Detector.

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET REV. NO. : REV.

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

AUTOMATIC MISSILE DETECTOR USING ULTRASONIC PROXIMITY DETECTOR

Introduction. Theory of Operation

LM555 and LM556 Timer Circuits

WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING RF COMMUNICATION

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

Speed Control of DC Motor Using Phase-Locked Loop

The Speech Based Floor Cleaning Robot

Rahul Krishna K 1, Meera A 2, Nikhil Mathew 3 1,2,3 EEE Department, Mar Athanesius College of Engineering, Kothamangalam

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Police Siren Circuit using NE555 Timer

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

MICROPROCESSORS AND MICROCONTROLLER 1

Embedded Systems Lab Lab 7 Stepper Motor Application

EDE1204 Bi-Polar Stepper Motor IC

Stepper Motors in C. Unipolar (5 lead) stepper motorr. $1.95 from 100 steps per rotation. 24V / 160mA / 600 gm cm holding 160mA

Microcontroller Based Electric Expansion Valve Controller for Air Conditioning System

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Robotics is a fascinating subject more

GROUP NO:-19 SWARUP HARICHANDAN SATYA PRAKASH PRADHAN SUBHENDU KUMAR TARAI DHANANJAYA NAYAK SUCHISMITA DAS MANOJ KUMAR MOHANTY

Design and Development of an Innovative Advertisement Display with Flipping Mechanism

Electronic Buzzer for Blind

M.Sinduja,S.Ranjitha. Department of Electrical & Electronics Engineering, Bharathiyar Institute of Engineering For Women, Deviyakurichi.

ELM313 Stepper Motor Controller

Lab 8. Stepper Motor Controller

High Current MOSFET Toggle Switch with Debounced Push Button

Industrial Fully Control Dc Motor Drive without Microcontroller. Four Quadrant Speed Control of DC Motor Using MOSFET and Push Button Switch

Standard single-purpose processors: Peripherals

Design Of Low-Power Wireless Communication System Based On MSP430 Introduction:

Power Line Carrier Communication

FRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

International Journal of Advance Engineering and Research Development

Index Terms-Emergency vehicle clearance, Higher density, IR sensor, Micro controller, RFID Technology.

Half stepping techniques

ASTABLE MULTIVIBRATOR

PWM BASED DC MOTOR SPEED CONTROLLER USING 555 TIMER

Design and Development of an Automatic Vehicle Gate Opener

EE 308 Lab Spring 2009

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

Electronic Components

Basic Harris DX Transmitter Tutorial

Portland State University MICROCONTROLLERS

United States Patent [19]

(Refer Slide Time: 00:03:22)

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Metal Detector. Student Lab Guide. Engineering Teaching Laboratory. Lab Partner(s)

Serial Communication AS5132 Rotary Magnetic Position Sensor

DUAL STEPPER MOTOR DRIVER

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Appendix 1. Basic Electronics. The PIC Hardware. Using Transistors (Basic Electronics)

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

Operating Manual Ver.1.1

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

AND ITS APPLICATIONS M.C.SHARMA

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

Monostable multivibrators

Automated Railway Gate Control and Object Detection using Wireless Communication

To design/build monostable multivibrators using 555 IC and verify their operation using measurements by observing waveforms.

Electronic Instrumentation ENGR-4300 Fall 2004 Section Experiment 7 Introduction to the 555 Timer, LEDs and Photodiodes

Electronics. RC Filter, DC Supply, and 555

Each module of the AN/ARC-34 has a special 9-pole test connector to check the B+ voltages, filament voltage, and oscillator negative grid voltages.

/ ABSTRACT

Actuators in Automatic Control System

Transcription:

Automatic Railway Gate Control & Track Switching ABSTRACT: Present project is designed using 8051 microcontroller to avoid railway accidents happening at unattended railway gates, if implemented in spirit. This project utilizes two powerful IR transmitters and two receivers; one pair of transmitter and receiver is fixed at up side (from where the train comes) at a level higher than a human being in exact alignment and similarly the other pair is fixed at down side of the train direction. Sensor activation time is so adjusted by calculating the time taken at a certain speed to cross at least one compartment of standard minimum size of the Indian railway. We have considered 5 seconds for this project. Sensors are fixed at 1km on both sides of the gate. We call the sensor along the train direction as foreside sensor and the other as aft side sensor. When foreside receiver gets activated, the gate motor is turned on in one direction and the gate is closed and stays closed until the train crosses the gate and reaches aft side sensors. When aft side receiver gets activated motor turns in opposite direction and gate opens and motor stops. Buzzer will immediately sound at the fore side receiver activation and gate will close after 5 seconds, so giving time to drivers to clear gate area in order to avoid trapping between the gates and stop sound after the train has crossed. The same principle is applied for track switching. Considering a situation wherein an express train and a local train are traveling in opposite directions on the same track; the express train is allowed to travel on the same track and the local train has to switch on to the other track. Two sensors are placed at the either sides of the junction where the track switches. If there s a train approaching from the other side, then another sensor placed along that direction gets activated and will send an interrupt to the controller. The interrupt service routine switches the track. Indicator lights have been provided to avoid collisions. Here the switching operation is performed using a stepper motor. Assuming that within a certain delay, the train has passed the track is switched back to its original position, allowing the first train to pass without any interruption. This concept of track switching can be applied at 1km distance from the stations.

The project is simple to implement and subject to further improvement. Gate Control: Fig: Model of Automatic Railway Gate Control & Track Switching Railways being the cheapest mode of transportation are preferred over all the other means.when we go through the daily newspapers we come across many railway accidents occurring at unmanned railway crossings. This is mainly due to the carelessness in manual operations or lack of workers. We, in this project has come up with a solution for the same. Using simple electronic components we have tried to automate the control of railway gates. As a train approaches the railway crossing from either side, the sensors placed at a certain distance from the gate detects the approaching train and accordingly controls the operation of the gate. Also an indicator light has been provided to alert the motorists about the approaching train.

Track Switching Using the same principle as that for gate control, we have developed a concept of automatic track switching. Considering a situation wherein an express train and a local train are travelling in opposite directions on the same track; the express train is allowed to travel on the same track and the local train has to switch on to the other track. Indicator lights have been provided to avoid collisions.here the switching operation is performed using a stepper motor. In practical purposes this can be achieved using electromagnets. Hardware Description The project consists of four main parts: 1. 8051 microcontroller 2. IR Transmitter 3. IR Receiver 4. Stepper Motor Circuit

8051 Microcontroller The I/O ports of the 8051 are expanded by connecting it to an 8255 chip. The 8255 is programmed as a simple I/O port for connection with devices such as LEDs, stepper motors and sensors. More details of the 8255 are given later. The following block diagram shows the various devices connected to the different ports of an 8255. The ports are each 8-bit and are named A, B and C. The individual ports of the 8255 can be programmed to be input or output, and can be changed dynamically. The control register is programmed in simple I/O mode with port A, port B and port C (upper) as output ports and port C (lower) as an input port. IR Circuits Fig: Block diagram of 8051 Microcontroller This circuit has two stages: a transmitter unit and a receiver unit. The transmitter unit consists of an infrared LED and its associated circuitry. IR Transitter The transmitter circuit consists of the following components:

1. IC 555 2. Resistors 3. Capacitors 4. IR LED The IR LED emitting infrared light is put on in the transmitting unit. To generate IR signal, 555 IC based astable multivibrator is used. Infrared LED is driven through transistor BC 548. IC 555 is used to construct an astable multivibrator which has two quasi-stable states. It generates a square wave of frequency 38kHz and amplitude 5Volts. It is required to switch ON the IR LED. IR Receiver Fig: IR Transmitter The receiver circuit consists of the following components: 1. TSOP1738 (sensor) 2. IC 555 3. Resistors 4. Capacitors The receiver unit consists of a sensor and its associated circuitry. In receiver section, the first part is a sensor, which detects IR pulses transmitted by IR-LED. Whenever a train crosses the sensor, the output of IR sensor momentarily transits through a low state. As a result the monostable is triggered and a short pulse is

applied to the port pin of the 8051 microcontroller. On receiving a pulse from the sensor circuit, the controller activates the circuitry required for closing and opening of the gates and for track switching. The IR receiver circuit is shown in the figure below. Stepper motor circuit Fig: IR Receiver Fig: Stepper motor circuit Here a stepper motor is used for controlling the gates. A stepper motor is a widely used device that translates electrical pulses into mechanical movement. They function as their name suggests they step a little bit at a time. Steppers don t simply respond to a clock signal. They have several windings which need to be energized in the correct sequence before the motor s shaft will rotate. Reversing the order of the sequence will cause the motor to rotate the other way.

Stepper motor control board circuit:- Fig: Stepper motor control board circuit The circuit consists of very few components. The major components are 7805, 89C51 and ULN2003A. Connections:- 1. The transformer terminals are given to bridge rectifier to generate rectified DC.

2. It is filtered and given to regulator IC 7805 to generate 5 V pure DC. LED indicates supply is ON. 3. All the push button micro switches J1 to J8 are connected with port P1 as shown to form serial keyboard. 4. 12 MHz crystal is connected to oscillator terminals of 89C51 with two biasing capacitors. 5. All the LEDs are connected to port P0 as shown 6. Port P2 drives stepper motor through current driver chip ULN2003A. 7. The common terminal of motor is connected to Vcc and rest all four terminals are connected to port P2 pins in sequence through ULN chip. Programming for Microcontroller: In this program we shall see minimal functionality. Only first two switches and first three LEDs will be used. When you press one switch the motor will start rotating in clockwise direction and stops when completes one revolution. Pressing second switch will do the same job but in anticlockwise direction. The speed will be 10 RPM fixed. Motor runs in single coil excitation mode. First LED indicates key press event. Second blinks when motor rotates clockwise and third blinks when motor rotates anticlockwise. Org 00h mov r0,#01h ; initileze key count mov p1,#0ffh ; P1 as input port lop: mov a,p1 cjne a,#0ffh,jmp ajmp lop ; loop until any key ; is pressed jmp: clr p0.0 ; indicates keypress loop: rrc a jnc num ; get key no. inc r0 sjmp loop num: acall dely ; key debounce delay setb p0.0 cjne r0,#01h,nxt acall clkwise ; for 1st key ; rotate motor

sjmp over ; clock wise nxt: cjne r0,#02h,over ; for 2nd key acall aclkwise ; rotate anticlock over: mov p2,#00h mov p1,#0ffh mov r0,#01h sjmp lop ; restore initial ; data and ; jump to loop again clkwise: mov r1,#32h go: clr p0.1 mov p2,#01h mov p2,#02h setb p0.1 mov p2,#04h mov p2,#08h djnz r1,go ret aclkwise: mov r1,#32h go1:clr p0.2 mov p2,#01h mov p2,#08h setb p0.2 mov p2,#04h mov p2,#02h djnz r1,go1 ret ; load count 50d ;give 4 pulses in loop ; total 200 pulses ; each coil energized ; one by on in single ; coil excitation ; 30 ms delay in betwn ; means speed is ; 10 RPM ; revert the pulse ; sequence for ; anticlockwise delay: mov r5,#1eh ; load count 30

lop2: mov r6,#fah ; give 1 ms delay lop1:nop ; so it gives full nop ; 30 ms delay djnz r6,lop1 djnz r5,lop2 ret dely: mov r5,#0c8h ; load count 200 lop2: mov r6,#0fah ; for 200ms delay lop1: nop nop djnz r6,lop1 djnz r5,lop2 ret end