Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Railway Accident Monitoring System: A Project Report ON

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 13

A

PROJECT REPORT
ON
RAILWAY ACCIDENT MONITORING
SYSTEM

Session: 2013-2014

HOD : Under the guidance:
Prof. B.S. Rai Prof. R.K. Prasad

Submitted by:
Pankhuri Agrawal (1004231043)
Prateek Srivastav (1004231045)
Prince Kr. Singh (1004231047)
Vaibhav Patel (1004231067)

MADAN MOHAN MALAVIYA UNIVERSITY OF TECHNOLOGY,
GORAKHPUR
Contents

1. Objective
2. Elements Used
2.1 Atmega 16
2.2 L293D
2.3 TSOP sensors
3. Theory
3.1 Speed Control
3.2 Fire Detection
3.3 Head-on collision
References


RAILWAY ACCIDENT MONITORING SYSTEM

OBJECTIVE:
The purpose of the project is to control the railway accidents using automation. The project consists of:
Avoiding head-on collision of two trains
Decreasing the velocity of train on bridges
Control fire accidents
ELEMENTS USED:
Microcontroller-ATMEGA 16
L293D (motor driver)
TSOP sensors

ATMEGA 16:
The ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC
architecture.By executing powerful instructions in a single clock cycle, the ATmega16 achieves
throughputs approaching1 MIPS per MHz allowing the system designed to optimize power consumption
verses processing speed.
Features
Advanced RISC Architecture
Up to 16 MIPS Throughput at 16 MHz
16K Bytes of In-System Self-Programmable Flash
512 Bytes EEPROM
1K Byte Internal SRAM
32 Programmable I/O Lines
In-System Programming by On-chip Boot Program
8-channel, 10-bit ADC
Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture
Four PWM Channels
Programmable Serial USART
Master/Slave SPI Serial Interface
Byte-oriented Two-wire Serial Interface
Programmable Watchdog Timer with Separate On-chip Oscillator
External and Internal Interrupt Sources
Pin Diagram:

Pin Descriptions
VCC: Digital supply voltage. (+5V)
GND: Ground. (0 V) Note there are 2 ground Pins.
Port A (PA7 - PA0) :Port A serves as the analog inputs to the A/D Converter. Port A also serves
as an 8-bit bi-directional I/O port, if the A/D Converter is not used. When pins PA0 to PA7 are
used as inputs and are externally pulled low, they will source current if the internal pull-up
resistors are activated. The Port A pins are tri-stated when a reset condition becomes active, even
if the clock is not running.
Port B (PB7 - PB0) Port B is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). Port B also serves the functions of various special features of the
ATmega16 as listed on page 58 of datasheet.
Port C (PC7 - PC0) Port C is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). Port C also serves the functions of the JTAG interface and other special
features of the ATmega16 as listed on page 61 of datasheet. If the JTAG interface is enabled, the
pull-up resistors on pins PC5 (TDI), PC3 (TMS) and PC2 (TCK) will be activated even if a reset
occurs.
Port D (PD7 - PD0) Port D is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). Port D also serves the functions of various special features of the
ATmega16 as listed on page 63 of datasheet.
RESET: Reset Input. A low level on this pin for longer than the minimum pulse length will
generate a reset, even if the clock is not running.
XTAL1: External oscillator pin 1
XTAL2: External oscillator pin 2
AVCC: AVCC is the supply voltage pin for Port A and the A/D Converter. It should be externally
connected to
VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a
low-pass filter.
AREF: AREF is the analog reference pin for the A/D Converter.


L293D:

L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers
since they take a low-current control signal and provide a higher-current signal. This higher current signal
is used to drive the motors.L293D contains two inbuilt H-bridge driver circuits. In its common mode of
operation, two DC motors can be driven simultaneously, both in forward and reverse direction. The motor
operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11
will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise
directions, respectively.Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to
start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs
become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is
disabled, and their outputs are off and in the high-impedance state.

Pin Diagram:

























Pin Description:


Pin No Function Name
1 Enable pin for Motor 1; active high Enable 1,2
2 Input 1 for Motor 1 Input 1
3 Output 1 for Motor 1 Output 1
4 Ground (0V) Ground
5 Ground (0V) Ground
6 Output 2 for Motor 1 Output 2
7 Input 2 for Motor 1 Input 2
8 Supply voltage for Motors; 9-12V (up to 36V) Vcc
2

9 Enable pin for Motor 2; active high Enable 3,4
10 Input 1 for Motor 1 Input 3
11 Output 1 for Motor 1 Output 3
12 Ground (0V) Ground
13 Ground (0V) Ground
14 Output 2 for Motor 1 Output 4
15 Input2 for Motor 1 Input 4
16 Supply voltage; 5V (up to 36V) Vcc
1


TSOP Sensors:
TSOPs are rectangular in shape and come in two varieties: Type I and Type II. Type I ICs have the pins
on the shorter side and Type II have the pins on the longer side. The table below shows basic
measurements for common TSOP packages.

The TSOP 1738 is a member of IR remote control receiver series. This IR sensor module consists of a
PIN diode and a pre amplifier which are embedded into a single package. The output of TSOP is active
low and it gives +5V in off state. When IR waves, from a source, with a centre frequency of 38 kHz
incident on it. Lights coming from sunlight, fluorescent lamps etc. may cause disturbance to it and result
in undesirable output even when the source is not transmitting IR signals. A bandpass filter, an integrator
stage and an automatic gain control are used to suppress such disturbances.

TSOP module has an inbuilt control circuit for amplifying the coded pulses from the IR transmitter. A
signal is generated when PIN photodiode receives the signals. This input signal is received by an
automatic gain control (AGC). For a range of inputs, the output is fed back to AGC in order to adjust the
gain to a suitable level. The signal from AGC is passed to a band pass filter to filter undesired
frequencies. After this, the signal goes to a demodulator and this demodulated output drives an npn
transistor. The collector output of the transistor is obtained at pin 3 of TSOP module.
Members of TSOP17xx series are sensitive to different centre frequencies of the IR spectrum. For
example TSOP1738 is sensitive to 38 kHz whereasTSOP1740 to 40 kHz centre frequency.
















THEORY:

1. Speed Control
The aim of developing this project is to control the speed of DC motor. The main advantage in using a
DC motor is that the Speed-Torque relationship can be varied to almost any useful form. To achieve the
speed control an electronic technique called Pulse Width Modulation is used which generates High and
Low pulses. These pulses vary the speed in the motor. For the generation of these pulses a microcontroller
(AT89c51) is used. As a microcontroller is used setting the speed ranges as per the requirement is easy
which is done by changing the duty cycles time period in the program. This project is practical and highly
feasible in economic point of view, and has an advantage of running motors of higher ratings. This project
gives a reliable, durable, accurate and efficient way of speed control of a DC motor.
1. Microcontroller can provide signals to start, stop, forward or backward movement, but cannot
provide the power needed to run the DC motors.
2. To run DC motors, we need an interfacing circuit, commonly called as driver. It sits between the
microcontroller and the DC motors. Its prime job is to accept signals from the microcontroller and
then translate those signals into a high power circuit (meaning, microcontroller signals could be
5V, 20 mA while the output from the driver could be at 12V 300mA)
3. The power supply for microcontroller is different from the power supply for the motors. There
exists a common ground between the two to have a common reference point.
The whole idea can be outlined as given in the picture below:

DC Motor Control Block Diagram
2. Fire Detection in Trains
Fire is often unpredictable and hard to avoid, and an efficient fire-alarm system isof vital importance for
the protection of lives and assets. In addition to this, fireprotection on trains is very complicated due to the
electrical environment,vibrations, and variation in temperature and humidity, which can all interfere
withthe system's functionality.To meet the demands on efficient fire detection and to develop an
interferencefreesystem, without the other-wise common false alarms, smokeand fire-detection systems for
trains are based on the same technique used forinstallations on-board NATO submarines and other
extreme environments.
Addressable fire-detection systems for trains:
TS1000 is an addressable fire-detection system for trains that supervises alltypes of areas and
environments, including engine rooms, passenger areas andcable installations.Running capability, from a
fire-protection point of view, is the possibility for thedriver or train operator to have full control over the
location of the fire and itsprogress while running the train to a place where passengers can safely leavethe
train.Its aim is to always ensure full running capability. Therefore, theTS1000 offers full redundancy
regarding communication between detectors,operator panels and the train's computer.

TS1000 also offers an additional form of safety and runningcapability, as it is possible to integrate and
supervise and control severaldifferent functions such as:
Extinguishing and suppression systems
Ventilation and air-conditioning systems
Electrical appliances such as heaters
Cooking appliances
Fuel system
By offering such capability, it is not only the safety of passengers and people inthe surroundings that can
be ensured by our integrated and flexible fire-detectionsystem for trains. Such a solution also reduces the
stand-still of the train,minimizing the disturbance in operation and reducing the cost of repair.

BLOCK DIAGRAM:
















3. Head-on collision:
This project is implemented by connecting Ultrasonic Sensors in front of the train. The Ultrasonic
sensors will give the distance between the present train and the train which is coming in the opposite
direction. The distance is constantly monitored by a microcontroller and when the distance is close, it is
programmed to regulate the speed and also to stop the train if it is necessary.



Parameter Monitoring :
Since our project is related to the vehicles, in addition to the mentioned aim we can also monitor
the temperature of the Vehicle. The engine temperature is measured by using the thermistor which is
connected to an ADC of ATMEGA16 Microcontroller.





















BLOCK DIAGRAM






































Thermistor


Potential
Divider


ATMEGA 16


Distance Input (TSOP)

Stepper Driver
Stepper
Motor


Power
Supply
+5VDC
Stepper
Power
Supply
+12VDC
Block Diagram Explanation

Power Supply:
Used to power the ATMEGA 16 Microcontroller. This is generated from the incoming AC supply of
230V.
Stepper Power Supply:
Used to run the Stepper Motor.This is generated from the incoming AC supply of 230V.
Stepper Driver and Opt coupler:
The TTL Level Pulse signal from the controller is not sufficient to run the stepper motor as it requires the
current of 1.2 amps. So the signals from the controller are buffered and isolated and amplified using
transistors. Then the amplified voltage is applied to the stepper motor. The stepper driver board does this
job.
Ultrasonic Sensors:
These ultrasonic sensors are used to measure the distance between the current train and the opposite train.
The ultrasonic sensor has a transmitter and receiver placed side by side. The ultrasonic sound waves are
transmitted, and if there is any obstacle, the waves are reflected back and it is sensed by the receiver. The
unit then calculates the travel time of the wave and converts it into distance.
Thermistor and Potential divider:
It is a transducer which is used to measure the temperature of engine. The resistance of the device varies
according to the atmospheric temperature. The resistance variation from the thermistor is converted into
its corresponding voltage variation using this voltage divider circuit.
LCD Display:
A 16X2 row LCD Display is used to display the parameters sensed and the events happening.
Conclusion and future enhancements:
In this project we have used ultrasonic sensors for detecting the opposite train. This distance can be
increased by putting long range ultrasonic level sensors. We can also incorporate a GPS and GSM
Modules for preventing train accidents. The GPS Lets us to know the present location and GSM Sends it
to another train. Thus if the two trains are at the same location then the train is immediately stopped.








REFERENCES

1.The 8051 Microcontroller and Embedded Systems By Muhammad Ali Mazidi
2.Fundamentals Of Embedded Software By Daniel W Lewis
3.www.howsstuffworks.com
4.www.alldatasheets.com
5.www.electronicsforu.com
6. www.knowledgebase.com
7. www.8051 projectsinfo.com
8. Datasheets of Microcontroller AT89S52

You might also like