intelligenty train engine report

Upload: suresh-panchal

Post on 05-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Intelligenty Train Engine Report

    1/30

    ACKNOWLEDGEMENTS

    I take this opportunity to express our deep sense of gratitude and

    respect towards my guide, Ms. Rachna Gera mam, Lecturer,

    Poornima Institute of Engineering and Technology. I am very much

    indebted to him for the generosity, expertise and guidance; I have

    received from him while working on this report. Without his support

    and timely guidance, the completion of my report would have seemed

    a far fetched dream. In this respect I find ourselves lucky to have him

    as my guide. He has guided me not only with the subject matter, butalso taught me the proper style and technique of presentation.

    Last but not the least I would like to extend my sincere thanks to

    my classmates and my friends for their constant help and support.

  • 7/31/2019 Intelligenty Train Engine Report

    2/30

    ABSTARCT

    The railroad industrys own desire to maintain their ability to provide

    safe and secure transport of their customers hazardous materials, has

    introduced new challenges in rail security. Addressing these

    challenges is important, as railroads, and the efficient delivery of their

    cargo, play a vital role in the economy of the country.

    The present project is designed to satisfy the security needs of

    the railways. With the IR sensors placed at a distance of few

    kilometers on the both sides. These sensors give the train reaching

    and leaving status to the embedded controller at the gate to which

    they are connected. If the train crosses one of the IR sensors,

    immediately red signal will be indicated at the other end. Then the

    track direction will be changed accordingly to avoid accidents. After

    changing the direction of the track, green signal will be given to the

    coming train in opposite direction.

    One more advantage in this application is to avoid the

    accidents if there is any breakage in the track .Advanced RF

    communication is used for signaling. The whole system is divided

    into two modules, the Transmitter module and the Receiver module.

    At the transmitter side, module sends the RF signal if the track is

    removed. Now at the receiver side, the receiver module by receiving

    the RF signals will stop the train without moving on the track. But the

  • 7/31/2019 Intelligenty Train Engine Report

    3/30

    important thing to be noted here is that there is no connection between

    the Transmitter and Receiver section. Radio frequency (RF signal of

    434MHz) makes this task very simple. So, that train will be stopped

    at the point to avoid the accident

  • 7/31/2019 Intelligenty Train Engine Report

    4/30

    INTRODUCTION

    We know that the railway network of India is the biggest in south

    Asia and perhaps the most complicated in all over the world.There

    are so many different types of trains local,fast,superfast,passenger,

    goods. etc. and their so many multiplerouts.Although the time

    table is perfect it is not at all possible to maintain it. And thatswhy the train accidents are becoming more and more usual. So

    why not we add a kind of intelligence to the train engines itself so

    that it tries to avoid accidents.

    The idea is whenever any engine observes a red signal on its trackit will start decreasing its speed gradually and stops automatically

    at some distance from the signal pole. After then when it gets

    green signal the driver can manually start the train and go on. In

    the mean time when train has not stopped yet and a red signal

    becomes green then it crosses the signal pole with low speed and

    then driver can slowly increase the speed.

    signal the engine itself observes it and automatically starts

    decreasing speed and then stops. The driver can feel relax in

    driving because he doesnt have to take care about red signal.

    Even if he forgets to take any action on red signal then also we

    can So now before the driver observes the red avoid accidents by

    the implementation of this idea.

  • 7/31/2019 Intelligenty Train Engine Report

    5/30

    GENERAL DESCRIPTION:

    What we have to do is we have to attach a transmitter with signal

    pole which will start transmitting signals only when the red light is on.

    If there is green light no transmission. The engine has a receiver which

    catches these transmitted signals and takes desire actions.

    Both the transmitter and receiver are of RF type with minimum range of

    2KM, so that train can get enough time to decrease its speed and stop

    before the signal pole with minimum swapping distance of 100-200 mt.

    Here in our project we have used IR Transmitter and receiver instead of

    RF for demo purpose. But same idea can be easily implemented with RF

    also with a little more cost.

  • 7/31/2019 Intelligenty Train Engine Report

    6/30

    DEMONSTRATION MODEL

    DEMONSTRATION MODEL DISCRIPTION:

    The train engine runs on 24 V DC motor so that we can

    easily vary its speed by varying applied voltage. The switching voltage

    is applied in step of 18V, 12V, 15V and 9V (min speed). The 230V AC isstep down to 24 V AC by 12-0-12,2Amperes step down transformer.

    As shown in figure this 24V AC line runs parallel with track at the top of

    the train. Movable tapping are taken from this line and fed to the

    internal circuit of engine. These tapping slides as the train run on the

    track and give continuous supply to circuit. The IR sensor is placed at

    the top of the engine, senses the signal transmitted by IR Transmitter

  • 7/31/2019 Intelligenty Train Engine Report

    7/30

    attached to signal pole. Train track is straight and 20ft long. Signal pole

    is placed at the end of track and train starts from farther end.

    The Project is divided into two parts:

    1. TRANSMITTER

    2. RECEIVER

    The transmitter is housed in signal pole and it is activated only when

    red light is ON.

    The receiver is housed in engine which senses the IR Signal and takes

    suitable action.

  • 7/31/2019 Intelligenty Train Engine Report

    8/30

    Block diagram

    CIRCUIT DIAGRAM

    SINGLE POLE IR TRANSMITTER

    The heart of the circuit is IC555. The main component of the circuit is only

    IC555.

  • 7/31/2019 Intelligenty Train Engine Report

    9/30

    CONNECTION:

    Both ICs are connected in astable mode. The frequency of U2 is 0.5Hz and U1 is

    38 KHz. This is decided by RC components connected with it. The output of U2 is connected

    with reset. Pin U4 of U1. Thus the output of U2 controls the operation of U1 means it will

    switch ON of OFF. The output of U1. The output of U1 is fed to two IR LEDs through

    Darlington pair made up of Q1, Q2, and R5. The 9V DC battery is connected with circuit

    through SPDT switch SW1 as shown.

    OPERATION:

    As shown in figure when SW1 is in position as shown the transmitter is ON and also

    the red LED is also ON. When switch changes its position the red LED and transmitter is

    OFF and only green LED will on. When the circuit is energized U2 will start generating high

    pulse at every 1 sec. as this pulse is fed to reset pin of U1 it will generate 38 KHz square

    wave and give it to IR Leds. IR Leds will generate IR beam of 38 KHz for the the same time.

    Thus after every one second the IR Beam of 38Khz is generated for one second only. This

    cycle repeats till the red light is on.

    NOTE:-The range of this transmitter is limited to 10 ft only.

  • 7/31/2019 Intelligenty Train Engine Report

    10/30

    89C51 based IR receiver for Engine:

    The main component of the circuit are IR sensor TSOP 1738, microcontroller

    89C51,current driver chip ULN2003A and all voltage regulator ICs (78XX

    series)

    connections:1. 24 VAC is rectified by diode bridge D1 and filtered through C1 and given to all the regulated ICs as

    input.

    2. The output of 7805 is connected to 89C51 and TSOP and also to all the LEDs.

    3. Output of 7812 (last one) is connected to common coil terminal and to ULN

    4. The outputs of middle four regulated ICs are connected to DC motor through relay contacts.

    5. Output of TSOP is connected with pin P3.3 (INT1) of microcontroller

    6. All five leds are connected with port P0 as shown

    7. Input of ULN is connected with Port 1 pins P1.0-P1.3, and outputs are connected with second

    terminal of relay coil.

    Operation:1. TSOP will detect the 38 KHz IR beam and gives the interrupt to 89C51.

    2. 89C51 will indicate the interrupt event on first (green) LED and energizes only one particular relay

    through ULN chip.

    3. When any of the four relay get energized the motor will get supply from it and it will start running

    4. As voltage is less it will run with less speed

  • 7/31/2019 Intelligenty Train Engine Report

    11/30

    5. So now its the function of microcontroller to receive signal from IR sensor, decrease the speed of

    train gradually in four steps and then stop it. And this is done by software embedded in to 89C51.

  • 7/31/2019 Intelligenty Train Engine Report

    12/30

    ENCODER AND DECODER

    ENCODER:

    An encoder is a device used to change a signal (such as a bitstream) or

    data into a code. The code may serve any of a number of purposes such as

    compressing information for transmission or storage, encrypting or adding

    redundancies to the input code, or translating from one code to another. Indigital electronics this would mean that a decoder is a multiple-input, multiple-

    output logic circuit(2n-n).

    DECODER:

    A decoder is a device which does the reverse of an encoder, undoing the

    encoding so that the original information can be retrieved. The same method

    used to encode is usually just reversed in order to decode. In digital electronics

    this would mean that a decoder is a multiple-input, multiple-output logic

    circuit(n-2n).

    HT12E FEATURES:

    Operating voltage

  • 7/31/2019 Intelligenty Train Engine Report

    13/30

    2.4V~5V for the HT12A

    2.4V~12V for the HT12E

    Low power and high noise immunity CMOS technology

    Low standby current: 0.1_A (type.) at VDD=5V

    HT12A with a 38kHz carrier for infrared transmission medium

    Minimum transmission word

    Four words for the HT12E

    One word for the HT12A

    Built-in oscillator needs only 5% resistor Data code has positive polarity

    Minimal external components

    HT12A/E: 18-PIN DIP/20-PIN SOP package

    The 212

    encoders are a series of CMOS LSIs for remote control system

    applications. They are capable of encoding information which consists of N

    address bits and 12N

    data bits. Each address/ data input can be set to one of

    the two logic states. The programmed addresses/data are transmitted

    together with the header bits via an RF or an infrared transmission medium

    upon receipt of a trigger signal. The capability to select a TE trigger on the

    HT12E or a DATA trigger on the HT12A further enhances the application

    flexibility of the 212 series of encoders. The HT12A additionally provides a 38

    kHz carrier for infrared systems.

  • 7/31/2019 Intelligenty Train Engine Report

    14/30

    PIN DESCRIPTION

    PIN A0-A7: Input pins for address A0~A7 setting

    PIN AD8~AD11: Input pins for address/data AD8~AD11 setting

  • 7/31/2019 Intelligenty Train Engine Report

    15/30

    PIN D8~D11: Input pins for data D8~D11 setting and transmission enable,

    active low

    PIN DOUT: Encoder data serial transmission output

    PIN L/MB: Latch/Momentary transmission format selection PIN:

    PIN : Transmission enable, active low

    PIN OSC1: Oscillator input pin.

    PIN OSC2: Oscillator output pin.

    PIN X1: 455 kHz resonator oscillator input.

    PIN X2: 455 kHz resonator oscillator output

    PIN VSS: Negative power supply, grounds

    PIN VDD: Positive power supply

  • 7/31/2019 Intelligenty Train Engine Report

    16/30

    FUNCTIONAL DESCRIPTION

    OPERATION

    The 212 series of encoders begin a 4-word transmission cycle upon receipt of a

    transmission enable (TE for the HT12E or D8~D11 for the HT12A, active low).

    This cycle will repeat the transmission enables returns high the encoder output

    completes its final cycle and then stops as shown below.itself as long as the

    transmission enable (TE or D8~D11) is held low. Once

  • 7/31/2019 Intelligenty Train Engine Report

    17/30

    INFORMATION WORD

    If L/MB=1 the device is in the latch mode (for use with the latch type of

    data decoders). When the transmission enable is removed during atransmission, the DOUT pin outputs a complete word and then stops. On the

    other hand, if L/MB=0 the device is in the momentary mode (for use with the

    momentary type of data decoders). When the transmission enable is removed

    during a transmission, the DOUT outputs a complete word and then adds 7

    words all with the 1 data code.

    An information word consists of 4 periods as illustrated below.

  • 7/31/2019 Intelligenty Train Engine Report

    18/30

    ADDRESS/DATA WAVEFORM

    Each programmable address/data PIN can be externally set to one of the

    following two logic states as shown below

  • 7/31/2019 Intelligenty Train Engine Report

    19/30

    PIN DESCRIPTION:

  • 7/31/2019 Intelligenty Train Engine Report

    20/30

    PIN A0~A11: Input pins for address A0~A11 setting

    PIN D8~D11: Output data pins

    PIN DIN: Serial data input pin

    PIN VT: Valid transmission, active high

    PIN OSC1: Oscillator input pin

    PIN OSC2: Oscillator output pin

    PIN VSS: Negative power supply (GND)

    PIN VDD: Positive power supply

    FUNCTIONAL DESCRIPTION

  • 7/31/2019 Intelligenty Train Engine Report

    21/30

    OPERATION

    The 212 series of decoders provides various combinations of addresses

    and data pins in different packages so as to pair with the 212

    series of encoders.

    The decoders receive data that are transmitted by an encoder and interpret

    the first N bits of code period as addresses and the last 12_N bits as data,

    where N is the address code number. A signal on the DIN pin activates the

    oscillator which in turn decodes the incoming address and data. The decoders

    will then check the received address three times continuously. If the received

    address codes all match the contents of the decoders local address, the 12_N

    bits of data are decoded to activate the output pins and the VT pin is set high

    to indicate a valid transmission. This will last unless the address code is

    incorrect or no signal is received. The output of the VT pin is high only when

    the transmission is valid. Otherwise it is always low.

    OUTPUT TYPE

    Of the 212

    series of decoders, the HT12F has no data output pin but its

    VT pin can be used as a momentary data output. The HT12D, on the other

    hand, provides 4 latch type data pins whose data remain unchanged until new

    data are received.

    HARDWARE ARCHITECTURE

  • 7/31/2019 Intelligenty Train Engine Report

    22/30

    4.1 Power supply unit

    A power supply (sometimes known as a power supply unit or PSU) is a

    device or system that supplies electrical or other types of energy to an output

    load or group of loads. The term is most commonly applied to electrical energy

    supplies, less often to mechanical ones, and rarely to others.

    Fig:- Block diagram of power supply

    Fig:- processing of power supply

    The transformer steps up or steps down the input line voltage and

    isolates the power supply from the power line. The RECTIFIER section converts

    the alternating current input signal to a pulsating direct current. However, as

    you proceed in this chapter you will learn that pulsating dc is not desirable. For

    this reason a FILTER section is used to convert pulsating dc to a purer, more

    desirable form of dc voltage.

  • 7/31/2019 Intelligenty Train Engine Report

    23/30

    The final section, the REGULATOR, does just what the name implies. It

    maintains the output of the power supply at a constant level in spite of large

    changes in load current or input line voltages. Now that you know what each

    section does, let's trace an ac signal through the power supply. At this point

    you need to see how this signal is altered within each section of the power

    supply. Later on in the chapter you will see how these changes take place. An

    input signal of 115 volts ac is applied to the primary of the transformer.

    The transformer is a step-up transformer with a turns ratio of 1:3. You

    can calculate the output for this transformer by multiplying the input voltage

    by the ratio of turns in the primary to the ratio of turns in the secondary;

    therefore, 115 volts ac 3 = 345 volts ac (peak-to- peak) at the output. Because

    each diode in the rectifier section conducts for 180 degrees of the 360-degree

    input, the output of the rectifier will be one-half, or approximately 173 volts of

    pulsating dc.

    The filter section, a network of resistors, capacitors, or inductors,

    controls the rise and fall time of the varying signal; consequently, the signal

    remains at a more constant dc level. You will see the filter process more clearly

    in the discussion of the actual filter circuits. The output of the filter is a signal

    of 110 volts dc, with ac ripple riding on the dc. The reason for the lower voltage

    (average voltage) will be explained later in this chapter. The regulatormaintains its output at a constant 110-volt dc level, which is used by the

    electronic equipment (more commonly called the load).

  • 7/31/2019 Intelligenty Train Engine Report

    24/30

    4.1.1 Simple 5V power supply for digital circuits

    Brief description of operation: Gives out well regulated +5V output,

    output current capability of 100 mA

    Circuit protection: Built-in overheating protection shuts down output

    when regulator IC gets too hot

    Circuit complexity: Very simple and easy to build

    Circuit performance: Very stable +5V output voltage, reliable operation

    Availability of components: Easy to get, uses only very common basic

    components

    Design testing: Based on datasheet example circuit, I have used this

    circuit successfully as part of many electronics projects

    Applications: Part of electronics devices, small laboratory power supply

    Power supply voltage: Unregulated DC 8-18V power supply

    Power supply current: Needed output current + 5 mA

    Component costs: Few dollars for the electronics components + the

    input transformer cost

  • 7/31/2019 Intelligenty Train Engine Report

    25/30

    RF TRANSMITTER AND RECEIVER:

    RF TRANSMITTER MODULE:

    Functional block of Tx section where 1,2,3,4 are the pins

    1 - Antenna

    2 - Data input

    3 - Ground

    4 - VCC

    In this transmitting section the 1st

    pin is the antenna pin where

    we can able to fix the antenna for transmitting the data in the Radio

    Frequency, the 2nd

    pin is the data input pin in which the output of

    the encoder is given; the 3rd

    pin is the ground and the 4th

    pin is the

    VCC which is given to operate the transmitter section.

  • 7/31/2019 Intelligenty Train Engine Report

    26/30

    RF RECEIVER MODULE:

    Functional block of Rx section where 1,2,3,4 are the pins

    1 - Antenna

    2 - Data input

    3 - Ground

    4 - VCC

    In this receiving section the 1st

    pin is the antenna pin where we can

    able to fix the antenna to receive the data in the Radio Frequency,

    the 2nd

    pin is the data output pin to the decoder circuit, the 3rd

    pin is

    the ground and the 4th

    pin is the VCC which is given to operate the

    receiver section.

  • 7/31/2019 Intelligenty Train Engine Report

    27/30

    HARDWARE REQUIREMENT:

    MC 89C51

    IR Sensor

    Buzzer

    Power Supply

    DC Motor

    SOFTWARE USED:

    Keil software

    Embedded C

  • 7/31/2019 Intelligenty Train Engine Report

    28/30

    ADVANTAGES:

    Prevent Accidents

    Safety to the Peoples

    Automatic Operation

    Fault analyze is easy

    Less expensive

  • 7/31/2019 Intelligenty Train Engine Report

    29/30

    BIBLIOGRAPHY

    BOOKS :

    ADVANCED MICROPROCESSOR AND MICROCONTROLLER

    - B.P.SINGH

    MICROCONTROLLER AND EMBEDDED SYSTEM

    - MOHAMMED ALI MAZIDI

    MAGAZINE :

    ELECTRONICS FOR U

    PRACTICAL ELECTRONICS

    WEBSITES:-

    www.datasheets4u.com

    www.hitachi.com

    www.atmel.com

    www.wikipedia.com

    www.altavista.com

    http://www.datasheets4u.com/http://www.datasheets4u.com/http://www.hitachi.com/http://www.hitachi.com/http://www.atmel.com/http://www.atmel.com/http://www.wikipedia.com/http://www.wikipedia.com/http://www.altavista.com/http://www.altavista.com/http://www.altavista.com/http://www.wikipedia.com/http://www.atmel.com/http://www.hitachi.com/http://www.datasheets4u.com/
  • 7/31/2019 Intelligenty Train Engine Report

    30/30