Tuesday 7 January 2014

AUTOMATIC RAILWAY GATE CONTROL

Flow of the demo of AUTOMATIC RAILWAY GATE CONTROL

1)Power supply should be given to both the boards. Reset both boards. On the transmitter side on reset a message "Rail gate cntrl" will appear on the LCD.

2)The IR present at the entry side is first cut indicating that the train is arriving. The transmitter side will transmit the data 01 to the receiver side. Once the receiver receives the data it rotates the stepper motor in clockwise direction indicating that the gate is closed.

3)Meanwhile at the transmitter end the tag attached to the train is swiped against an RFID reader and the details of the train is messaged to the pre defined number through GSM modem.

4)The exit side IR is connected with the receiver side and once the exit side IR is cut the stepper motor rotates in aticlockwise direction indicating that the gate is opened.


5)After the exit side IR is cut then only the entry side IR can be cut again to indicate the arrival of other train.

Transmitter side

1)The entry side IR is connected to the PORT 3^7.

2)The relay is connected to the PORT 1^7. If relay is made as 1, then it switches to the UART connected to the RFID reader. If relay is made 0 then it switches to the UART connected to the GSM MODEM. (Default UART is the one which is connected to the RFID reader).

3)The encoder used at the transmitter end is HT12E.
                a)The TE pin of HT12E is connected to the PORT 2^4, the data pins of the HT12E is connected to the port pins PORT 2^0, 2^1, 2^2, 2^3. The encoder is a 4 bit encoder.

4)The LCD data pins are connected to port pins P1^2, P1^3, P1^4, P^5. The RS pin of the LCD is connected to P1^0 and EN pin of the LCD is connected to P1^1.

VERY IMPORTANT: At the transmitter side program, in "uart.c" file in LINE 42 change the phone number to which the message has to be sent and dump the code to the transmitter side board using RS232 cable.

5)For Tag number "10829126" message will be sent as "Express train-16209"(16209 is just a random number to tell the train number) and for Tag number "10819181" message will be sent as "Passenger train-16600" and for any other cards it will send message as "Goods train-11100".

Receiver side

1)The exit side IR is connected to the PORT 3^7.

2)The decoder used is HT12D.
                a)The VT pin of the HT12D is connected to the port 0^4 and the data lines of the HT12D are connected to the port pins P0^0, P0^1, P0^2, P0^3. The decoder is a 4 bit decoder.

3)The stepper motor is connected to port pins P2^4, P2^5, P2^6, P2^7.

4)There is NO NEED to change the code at the receiver side and hence NO NEED to dump any program at the receiver side.

0 comments:

Post a Comment