1 AUTOMATIC RAILWAY TRACK CONTROL A PROJECT REPORT Submitted by M.GOSPELSON (71005114011) V.POONGUNDRAN (71005114031) A.SIVASHANKAR (71005114051) P.NIKHIL (71005114307) in partial fulfillment for the award of the degree of BACHELOR OF ENGINEERING IN MECHANICAL ENGINEERING KARPAGAM COLLEGE OF ENGINEERING ANNA UNIVERSITY: CHENNAI 600 025 MAY 2008
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
AUTOMATIC RAILWAY TRACK CONTROL
A PROJECT REPORT
Submitted by
M.GOSPELSON (71005114011)
V.POONGUNDRAN (71005114031)
A.SIVASHANKAR (71005114051)
P.NIKHIL (71005114307)
in partial fulfillment for the award of the degree
of
BACHELOR OF ENGINEERING
IN
MECHANICAL ENGINEERING
KARPAGAM COLLEGE OF ENGINEERING
ANNA UNIVERSITY: CHENNAI 600 025
MAY 2008
2
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this project report “AUTOMATIC RAILWAY
TRACK CONTROL” is the bonafide work of “M.GOSPELSON,
V.POONGUNDRAN, A.SIVASHANKAR, P.NIKHIL”who
carried out the project work under my supervision.
SIGNATURE SIGNATURE
Dr.S.CHARLES Mr.E.BABURAJ
PROJECT GUIDE
HEAD OF THE DEPARTMENT PROFESSOR
MECHANICAL ENGINEERING MECHANICAL ENGINEERING
KARPAGAM COLLEGE OF KARPAGAM COLLEGE OF
ENGINEERING ENGINEERING
OTHAKKALMANADAPAM POST, OTHAKKALMANADAPAM POST,
COIMBATORE – 641 032. COIMBATORE – 641 032.
Submitted by the university examination VIVA-VOCE held on _________
Internal Examiner External Examiner
ACKNOWLEDGEMENT
3
We express our sincere thanks to our respected principal
Dr.K.M.MohanaSundaram for the support he intended in carrying out the
project. We record gratitude to our Head of the Department Dr.S.Charles
for the help and support he extended during the complete phase of the
project. We are happy to owe our sincere thanks coupled with deep sense of
gratitude to our project guide Mr. E.BABURAJ for his enlighten persuasion
at every stage which helped us to bring out this project a successful one. We
also thank our project coordinator Mr.C.KRISHNARAJ for his constant
support.
4
CONTENTS
CHAPTER TITLE PAGE NO
1 SYNOPSIS 1
2 INTRODUCTION 2
3 WORKING PRINCIPLE 4
4 BLOCK DIAGRAM 8
5 MICRO CONTROLLER 9
6 ENCODER 12
7 DECODER 13
8 RF TRANSMITTER 14
9 RF RECEIVER 16
10 CIRCUIT DIAGRAM 18
11 RELAYS 20
12 POWER SUPPLY 22
13 APPLICATION & ADVANTAGES 24
14 COST ESTIMATION 26
15 CONCLUSION 27
16 BIBLIOGRAPHY 28
5
LIST OF DIAGRAMS
NO TITLE PAGE NO
1. BLOCK DIAGRAM 8
2. MICRO CONTROLLER 11
3. ENCODER CIRCUIT 12
4. DECODER CIRCUIT 13
5. RF.TRANSMITTER CIRCUIT 14
6. RF RECEIVER CIRCUIT 16
7. TRANSMITTER AND RECEIVER CIRCUIT 18
8 RELAY CIRCUIT 21
6
SYNOPSIS
The project titled “AUTOMATIC RAILWAY TRACK CONTROL”
is based on Micro controller 89c51 for track changing in railways.
Presently track changing is done manually or with the help of
motors.Due to this, manual errors may take place. To overcome this
problem, automation in track changing is done.In this project the command
given by the system (magnet) is encoded by a micro controller and transmits
via Radio Freqency transmitter.The system placed near the track receives the
data and decodes it using another micro controller and decoder. This micro
controller will activate the corresponding relay according to the program and
the motor works.Limit switches are used to stop the motor.
7
INTRODUCTION
The project “AUTOMATIC RAILWAY TRACK CONTROL’ is
aimed at providing full automation of railways. Also to provide secured
railway transportation.
The main components are
1. Micro controller
2. Encoder
3. Decoder
4. Radio Frequency transmitter
5. Radio Frequency receiver
6. Limit switches
7. DC motor
8. Magnetic sensor
MICRO CONTROLLER
The micro controller used is of 89c51 series. The main feature
of 89c51 micro controller is that it has a 8 Bit CPU optimized for control
application. Also it has a bi-directional and individually addressable I/O
lines.
ENCODER
Encoder is a combinational logic circuit that performs reverse
encoder function. It accepts an active level on one of its input and produce
an output code.
8
DECODER
Decoder is a logic circuit that accepts sets of inputs that
represents a binary number and activates only the output that corresponds to
that input number.
RF TRANSMITTER
The RF transmitter transmits the received signal to the receiver
circuit placed near the track changer. The range of this transmitter lies
between 100 to500 meters.
RF RECEIVER
It receives the signal from the transmitter.
LIMIT SWITCHES
Limits switches are used to stop the running motor.
The need of this project is to avoid manual errors in track
changing. The magnetic sensor placed on the track activates the RF
transmitter. The transmitter in turn sends the signal from the train to the
system placed near the track changer. The system decodes and transmits the
signal to the micro controller and the micro controller activates the relay
switches there by the motor works and the track changes. This concept can
be directly applied to the real track system.
9
WORKING PRINCIPLE
The project Automatic Wireless Railway track control is mainly
based on micro controller 89c51. As the name suggests it is concerned with
automatic changing of railway track.
Here there are two circuits; one of them is located on the train
and the other one near the place of track change. The circuit on train consists
of a micro controller, encoder, and an ‘RF’ transmitter. The consists various
codes for different trains. These codes are transmitted to the micro
controller. The micro controller sends these codes to the encoder, which
converts it into digital form. These digital signals are transmitted to another
circuit placed near the track by and ‘RF’ transmitter.
The circuit placed near the track consists of ‘RF’ receiver,
decoder, limit switches, micro controller, relay drivers and a motor. The
‘RF’ receivers receive the digital datas sent by the train and transmit it to
the decoder, which decodes the codes into analog form. These codes are
then fed to the micro controller. The micro controller controls the relay
drivers to drive the motors. The limits switches are provided to control the
DC motor.
10
PROGRAM
// controlling a stepper motor
#include <stdio.h> //
#include <reg420.h> //
#include <ctype.h> //
#include "serial.h"
void main()
char o;
int i;
InitSerialHardware();
do
o = getchar();
if(isspace(o)) continue;
o = toupper(o);
if(o == 'S')
puts(" Stop");
P1 = 0;
11
if (o == 'L')
puts(" Left");
TMOD = 0x20;
TCON = 0x40;
TH1 = 0xF9;
TL1 = 0xF9;
PCON = 0x80;
SCON0 = 0x50;
if (o == 'R')
puts(" Right");
SCON0 = 0x50;
PCON = 0x80;
TL1 = 0xF9;
TH1 = 0xF9;
TCON = 0x40;
TMOD = 0x20;
else continue;
while (1); /*continues loop */
12
printf("a"); // transmit a along with CR & LF.
For stopping the motor
if(o == 'S')
puts(" Stop");
P1 = 0;
goto exit; //put this label at the end of program with a while(1) loop.
//before the last braces of main function
exit:
while(1);
//this will stop
13
BLOCK DIAGRAM
TRANSMITTER CIRCUIT
RECEIVER CIRCUIT
Magnetic
Sensor
Micro
controller
Encoder
RF TX
RF RX
Decoder
Limit Switch
Limit Switch
Relay Driver
Relay Driver
Micro
controller
Motor
14
MICRO CONTROLLER
INTRODUCTION
A Micro Controller consists of a powerful CPU tightly coupled with
memory RAM, ROM, or EPROM, various I/O features such as Serial
ports, Parallel Ports, Timer/ Counters, Interrupt Controller, Data
Acquisitions interfaces- Analog to Digital Converter (ADC), Digital to
Analog Converter (ADC), everything integrated onto a single Silicon Chip.
It does not mean that any micro controller should have al the above
said features on chip, Depending on the need and area of application for
which it is designed. The on chip features present in it may or may not
include all the individual section said above.
Any microcomputer system requires memory to store a sequence of
instructions making up a program, parallel port or serial port for
communicating with an external system, timer/ counter for control purpose
like generating time delays, Baud rate for the serial port, apart from the
controlling unit called the Central Processing Unit.
15
ADVANTAGES OF MICROCONTROLLERS
1. If a system is developed with a microprocessor, the designer has to
go for external memory such as RAM, ROM or EPROM and
peripherals and hence the size of the PCB will be large enough
to hold all the required peripherals . But, the micro controller has got all
these peripheral facilities on a single chip so development of a similar
system with a micro controller reduces PCB size and cost of the design.
One of the major differences between a micro controller and a
microprocessor is that a controller often deals with bits, not bytes as in the
real world application, for example switch contacts can only be open or
close, indicators should be lit or dark and motors can be either turned on or
off and so forth.
INTRODUCTION TO ATMEL MICROCONTROLLER
SERIES : 89C51 Family, TECHNOLOGY: CMOS
The major Features of 8- bit Micro controller ATMEL 89C51:
• 8 Bit CPU optimized for control applications
• Extensive Boolean processing (Single – bit Logic ) capabilities
• On- Chip Flash Program Memory
• On- Chip Data RAM
• Bi- directional and Individually Addressable I/O Lines