Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Share on Facebook
Like
Send
1.Introduction
Indian Railways have 4th largest network size in the world but still it has outdated communication, safety and signaling equipment on many of its tracks. The speed of updating these with the latest technology is very slow. The manual signal system on Looking For New Customers the tracks increases the distance between trains and reduces their speed besides www.Google.com/AdWords
Drive Customers To Your Website W/ being the cause of a number of train accidents. Free Rs.1500 Advertising Credit
So, we come up with a project Anti-Collision System (Railways) which can avoid such type of railway accidents. So, we come up with a project GPS Zigbee train anti collision which can avoid such type of railway accidents.
In this project, we have used Microcontroller, LCD panel, Wireless TransReceiver Unit (Zigbee), MAX 232, different ICs and power supply. Microcontroller is the heart of our project; it acts as an interface among LCD, Motor, Max 232, Potentiometer, LEDs and Transreceiver (Zigbee).
4/23/13
Indian Railways may soon launch real-time tracking of trains on Google maps that can be accessed through mobile devices and PCs. The Centre for Railway Information Systems (CRIS), the technology arm of the Indian Railways, has developed a GPS-based solution with help of Indian Space Research Organization (ISRO), which can provide exact location of a train with an accuracy of 10 meters, and latency of 2 minutes, on a real-time basis.
The GPS devices, which will cost around Rs 70,000-1, 00,000 per train, would be fitted in about 100 trains, which may help avert collisions and prevent loss of lives. In affect, trains in future may know each other's location, and start breaking, in case of danger ahead.
The breaking distance of passenger trains is about 1 km, while for freight trains it is about 1.4 kms. Around 22 people have died this year due to train accidents, and last year around 120 people died. According to reports, in the last four years, around 15% of rail accidents took place in India.
"The government's focus is to reduce the number of accidents and installation of real-time monitoring service on all trains by the end of 2013, which would contribute in improving the monitoring," V A Chopra MD CRIS said.
4/23/13
Success of the GPS-based system may help Railways in running trains at high speed. The GPS application will also aid in better planning of train schedules, especially in bad weather. Currently, scheduling is done manually. Station masters call the divisional headquarters and inform them once a train has left a particular station. "In future, the controller will only plan the running and scheduling of trains instead of cocoordinating with various other stations to confirm the status of the trains," said Chopra. Indian Railways has about 77 control offices at over 6,000 stations. A pilot project has already started between Chennai and Tambaram railway stations, where about 364 suburban train services have been scheduled successfully with the GPS devices. CRIS plans to allocate around Rs 70 crore to the project. The facility to track train movements will soon be available on Indianrailways. gov.in. Last year, Indian Railways had announced the project Satellite Imaging for Rail Navigation (SIMRAN) jointly with IIT-Kanpur for a similar tracking portal, which is currently in pilot stage with several trains including Rajdhani and Shatabdi.
4/23/13
network as a platform for enhanced real-time data transmission, and increased transmission flows and improve the data transfer rate and reduce the bit error rate and reduce the communication costs. This network is applicable to the sudden application of the data such as the GPS system. In addition, during designing the electronic map, using the MapInfos MapX Component Object Model as a secondary development, making the work of relatively simple programming and shortens the development cycle. Monitoring Center of the man-machine interface used in the form of electronic maps, and can do the following operations for the
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
4/32
4/23/13
2. Proposal
2.1 Proposed Work
The proposed Train Anti Collision System consists of a self - acting microcontroller and two way ZigBee-based data communication system. TACS Network consists of mobile subsystems (on Locomotives and Guards Brake Vans), track changing sections subsystem, subsystem in stations, subsystem in level crossing gates and the subsystem in railway signal posts. Loco subsystem communicates to other locos within a [5] using radio frequency . The system communicates radius of 3000 meters
posts, Level crossing gates and control stations to continuously monitor various signals arriving in the control center and taking decisions based on the received data. ZigBee modem communicate s with other subsystems providing a mesh interconnection between all subsystems. The control station controls and monitors the entire system in the TACS network. Whenever a collision-like situation is perceived, TACS Network is likely to prevent head-on and rear -end collisions in mid -sections, collisions at high speed in station area, side collisions with derailed vehicles obstructing adjacent line, collisions due to train parting or jumbling and collisions with road vehicles at level crossing through Train Approach warning and detection of Gate Open. Train subsystem also gives Station Approach warning to drivers. Moreover, using manual switches on the train subsystem, Drivers, Guards and Station Masters can also stop trains when any unusual is detected. Different subsystems of TACS when installed on Locomotives (along with their Auto- Braking Units), Guard Vans, Railway signal posts, Stations, Track changing
4/23/13
system. The Wireless RF module sends capsules of data as an 8 bit format comprising of the signals obtained from various points described. Figure 2 shows the pictorial representation of the TACS control center.
block diagram
At this stage we have categorized the whole system into different individual modules. These modules (block diagrams) will be helpful in understanding the concept and working of the integrated system. It also simplifies the entire debugging and testing process.
Implementing circuits and components This is the actual implementation of circuit of each block. At this stage we have actually designed each block separately and finally integrated them into the complete working system.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
4/23/13
To get the logical flow of the software, the development of algorithm is having a prominent role. So that we have analyzed the complete system and organized the algorithm in such a manner that one can understand the complete working of the software.
writing actual code for Microcontroller After the development of the algorithm and flowchart we have actually translated them in C language for Atmel 89C51 Microcontroller so that it can understand the instructions and run as per our requirement. The instructions are in ANSII C Language.
Compiling the code The code is implemented on the computer for which we have used Keil preinstalled on PC. The Keil is a Computer Aided Program to simulate the working of Microcontroller in real time without burning the software into actual IC. We simulated and compiled our program for error checking. After removing of several compiling errors the program was converted into machine language i.e. Intel hex format.
Burning the hex file into microcontroller with Programmer In this stage the compiled hex format file was downloaded or burned into Atmel AT89C51 flash Microcontroller. This was done with the help of FP-8903 Programmer for Atmel microcontrollers designed by Oriole Electronics Pvt. Ltd.
Testing and Running This time we tested our project for actual working, after loading the software into the microcontroller. Any errors found were removed successfully. This is the last and final stage.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
7/32
4/23/13
2.3
System Requirements
Description Transformer 12-0-12V,750mA Capacitor1000uF,25V Voltage regulator IC 7805 Capacitor 1uF LED Resistors Disc capacitors IC Base PCB Wires Solder wire Cabinet Mains cord Transistor BC548 GPS receiver Zigbee XCTU 1 4 1 1 1 1 15 5 5 1 2 1 1 1 5 2 3
Qty. 4 5
Price 35
10
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
8/32
4/23/13
PCB designing
JAN 2013-
FEB 2013
FEB 2013
LITERATURE MATERIALS
INTERACTION 3 Testing and troubleshooting MAR 2013 WITH GUIDE AND LITERATUTRE MATERIAL
Report making
APR 2013
11
Tasks The following tasks are to be executed:1. Requirement Analysis Phase 1 2. Requirement Analysis Phase 2 3. Design of System 4. Coding Phase 1 5. Coding Phase 2
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm 9/32
4/23/13
6. Testing Phase 1 Requirement analysis: 1. Requirement Analysis Phase 1: This will include the research of existing software and a discussion with the Project guide. 2. Requirement Analysis Phase 2: Based on the above results, the project team will discuss and finalize the requirements that are to be provided. We shall consult a number of experts during this phase. The SPMP shall also be prepared during this phase.
Design Phase: The design phase will involve the design of the static view, dynamic view, and the functional view of the software. A number of diagrams including the Use case, class diagram, activity diagram, and data flow diagrams
12
will be used to model the software. Also, the GUIs will be designed during this phase. Coding Phase 1: The prerequisite to this phase is the study of Microsoft Visual basic6. After this study, an initial code of the entire project will be written. Also, the database will be created during this phase. Finally, we shall conduct unit tests.
Coding Phase 2: This phase will include a review of the code created in Phase 1. After the review, the necessary code and database will be modified to include the results of review. Testing Phase: We shall be following a testing program that will involve unit testing, integration testing, and validation testing. More information will be known after further discussion.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
10/32
4/23/13
13
2012-13
4. Design of system
4.1 Functional Block Diagram
System Block Diagram Train ID 1
Power Supply
LCD Display
Alarm
Motor
Power Supply
+3.3 v
Fig 4.1
14
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
11/32
4/23/13
Alarm
Temp.
Motor
Fig 4.2
15
2012-13
BASCOM Software
Zig-Bee Module
12/32
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
4/23/13
Computer
Power Supply +5 v
Fig 4.3
16
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
13/32
4/23/13
Fig 4.4
17
4.3 Working GPS based train anti-collision and position contains microcontroller 89S51, GPS module, Zigbee module, LCD display, and relay driver as main components. Microcontroller 89S51 is CMOS technology controller which can be 1000 times erased and reprogrammed. It has three main requirements power supply, clock, reset. Crystal oscillator of frequency 11.0592MHz is used because it can produce exact baud rate of 9600 required for serial communication. It has four ports- PORT0, PORT1, PORT2, PORT3 all are 8 bits. Coordinates of train is displayed on 16*2 LCD displays which is connected to PORT0. Direction of train is specified on Port 1. Port 2 is used of relay connection. PORT3 has RXD and TXD pins for serial communication, when supply is on, GPS in both the trains will receive their respective coordinates. When latitude and longitude are received, second relay will switch its contact and it will transmit its coordinates to other train through Zigbee. Similarly it will receive opposite trains coordinates. Microcontroller will compare these coordinates with its own coordinates and if difference is less than pre defined threshold value, first relay will switch its contact and motor will stop and buzzer will ring. When breaks are applied, we have designed it such a way that one of the train will act as control station. The second train will transmit its coordinates to control station and in control station, that position is displayed on Google maps using PC interface.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm 14/32
4/23/13
18
19
4/23/13
4K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz 128 x 8-bit Internal RAM 32 Programmable I/O Lines Two 16-bit Timer/Counters Six Interrupt Sources Full Duplex UART Serial Channel Low-power Idle and Power-down Modes Interrupt Recovery from Power-down Mode Watchdog Timer Dual Data Pointer Power-off Flag Fast Programming Ti Flexible ISP Programming (Byte and Page Mode) Green (Pb/Halide-free) Packaging Option
20
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
16/32
4/23/13
Fig 4.5
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
17/32
4/23/13
Fig 4.6
22
Fig 4.7
Transformer - steps down high voltage AC mains to low voltage AC. Rectifier - converts AC to DC, but the DC output is varying. Smoothing - smoothes the DC from varying greatly to a small ripple. Regulator - eliminates ripple by setting DC output to a fixed voltage.
23
4/23/13
Features 1. Eight darlingtons with common emitters; 2. Output current to 500 Ma; 3. Output voltage to 50 V; 4. Integral suppression diodes; 5. Versions for all popular logic families
24
4/23/13
location, speed, direction, and time. GPS has become a widely used aid to navigation worldwide, and a useful tool for map-making, land surveying, commerce, scientific uses, tracking and surveillance, and hobbies such as geo- caching and way marking. Also, the precise time reference is used in many applications including the scientific study of earthquakes and as a time synchronization source for cellular network protocols. GPS has become a mainstay of transportation systems worldwide, providing navigation for aviation, ground, and maritime operations. Disaster relief and emergency services depend upon GPS for location and timing capabilities in their life-saving missions. The accurate timing that GPS provides facilitates everyday activities such as banking, mobile phone operations, and even the control of power grids. Farmers, surveyors, geologists and countless others perform their work more efficiently, safely, economically, and accurately using the free and open GPS signals.
25
This information is then used to estimate the position of the GPS receiver as the intersection of sphere surfaces. The resulting coordinates are converted to a more convenient form for the user such as latitude and longitude, or location on a map,
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm 20/32
4/23/13
and then displayed. It might seem that three sphere surfaces would be enough to solve for position, since space has three dimensions. However a fourth condition is needed for two reasons. One has to do with position and the other is to correct the GPS receiver clock. It turns out that three sphere surfaces usually intersect in two points. Thus a fourth sphere surface is needed to determine which intersection is the GPS receiver position. For near earth vehicles, this knowledge that it is near earth is sufficient to determine the GPS receiver position since for this case there is only one
26
Features
High sensitivity -160dBm Searching up to 65 Channel of satellites LED indicating power & Fix Low power consumption GPS L1 C/A Code Supports NMEA0183 V 3.01 data protocol Real time navigation for location based services Works from +5V DC signal and outputs 9600 bps serial data Built In Ceramic antenna
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
21/32
4/23/13
27
Car Navigation and Marine Navigation, Fleet Management Automotive Navigator Tracking, Vehicle Tracking AVL and Location-Based Services Auto Pilot, Personal Navigation or touring devices Tracking devices/systems and Mapping devices application Emergency Locator Geographic Surveying Personal Positioning Sporting and Recreation Embedded applications which needs to be aware of its location on earth
28
4/23/13
searching for satellites. If it becomes off means it has found a fix with satellite and data contains position and other data. When you power on it will blink for a while then it will become off.
29
Global operation in the 2.4GHz frequency band according to IEEE 802.15.4 Regional operation in the 915 MHz (Americas) and 868 MHz (Europe). Frequency agile solution operating over 16 channels in the 2.4GHz frequency.
Incorporates power saving mechanisms for all device classes, plus support for battery-less devices Discovery mechanism with full application confirmation. Pairing mechanism with full application confirmation Multiple star topology and inter-personal area network (PAN) communication.
4/23/13
receiver converts TIA/EIA-232-F inputs to 5-V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V, a typical hysteresis of 0.5 V, and can accept 30-V inputs. Each driver converts TTL/CMOS input levels into TIA/EIA-232-F levels. MAX 232 Features: Meets or Exceeds TIA/EIA-232-F and ITU Operates From a Single 5-V Power Supply
Operates Up To 120 Kbit/s Two Drivers and Two Receivers 30-V Input Levels Low Supply Current . . . 8 mA Typical
30
4.5
PCB designing
Five steps to PCB making 1. Draw the schematic of the circuit on a computer using the required software 2. Design the PCB on the computer using the required software 3. Print the PCB design through a laser printer 4. Take the impression of the circuit on a copper-clad board 5. Remove the excess copper by etching
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm 24/32
4/23/13
31
32
4/23/13
Cut the copper-clad board to a size matching the size of the PCB design printout. You can also use a glass epoxy board but its costlier than a copper-clad board. Put the paper printout on the board with the printed side facing the copper side. Affix the paper to the board using cello tape so that the paper does not move while ironing. Now take your household electric iron and set its temperature to the maximum Press the hot iron on the paper and carefully move it across the paper for about four minutes. While doing so, check for impressions. Continue ironing until the complete impression of the circuit comes on the copper side. Complete the blanks, if any, with a good permanent marker. If any line is not dark enough, redraw it on the board using the permanent marker. Wash the board in normal tap water. Drill IC holes using a 1mm hand PCB drill. Redraw the lines using the permanent marker if they have been defaced by the drill. Now mix some FeCl3 (ferric chloride) powder in hot water. The reaction is vigorous, so take safety precaution. Put the copper-clad board in the solution and constantly tilt the container from side to side without spilling its contents. This is done to speed up the reaction. It takes five to six minutes to wash away all the excess copper. In between, keep checking the board. Ensure that the marker or carbon of the impression does not wash away. Take the board out and wash it under tap water to remove the permanent marker ink. Remove carbon by using nail polish remover. Use a scrubber to gently scrub the copper surface till it shines and PCB is ready.
33
For soldering of any joints first the terminal to be soldered are cleaned to remove oxide film or dirt on it. If required flux is applied on the points to be soldered. Now the joint to be soldered is heated with the help of soldering iron. Heat applied should be such that when solder wire is touched to joint, it must melt quickly. The joint and the soldering iron is held such that molten solder should flow smoothly over the joint. When joint is completely covered with molten solder, the soldering iron is removed.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
26/32
4/23/13
The joint is allowed to cool, without any movement. The bright shining solder indicates good soldering. In case of dry solder joint, a air gap remains in between the solder matenal and the joint. It means that soldering is improper. This is removed and again soldering is done. Thus is this way all the components are soldered on P. C. B.
34
4/23/13
Bit, Byte, Integer, Word, Long, Single and String variables. Compiled programs work with any 8051 uP such as AT89C1051, AT89C2051, 8031, 8032, 8051, 8052, 80552, 80535 and 80537 m Processors. Statements are highl y compatible with Microsofts VB/QB. Special commands for LCD-displays , I2C chips and 1WIRE chips.
35
36
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
28/32
4/23/13
5.2 Demerits
1. Coordinates of gps changes rapidly. 2. Programming consumes complete memory of microcontroller. So for additional features we may require to connect external RAM.
37
6. Future scope
1. Using GPS speed of train uplink train can be determined with respect to downlink train.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm 29/32
4/23/13
2. Fire alarm, smoke detector can be introduced in the train to make system more secure for public.
38
7. Conclusion
In this project, an anti-collision system and the position on Google maps for trains have been designed, simulated and tested. It has been estimated that if the system is implemented in railways, two trains accidently on the same track but in opposite direction may stop automatically with a safe distance. Hence it is expected that, major train mishaps can be prevented and human life saved if this system is implemented.
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
30/32
4/23/13
39
Bibliography
The datasheets and block-diagram/pin-diagram for various components are available as follows:
http://www.htmldatasheet.com/atmel/89c2051.html http://www.datasheetcatalog.com/datasheets_pdf/M/A/X/2/MAX232.sht ml http://www.datasheetcatalog.com/datasheets_pdf/M/C/T/2/MCT2E.shtml http://www.datasheetarchive.com/db9+connector+datasheetdatasheet.html http://timesofindia.indiatimes.com/ Electrical Technology by B.L. Theraja Electronic Devices and Circuit Theory by Boylestad The 8051 Microcontroller and Embedded System by Mazidi
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
31/32
4/23/13
40
share.pdfonline.com/6f2a124a77ea4a63986ef5bb5b244597/project_report_sem8.htm
32/32