Beruflich Dokumente
Kultur Dokumente
OF ELECTRIC LOCOMOTIVE
A PROJECT REPORT
Submitted by
GOPIKA.S (42207105020)
IRENE.T (42207105022)
JOSE DURAI PRABHAKAR.G (42207105025)
KISHORE DHARMA.S (42207105030)
BACHELOR OF ENGINEERING
IN
APRIL 2011
GOPIKA.S 42207105020
IRENE.T 42207105022
JOSE DURAI PRABHAKAR.G 42207105025
KISHORE DHARMA.S 42207105030
SIGNATURE SIGNATURE
Dr.D. Padma Subramanian Dr.D. Padma Subramanian
HEAD OF THE DEPARTMENT SUPERVISOR
Electrical & Electronics Engineering Electrical & Electronics Engineering
Valliammai Engineering College Valliammai Engineering College
Kattankulathur – 603 203 Kattankulathur – 603 203
The main objective is to provide automation for the locomotive with the help of
communication systems, using GSM technique. Train Automation (TA) can be
resourcefully done for managing train parameters and monitoring any abnormal
conditions in real-time without delays and accidents. All parameters will be
processed, controlled, and managed at Electric Locomotive Engine (ELE) with
help of advent of wireless technologies. To reduce human errors and get the fast
response, TA will be a wonderful one with help of GSM technology.
Transmission of information takes place by 2G technique and emergency
braking works by the decoding of signals which can be programmed by the
microcontroller unit thereby controlling the speed of servomotor is enhanced in
automation system.
ATMEL-AT89C51
FEATURES
PIN DIAGRAM
BLOCK DIAGRAM
BLOCK DESCRIPTION
The AT89C51 provides the following standard features: 4K bytes of Flash, 128
bytes of RAM, 32 I/O lines, two 16-bit timer/counters, a five vector two-level
interrupt architecture, a full duplex serial port, on-chip oscillator and clock
circuitry. In addition, the AT89C51 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.
PIN DESCRIPTION
VCC
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin
can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be
used as high impedance inputs. Port 0 may also be configured to be the
multiplexed low order address/data bus during accesses to external program and
data memory. In this mode P0 has internal pull ups. Port 0 also receives the
code bytes during Flash programming, and outputs the code bytes during
program verification. External pull ups are required during program
verification.
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pull ups. The Port 1 output
buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current (IIL) because of
the internal pull ups. Port 1 also receives the low-order address bytes during
Flash programming and verification.
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pull ups. The Port 2 output
buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port
2 pins that are externally being pulled low will source current (IIL) because of
the internal pull ups. Port 2 emits the high-order address byte during fetches
from external program memory and during accesses to external data memory
that use 16-bit addresses (MOVX @DPTR). In this application, it uses strong
internal pull-ups when emitting 1s. During accesses to external data memory
that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2
Special Function Register. Port 2 also receives the high-order address bits and
some control signals during Flash programming and verification.
Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pullups. The Port 3 output
buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (IIL) because of
the pullups. Port 3 also serves the functions of various special features of the
AT89C51 as listed below:
Port 3 also receives some control signals for Flash programming and
verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is
running resets the device.
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address
during accesses to external memory. This pin is also the program pulse input
(PROG) during Flash programming. In normal operation ALE is emitted at a
constant rate of 1/6 the oscillator frequency, and may be used for external
timing or clocking purposes. Note, however, that one ALE pulse is skipped
during each access to external DataMemory. If desired, ALE operation can be
disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active
only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled
high. Setting the ALE-disable bit has no effect if the microcontroller is in
external execution mode.
PSEN
Program Store Enable is the read strobe to external program memory. When the
AT89C51 is executing code from external program memory, PSEN is activated
twice each machine cycle, except that two PSEN activations are skipped during
each access to external data memory.
EA/VPP
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
XTAL2
GSM uses a variation of time division multiple access (TDMA) and is the most
widely used of the three digital wireless telephony technologies (TDMA, GSM,
and CDMA). GSM digitizes and compresses data, then sends it down a channel
with two other streams of user data, each in its own time slot. It operates at
either the 900 MHz or 1800 MHz frequency band.
The GSM standard has been an advantage to both consumers, who may benefit
from the ability to roam and switch carriers without replacing phones, and also
to network operators, who can choose equipment from many GSM equipment
vendors. GSM also pioneered low-cost implementation of the short message
service (SMS), also called text messaging, which has since been supported on
other mobile phone standards as well. The standard includes a
worldwide emergency telephone number feature (112).
TECHNICAL DETAILS:
One of the key features of GSM is the Subscriber Identity Module , commonly
known as a SIM card. The SIM is a detachable smart card containing the user's
subscription information and phone book. This allows the user to retain his or
her information after switching handsets. Alternatively, the user can also change
operators while retaining the handset simply by changing the SIM. Some
operators will block this by allowing the phone to use only a single SIM, or only
a SIM issued by them; this practice is known as SIM locking.
GSM carrier frequencies:
GSM networks operate in a number of different carrier frequency ranges
(separated into GSM frequency range for 2G and UMTS frequency bands for
3G), with most 2G GSM networks operating in the 900 MHz or 1800 MHz
bands. Where these bands were already allocated, the 850 MHz and 1900 MHz
bands were used instead (for example in Canada and the United States). In rare
cases the 400 and 450 MHz frequency bands are assigned in some countries
because they were previously used for first-generation systems.
Several open source software projects exist that provide certain GSM features:
SIM300C/340C with a tiny configuration can fit almost all the space
requirements in your industrial M2M applications, such as telemetry, telemetric
and other M2M data communication systems.
• DIP type board-to-board connector suit for vehicle application
• Customized MMI and keypad/LCD support
• An embedded Powerful TCP/IP protocol stack
• Based upon mature and field-proven platform, backed up by our support
service, from definition to design and production
General features
• Tri-Band GSM/GPRS 900/1800/1900MHz or
Quad-Band GSM/GPRS 850/900/1800/1900MHz
• GPRS multi-slot class 10/8
• GPRS mobile station class B
• Compliant to GSM phase 2/2+
– Class 4 (2W @ 850/900MHz)
– Class 1 (1W @ 1800/1900MHz)
• Dimension: 50mm x 33mm x 6.2mm
• Weight: 13.8 g
• Control via AT commands (GSM 07.07, 07.05 and SIMCom enhanced AT
Commands)
• SIM application toolkit
• Supply voltage range 3.4V...4.5V
• Low power consumption
• Normal operation temperature: -30°C to +80°C
• Restricted operation temperature: -40°C to -30°C and +80°C to +85°C
• Storage temperature: -45°C to +90°C
Interfaces
• Interface to external SIM 3V/1.8V
• Two analog audio interfaces
• 60-pins DIP BTB connector
• RTC backup
• Serial interface and debug interface
• LCD interface
• Keypad interface
• Antenna connector and antenna pad
Product Images
AN OVERVIEW OF GSM
GSM, Global System for Mobile communications, is today the most successful
digital mobile telecommunication system. This second-generation (2G) system
provides voice and limited data services and uses digital modulation with
improved audio quality.
2. GSM 1800 band or digital cellular system (DCS) 1800 band (1710-
1785MHz up-link frequency and 1805-1880MHz downlink frequency)
• Base Station Subsystem (BSS) controls radio link with mobile station
• Mobile Equipment (ME) such as hand portable and vehicle mounted unit
• Base Transceiver Station (BTS) defines a cell and is responsible for radio
link protocols with the Mobile Station
• Base Station Controller (BSC) controls multiple BTSs and manages radio
channel setup, and handovers. The BSC is the connection between the
Mobile Station and Mobile Switching Center.
Figure 1. Layout of generic GSM network
• Switches calls
• Manages Security features
• Resource management
SMS is one of the unique features of GSM compared to older analog systems.
For point-to-point SMS, a message can be sent to another subscriber to the
service, and an acknowledgment of receipt is sent to the sender. SMS also can
be used in Cell Broadcast mode to send messages such as traffic or news
updates. Messages can be stored on the SIM card for later retrieval. SMS is
effective because it can transmit short messages within 3 to 5 s via the GSM
network and doesn’t occupy a telephony channel. Moreover, the cost savings
makes it a worthwhile choice. With SMS transmitting, gathering position data is
easy and convenient.
GSM UNIT
The GSM unit contains a GSM module along with a GSM transmitter antenna.
The module functions according to its built and the antenna transmits the
information to the Base Station wherein this is exposed to further processing.
GPS is not a two-way system. It can either receive or transmit but not both. Due
to its inability in doing so, GSM systems are used.
SMS is one of the unique features of GSM compared to older analog systems.
For point-to-point SMS, a message can be sent to another subscriber to the
service, and an acknowledgment of receipt is sent to the sender. SMS also can
be used in Cell Broadcast mode to send messages such as traffic or news
updates. Messages can be stored on the SIM card for later retrieval. SMS is
effective because it can transmit short messages within 3 to 5s via the GSM
network and doesn’t occupy a telephony channel. Moreover, the cost savings
makes it a worthwhile choice. With SMS transmitting, gathering position data is
easy and convenient.
Let’s review an example of how to make a GSM module send and read a
sample SMS in Text mode. First, initialize the GSM module with AT
commands AT+CSCA and AT+CMGF. Using the former sets the SMS center
number to be used with outgoing SMS messages. Remember, the number will
be saved on the SIM card just like in normal mobile phones. There are two
different modes—Text mode and Protocol Data Unit (PDU) mode—for
handling short messages. The system default is PDU mode; however, Text
mode is easier to understand. So, use the AT+CMGF=1 command to set the
module to the GSM 07.05 standard SMS Text mode. The AT+CMGS command
is used to send a short message. The GSM module can receive incoming short
messages and save them on the SIM card automatically. You can use the
AT+CMGR command to read an incoming short message from the SIM card
storage, and then use the AT+CMGD command to delete it when you’re
finished. If you want to read an SMS message, then send a AT+CMGR=x
command to tell the GSM module which short message you want to read. Next,
check the serial port to receive the message from the GSM module.
SERVOMOTOR
A Servo is a small device that has an output shaft. This shaft can be positioned
to specific angular positions by sending the servo a coded signal. As long as the
coded signal exists on the input line, the servo will maintain the angular position
of the shaft. As the coded signal changes, the angular position of the shaft
changes. In practice, servos are used in radio controlled airplanes to position
control surfaces like the elevators and rudders. They are also used in radio
controlled cars, puppets, and of course, robots.
Servos are extremely useful in robotics. The motors are small, as you can see by
the picture above, have built in control circuitry, and are extremely powerful for
their size. A standard servo such as the Futaba S-148 has 42 oz/inches of torque,
which is pretty strong for its size. It also draws power proportional to the
mechanical load. A lightly loaded servo, therefore, doesn't consume much
energy. The guts of a servo motor are shown in the picture below. You can see
the control circuitry, the motor, a set of gears, and the case. You can also see the
3 wires that connect to the outside world. One is for power (+5volts), ground,
and the white wire is the control wire.
A servo disassembled
Servomotor working
The servo motor has some control circuits and a potentiometer (a variable
resistor, aka pot) that is connected to the output shaft. In the picture above, the
pot can be seen on the right side of the circuit board. This pot allows the control
circuitry to monitor the current angle of the servo motor. If the shaft is at the
correct angle, then the motor shuts off. If the circuit finds that the angle is not
correct, it will turn the motor the correct direction until the angle is correct. The
output shaft of the servo is capable of travelling somewhere around 180
degrees. Usually, its somewhere in the 210 degree range, but it varies by
manufacturer. A normal servo is used to control an angular motion of between 0
and 180 degrees. A normal servo is mechanically not capable of turning any
farther due to a mechanical stop built on to the main output gear.
The control wire is used to communicate the angle. The angle is determined by
the duration of a pulse that is applied to the control wire. This is called Pulse
Coded Modulation. The servo expects to see a pulse every 20 milliseconds (.02
seconds). The length of the pulse will determine how far the motor turns. A 1.5
millisecond pulse, for example, will make the motor turn to the 90 degree
position (often called the neutral position). If the pulse is shorter than 1.5 ms,
then the motor will turn the shaft to closer to 0 degress. If the pulse is longer
than 1.5ms, the shaft turns closer to 180 degrees.
As you can see in the picture, the duration of the pulse dictates the angle of the
output shaft (shown as the green circle with the arrow). Note that the times here
are illustrative, and the actual timings depend on the motor manufacturer. The
principle, however, is the same
Three basic types of servo motors are used in modern servosystems:
The output signal level usually swings between +12V and -12V. The
"dead area" between +3v and -3v is designed to absorb line noise. In the various
RS-232-like definitions this dead area may vary. For instance, the definition for
V.10 has a dead area from +0.3v to -0.3v. Many receivers designed for RS-232
are sensitive to differentials of 1v or less.
This can cause problems when using pin powered widgets - line drivers,
converters, modems etc. These type of units need enough voltage & current to
power them self's up. Typical URART (the RS-232 I/O chip) allows up to 50ma
per output pin - so if the device needs 70ma to run we would need to use at least
2 pins for power. Some devices are very efficient and only require one pin
(some times the Transmit or DTR pin) to be high - in the "SPACE" state while
idle. An RS-232 port can supply only limited power to another device. The
number of output lines, the type of interface driver IC, and the state of the
output lines are important considerations.
The types of driver ICs used in serial ports can be divided into three general
categories:
• Drivers which require plus (+) and minus (-) voltage power supplies such
as the 1488 series of interface integrated circuits. (Most desktop and
tower PCs use this type of driver.)
• Low power drivers which require one +5 volt power supply. This type of
driver has an internal charge pump for voltage conversion. (Many
industrial microprocessor controls use this type of driver.)
• Low voltage (3.3 v) and low power drivers which meet the EIA-562
Standard. (Used on notebooks and laptops.)
Data is transmitted and received on pins 2 and 3 respectively. Data Set Ready
(DSR) is an indication from the Data Set (i.e., the modem or DSU/CSU) that it
is on. Similarly, DTR indicates to the Data Set that the DTE is on. Data Carrier
Detect (DCD) indicates that a good carrier is being received from the remote
modem.
Pins 4 RTS (Request To Send - from the transmitting computer) and 5
CTS (Clear To Send - from the Data set) are used to control. In most
Asynchronous situations, RTS and CTS are constantly on throughout the
communication session. However where the DTE is connected to a multipoint
line, RTS is used to turn carrier on the modem on and off. On a multipoint line,
it's imperative that only one station is transmitting at a time (because they share
the return phone pair). When a station wants to transmit, it raises RTS. The
modem turns on carrier, typically waits a few milliseconds for carrier to
stabilize, and then raises CTS. The DTE transmits when it sees CTS up. When
the station has finished its transmission, it drops RTS and the modem drops
CTS and carrier together.
Clock signals (pins 15, 17, & 24) are only used for synchronous
communications. The modem or DSU extracts the clock from the data stream
and provides a steady clock signal to the DTE. Note that the transmit and
receive clock signals do not have to be the same, or even at the same baud rate.
Note: Transmit and receive leads (2 or 3) can be reversed depending on the use
of the equipment - DCE Data Communications Equipment or a DTE Data
Terminal Equipment.
SPECIFICATIONS:
SPECIFICATIONS RS232
SINGLE
Mode of Operation
-ENDED
1 DRIVER
Total Number of Drivers and Receivers on One Line
1 RECVR
Maximum Cable Length 50 FT.
Maximum Data Rate 20kb/s
Maximum Driver Output Voltage +/-25V
Driver Output Signal Level (Loaded Min.) Loaded +/-5V to +/-15V
Driver Output Signal Level (Unloaded Max) Unloaded +/-25V
Driver Load Impedance (Ohms) 3k to 7k
Max. Driver Current in High Z State Power On N/A