Professional Documents
Culture Documents
Submitted By:-
AKHIL KUMAR (6-EE-005)
AKHIL KUMAR SHARMA (6-EE-006)
ANILA SINGH (6-EE-009)
ESHA SINGH (6-EE-30)
Radhika Kaushik (6-EE-49)
1
UNMANNED METRO
A mid term project report
Of
BACHELOR OF ENGINEERING
In
By
FARIDABAD
2
ACKNOWLEDGEMENT
The work presented in this mid-term report entitled “UNMANNED
METRO” was carried out at Lingaya’s Institute of Management &
Technology, Faridabad under the able guidance of Dr.
S.C.Parti (Head of the Department). We would like
to express our heartfelt gratitude to him for their valuable
suggestions and guidance and for everything that he had done
for us through the whole Course of Work.
AKHIL KUMAR
(6-EE-005)
AKHIL KUMAR
SHARMA (6-EE-006)
ANILA SINGH
(6-EE-009)
ESHA
SINGH (6-EE-30)
Radhika
Kaushik (6-EE-49)
3
CONTENTS
1.3 Motivation
4
Introduction
The goal of our final project is to design an efficient “Unmanned Metro train
system” that can automatically operate (on a small scale) without any human
intervention using H-bridge circuits and Dc motor. The train can sense an
upcoming station on its route and automatically stop at the station.
In our project we aim to demonstrate the working of the automatic metro train
system which has surely been a boon for the residents of Delhi.An artificial track
was designed for the vehicle (train) to run on. Intermediate stations are provided
on the track. As soon as the metro train sensor detects an infrared signal, this
information is given to the microcontroller unit as an input to one of its ports. It is
then that the microcontroller orders the train to stop at the upcoming station.
In the project we show how train systems can be automated. By using this system
in any vehicle, it is possible to move the vehicle on a predefined track with auto
stop provision. Here we try to stop the train at about 3 to 5 stoppages and give an
auto reverse logic for the end of path. By adding this logic, we can move the train
for a long time without changing the direction.
We use the AT89C2051 microcontroller chip along with different infrared sensors
to control all logic, the movement of the train, reverse action of train and stoppage
of train at different stations. Features of the 2051 microcontroller along with the
pin diagram have been described later in brief.
We attempt to devise an algorithm through which the vehicle can optimally handle
any number of stations on its route. This project seems like a fun challenge and
something that has practical applications.
5
Drive Motor
Dc gear motor is used to run the vehicle to and fro automatically. We have used
slow speed Dc motor to increase the torque and slow the speed of vehicle. This Dc
motor is run by a 5V to 12V Dc voltage. We can also use an additional gear box if
we want to slow down the speed.
We have used infrared sensors to stop the train, reverse it and again forward the
train. So we use three pairs of infrared sensors in our project. One at the bottom of
the train, second in the front and third one at the back of the train. By using three
sensors we not only stop the train but also move it in the reverse direction.
As per the logic is concerned, we use three inputs in the project, one from the
ground sensor and two from the back and front sensors. Three inputs and one
motor.
Here in the project, we have used a dc motor to run the vehicle. For controlling the
motion of the dc motor we use an H-bridge circuit. H-bridge circuit not only drives
sufficient power for the dc motor but also provides a forward and reverse logic to
the motor.
In the project we have also provided an automatic open door facility wherein the
doors automatically open as soon as the train stops at the station. For this logic we
use another dc motor to open and close the door. We also use a dc motor based
slider loader. With the help of this loader, it is possible to open and close the door
automatically. For this purpose we attach one motor loader and one H-bridge extra.
The extra h-bridge is for the drive motor of the door. When we use extra H-bridge,
it must to use two extra optocouplers. With help of two extra optocouplers we
drive the motor automatically
6
AIM OF THE PROJECT
7
Project Methodology
Starting with the basic stuff we prepare a basic METRO CAB ready
to run on tracks. Now we look at the basic needs of operations of
the system and looking broadly we can classify them in some of
the following parts...
• MOVING FORWARD
• MOVING BACKWARD
• STOPPAGE
• STARTING
• DOOR OPENING
• DOOR CLOSING
• FRONT
• BACK
• BELOW
9
The CHIP to be used in 8051 family to be prefed with a program
logic to control the movement of the cabin with the help of logic
fed into it.
As soon as the front led accept back the INFRA RED signals sent
by it , it provide the start signal to the MOTOR, which starts the
cabin . Now as the train advances to next station we don’t have
to take care of much anything. As the train approaches the next
station we have the next difficulty with our project.
The stoppage of the train and opening of the door is the next
step. We place some material on the tracks that fully absorbs the
IR signals emitted so that they are not returned back to the
acceptor.
Now as the signals are not accepted back, the sensor do not
provide any output to the DC motor, which is prefed to stop if the
signals are not received.
This process now repeats for each station the metro has to pass
through. By a very easy enhancement in our developed system,
we can also place a GPS system to check on the movement on
the trains. THUS, our purpose of automating the TRACTION
SYSTEM seems to be solved logically. Now, starting on to the real
10
thing, we now move on to check out if this THEORY works for us
in the practical.
3 Project Detail
The circuit diagram used in the project is given below. From the circuit we observe
the following major components:
1. 89C2015 Microcontroller
2. H-bridge Circuit
3. Dc motor
4. Optocouplers
5. Infrared Led and reflective sensors
6. 7805 regulator
7. +9V Dc power supply for microcontroller and dc motor
11
In the circuit we have used three Dc power supply sources which are simply three
9V batteries. One of the power supplies is used for the microcontroller, and the
other two are for powering the Dc motors used in the circuit. Actually the
microcontroller works on a +5V power supply and so we use a 7805 voltage
regulator to convert +9V to +5V. Three pairs of infrared Leds are used for
controlling the motion of the train. For this purpose, they are connected to the port
pins P3.0, P3.1, P3.2. Two Dc motors are used – one for controlling the motion of
the train and the other one for controlling the motion of the door. For each motor
an H-bridge circuit is used. According to the voltages applied to the various
terminals of the H-bridge, we can control the motion of the motor and hence of
the connected part.
12
CIRCUIT DIAGRAM
13
The 8051 Microcontroller
The generic term `8x51` is used to define the device. The value
of x defining the kind of ROM, i.e. x=0, indicates none, x=3,
indicates mask ROM, x=7, indicates EPROM and x=9 indicates
EEPROM or Flash.
ROM
The early 8051, namely the 8031 was designed without any ROM.
This device could run only with external memory connected to it.
Subsequent developments lead to the development of the PROM
or the programmable ROM. This type had the disadvantage of
being highly unreliable.
14
cells. This results in reducing the time for erasure.
Intel 8051
15
4. COMPONENTS DETAILS
AT89C2051 Microcontroller
16
The 2051 is a low voltage (2.7V - 6V); high performance CMOS 8-bit
microcontroller with 2 Kbytes of Flash programmable and erasable read only
memory (PEROM). This device is compatible with the industry standard 8051
instruction set and pin out. The 2051 is a powerful microcontroller which provides
a highly flexible and cost effective solution to many embedded control
applications. The 2051 provides the following features:
• 2 Kbytes of Flash
• 128 bytes of RAM
• 15 I/O lines
• two 16-bit timer/counters
• five vector, two-level interrupt architecture
• full duplex serial port
• precision analog comparator
• on chip oscillator and clock circuitry
In addition, the 2051 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving modes. The Idle
Mode stops the CPU while allowing the RAM, timer/counters, serial port and
interrupt system to continue functioning. The Power Down Mode saves the RAM
contents but freezes the oscillator disabling all other chip functions until the next
hardware reset.
17
logic chip, or remote control can electronically command the motor to go forward,
reverse, brake, and coast.
The H-bridge can operate from a power source as low as two nearly-exhausted
'AAA' batteries (2.2V) all the way up to a fresh 9V battery (9.6V).
The H-bridge circuit (below) looks complicated at first glance, but it is really just
four copies of a resistor + transistor + diode.
There are many different ways to draw the circuitry, but the above wiring diagram
matches the model of most H-bridges.
Q1, Q3: These are NPN transistors. They connect the motor
to ground (negative terminal of the battery).
Q2, Q4: These are PNP transistors. They connect the motor
to +2.2V to +9.6V (positive terminal of the battery).
R1-R4: These resistors prevent too much current from
passing through the base (labeled B) control pin of the
transistor. The resistor value of 1 kilo ohms (1000 ohms) was
chosen to provide enough current to fully turn on (saturate)
the transistor. A higher resistance would waste less power,
but might cause the motor to receive less power. A lower
resistance would waste more power, but wouldn't likely
provide better performance for motors running on consumer
batteries.
18
Schematic of a bipolar transistor H-bridge circuit to drive a DC motor. Can you
see the letter 'H'?
Relays can of course provide this kind of isolation, but even small
relays tend to be fairly bulky compared to ICs and many of
today’s other miniature circuit components. Because they’re
electro-mechanical, relays are also not as reliable and only
capable of relatively low speed operation. Where small size,
higher speed and greater reliability are important, a much better
alternative is to use an optocoupler
20
Usually the electrical connections to the LED section are brought
out to the pins on one side of the package and those for the
phototransistor or diac to the other side, to physically separate
them as much as possible. This usually allows optocouplers to
withstand voltages of anywhere between 500V and 7500V
between input and output. Optocouplers are essentially digital or
switching devices, so they’re best for transferring either on-off
control signals or digital data. Analog signals can be transferred
by means of frequency or pulse-width modulation.
Infrared Led
21
semi conducting material used, and can be infrared, visible, or
ultraviolet.
Photodiodes
Principle of operation
5. MICROCONTROLLER USED
22
AT89C2051 Microcontroller
We have used the 2051 microcontroller chip to control the motion of the train.
Features of the 2051 microcontroller along with the pin diagram have been
described briefly.
23
The 2051 is a low voltage (2.7V - 6V); high performance CMOS 8-bit
microcontroller with 2 Kbytes of Flash programmable and erasable read only
memory (PEROM). This device is compatible with the industry standard 8051
instruction set and pin out. The 2051 is a powerful microcontroller which provides
a highly flexible and cost effective solution to many embedded control
applications. The 2051 provides the following features:
• 2 Kbytes of Flash
• 128 bytes of RAM
• 15 I/O lines
• two 16-bit timer/counters
• five vector, two-level interrupt architecture
• full duplex serial port
• precision analog comparator
• on chip oscillator and clock circuitry
In addition, the 2051 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving modes. The Idle
Mode stops the CPU while allowing the RAM, timer/counters, serial port and
interrupt system to continue functioning. The Power Down Mode saves the RAM
contents but freezes the oscillator disabling all other chip functions until the next
hardware reset.
6. REFERENCE
24
8051 chipset diagram and working
By Thomas W. Schultz
• www.htsoft.com/products/compilers/
25