SDMP automated railway safety system (ARSS) .Mega project Thesis sample

Preview:

Citation preview

DISSERTATION REPORT

ON

“Automated Railway Safety System”

A Submitted to Maharashtra State Board of Technical Education

For Partial Fulfillment of

Diploma in Information Technology

Submitted By :-

Ramkrishna Biswas

Yogesh Dahake

Gaurav Gorde

Piyush Guhe

Guidance by.

Mr. G. M. Vaidya

( Lecturer)

DEPARTMENT OF INFORMATION TECHNOLOGY

SHRI DATTA MEGHE POLYTECHNIC

YCCE Campus, Wanadongri ,Hingna Road,

Nagpur – 441110 (Maharashtra)

2013 – 2014

DEPARTMENT OF INFORMATION TECHNOLOGY

SHRI DATTA MEGHE POLYTECHNIC

WANADONGRI, NAGPUR

2013 – 2014

CERTIFICATE

This is to Certified that the project report on “Automated

Railway Safety System” Submitted by RamKrishna Biswas ,Yogesh

Dahake ,Gaurav Gorde ,Piyush Guhe Department of Information

Technology Shri Datta Meghe Polytechnic ,Nagpur.

In partial fulfillment for the award of the “Diploma Information

Technology” Maharashtra State Board of Technical Education ,Mumbai which

is record of the own work carried put but his under supervision and guidance

for the academic session 2013-14 .

Date:

Mr. G. M. Vaidya Mr. S.P. Pande Prof. P.W. Charde

( Lecturer) (H.O.D) (Principal, SDMP)

SUBMISSION

We are student of Final year of Diploma in Information

Technology humbly submit that, we have completed from time to time project

work as prescribe by Maharashtra State Board Of Technical Examination and

as prescribe in this report by my own skill and study by the period from 2013-

2014 .

1. Ramkrishna Biswas

2. Yogesh Dahake

3. Piyush Guhe

4. Gaurav Gorde

As per the instruction/Guidance of

Mr. G. M. Vaidya

And that we have not copied the report or any applicable part from any other included in completion of this academic thesis.

Date:

Ramkrishna Biswas Yogesh Dahake Piyush Guhe Gaurav Gorde

Acknowledgment

We wish to available this opportunity to acknowledge our profound indebtedness and extend our deep sense of gratitude to our

guide Mr. G. M. Vaidya, for his valuable guidance profound advice

and encouragement that has feel to the successful completion of this project.

Our sincere thanks are Prof P.W. Charde, of the institute for providing us the necessary facilities to carry out the work.

We are exceeding grateful to our Head of the Department

Mr. S.P. Pande, for his full co-operation and help every time and also other staff. We would especially thank to librarians for making us

available necessary books.

Finally ,we would like to express our deepest gratitude and

reverence of our parent for their steadfast encouragement throughout the progress of this work.

Projectees:

Mr. RamKrisha Biswas

Mr. Yogesh Dahake

Mr. Gaurav Gorde

Mr. Piyush Guhe

Index

Sr. Topic Page No.

1

Introduction

1-2

2

Modules

4-11

3

Hardware

12-20

4

Coding

21-33

5

PCB

34-36

6

Software

37-40

7

Resources

41-42

8

Advantages

43-44

9

Future Scope 45-46

10

Awards & Achievements

47-50

11

Conclusion

51--52

12

Reference

53-54

- 1 -

- 2 -

Introduction

- 3 -

Introduction:

Our Project is based on area of Railway Automation.

Automation is the use of machines, control systems and information

technologies to provide quality, secure & automated transport of

goods as well as human transport services. The correct incentive for

applying automation is to increase productivity, and/or quality

beyond that possible with current human labor levels so as to realize

economies of scale, and/or realize predictable quality levels.

About our project:-

Basically our project is “Automated Railway Safety

System “, in this project we represent four modules which is based

how to avoid critical railway accidents and disaster.

So, to demonstrate these concepts we created railway models

which include four modules.

1) Track alignment monitoring system.

2) Avoiding Collision Prevention system .

- 4 -

3) Automated Railway Crossing Gate.

4) Fire Detection and prevention system .

- 5 -

OVERVIEW OF MODEL

- 6 -

Modules

- 7 -

Module 1:

Track alignment monitoring system

• In track alignment monitoring system still there is a no

automated method to monitor the track alignment in railway. So, to

overcome this we are created model in which we can monitor the

alignment status of the track automatically by using the Application

software .

• If there is any fault or misalignment in the track, then the

Application Software automatically generate alert signal to stop rail

transport on the faulted route.

- 8 -

• To build this we are using laser, LDR, microcontroller &

Application software.

• The main advantage of this module is to avoid the major

railway accident that causes due to track misalignment which may

help to save life easily.

Working:-

•As shown in the fig. a laser is continuously focused on LDR,

and if the track gets misaligned then the focus of the laser from LDR

gets disturbed.

•Then Micro-controller detects this problem and send alert

message to the application Software that the track no, X, on location

Y is misaligned.

- 9 -

Track Status = OK

Track Status = Misaligned.

- 10 -

Module 2:

Collision of train on a single track.

•Mainly railway accidents are causes due to collision of train

with other train or any other foreign object (like Bus, Truck etc.).

That comes in front of running train. So, to overcome this major

problem we created a.” Collision of train on a single track” detection

and prevention system.

•In this system we are using Ultrasound detector (Range 3ft),

micro-controller, and buzzer.

• The main advantage of this module is to avoid the major

railway accident that causes due to train collision which may help to

save life, property and time.

Working:-

•In the given fig. if two trains are come closer on the same track

or any other obstacle is come then the ultrasound director placed at

the railway engine automatically detects that obstacle and alert the

driver to manage train speed or plays horn to manage situation.

- 11 -

•Generally the range of ultra sound detector range is up to 0.5 km-

2.0 km.

Ultra Sound Detector

- 12 -

Module 3:

Automated Railway Crossing Gate.

•In this concept we are demonstrating Railway crossing gate

which open & close automatically when train arrives & departure

from the crossing gate.

•The main purpose to build this module is to increase accuracy,

save labor cost, & time.

- 13 -

• To build this concept we are using the Laser, LDR, Stepper

motor, and Microcontroller, Buzzer, LED signals & Application

software.

Working:-

• As shown in figure when the train crosses the sensor situated

at before limited distance from the crossing gate, then the gate will

automatically closed.

•And when train crosses the sensor which is situated after the

crossing gate then the gate will automatically open.

•We also created an application which displays the current

status of the gate, using database it automatically record the opening

and closing entries of gate

+

•In case the sensors gets fail then an operator can manually operate

the gate remotely from control station. Using that application

software

• This the overview of our application software which is

connected to computer system through Serial-USB connector.

- 14 -

Gate Status = Close

Gate Status = Open

- 15 -

Module 4

Fire Detection and prevention system (in Train).

• In this concept we are demonstrating that how to prevent fire

in railway coaches’ .Still now there is no method in railway to

prevent the fire in coaches’ .Which is caused by smoking, by short

circuit or any combustible object. To overcome this problem we

created a circuit which detects smoke.

•When the circuit detects the smokes it atomically close all the

electricity supply in coach and immediately sprinkler spreads water to

prevent fire.

. •For this module, we are using smoke detection device,

Microcontroller, buzzer, sprinkler, water pump. Water supply tank.

Working:-

- 16 -

Fire detector and prevention system insatalled in coaches

- 17 -

Hardware

- 18 -

Microcontroller (p89v51rd2)

The P89V51RD2 is an 8051 Micro-controller with 64 KB Flash

and 1024 bytes of data RAM.

A key feature of the P89V51RD2 is its X2 mode option. The

design engineer can choose to run the application with the

conventional 80C51 clock rate (12 clocks per machine cycle) or

select the X2 mode (6 clocks per machine cycle) to achieve twice the

throughput at the same clock frequency. Another way to benefit from

this feature is to keep the same performance by reducing the clock

frequency by half, thus dramatically reducing the EMI.

- 19 -

- 20 -

Pin-Out Diagram

Features

5 V Operating voltage from 0 to 40 MHz

AP (In-Application Programming)

Supports 12-clock (default) or 6-clock mode selection via

software or ISP

SPI (Serial Peripheral Interface) and enhanced UART

- 21 -

Three 16-bit timers/counters

TTL- and CMOS-compatible logic levels

- 22 -

Pin Description (which we have used)

P0.0 to

P0.7

Port 0: Port 0 is an 8-bit open drain bi-directional I/O port. Port

0 pins that have ‘1 are written to them float, and in this state can

be used as high-impedance inputs. Port 0 is also the multiplexed

low-order address and data bus during accesses to external code

and data memory.

P1.0 to

P1.7

Port 1: Port 1 is an 8-bit bi-directional I/O port with internal

pull-ups. The Port 1 pins are pulled high by the internal pull-ups

when ‘1’s are written to them and can be used as inputs in this

state. As inputs, Port 1 pins that are externally pulled LOW will

source current (IIL) because of the internal pull-ups. P1.5, P1.6,

P1.7 have high current drive of 16 mA. Port 1 also receives the

low-order address bytes during the external host mode

programming and verification.

P1.0 T2: External count input to Timer/Counter 2

P1.1 T2EX: Timer/Counter 2 capture/reload trigger and direction

control

P1.2 ECI: External clock input. This signal is the external clock input

for the PCA.

- 23 -

MAX232 (DUAL EIA-232 DRIVERS/RECEIVERS)

The MAX232 is a dual driver/receiver that includes a capacitive

voltage generator to supply TIA/EIA-232-F voltage levels from a

single 5-V supply. Each 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. The

driver, receiver, and voltage-generator

functions are available as cells in the Texas

Instruments.

Features

P3.0 to

P3.7

Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-

ups. Port 3 pins are pulled HIGH by the internal pull-ups when

‘1’s are written to them and can be used as inputs in this state.

As inputs, Port 3 pins that are externally pulled LOW will source

current (IIL) because of the internal pull-ups. Port 3 also

receives some control signals and a partial of high-order address

bits during the external host mode programming and

verification.

- 24 -

Operates From a Single 5-V Power Supply

With 1.0-_F Charge-Pump Capacitors

Operates Up To 120 Kbit/s

Two Drivers and Two Receivers

±30-V Input Levels

LDR (Light Dependent Register)

This is the type of register which is used to recognize the

intensity of light through which we can increase or decrease the

intensity of LED (Light Emitting Diode) (or can perform any other

task).

It stands for Light Dependent Resistor or Photo-resistor, which

is a passive electronic component, basically a resistor which has a

resistance that varies depending of the light intensity. A photo-

resistor is made of a high resistance semiconductor that absorbs

- 25 -

photons and based on the quantity and frequency of the absorbed

photons the semiconductor material give bound electrons enough

energy to jump into the conduction band. The resulting free electrons

conduct electricity resulting in lowering resistance of the photo-

resistor. The number of electrons is dependent of the photons

frequency.

DC Motor

We are using the simple DC stepper motor which is used to shut

the barrier gate up and down.60RPM 12V DC geared motors for

robotics applications. Very easy to use and available in standard size.

Nut and threads on shaft to easily connect and internal threaded shaft

for easily Connecting it to wheel.

Features

- 26 -

Operates From a Single +12V Power Supply

Operates at speed of 60 rpm.

60RPM 12V DC motors with Gearbox

4mm shaft diameter with internal hole

125gm weight

Same size motor available in various rpm

2kgcm torque

No-load current = 60 mA(Max), Load current = 300 mA(Max)

- 27 -

LASER

•A laser is a device that emits light through a process of optical

amplification based on the stimulated emission of electromagnetic

radiation. The term "laser" originated as an acronym for "light

amplification by stimulated emission of radiation.Lasers differ from

other sources of light because they emit light coherently.

•Spatial coherence allows a laser to be focused to a tight spot,

enabling applications like laser cutting andlithography. Spatial

coherence also allows a laser beam to stay narrow over long distances

(collimation), enabling applications such as laser pointers.

• Lasers can also have high temporal coherence which allows

them to have a very narrow spectrum.

- 28 -

Ultra Sound Detector

• Ultrasound is an oscillating sound pressure wave with a

frequency greater than the upper limit of the human hearing range.

Ultrasound is thus not separated from 'normal' sound based on

differences in physical properties, only the fact that humans cannot

hear it. Although this limit varies from person to person, it is

approximately 20 kilohertz (20,000 hertz) in healthy, young adults.

Ultrasound devices operate with frequencies from 20 kHz up to

several gigahertz.

• Ultrasound is used in many different fields. Ultrasonic devices

are used to detect objects and measure distances. . In the

nondestructive testing of products and structures, ultrasound is used

to detect invisible flaws. Industrially,chemical processes. Organisms

such as bats and porpoises use ultrasound for locating prey and

obstacles.

- 29 -

Coding.

- 30 -

Hardware (Micro-controller) Coding

$mod51

START: SETB P1.1

CLR P1.3

CLR P1.5

TRNCHK: JNB P1.2,TRKCHK

SETB P1.3

LCALL DELAY

CLR P1.1

CLR P0.0

LCALL DELAY1

SETB P0.0

SETB P1.1

LCALL DELAY

MOV TMOD,#20H

MOV SCON,#50H

MOV TH1,#0FDH

SETB TR1

MOV SBUF,#'C'

JNB TI,$

CLR TI

- 31 -

LCALL DELAY

JNB P1.2,$

CLR P1.3

SETB P1.5

LCALL DELAY

CLR P0.1

LCALL DELAY1

SETB P0.1

LCALL DELAY

MOV SBUF,#'O'

JNB TI,$

CLR TI

LCALL DELAY

LJMP START

TRKCHK: JNB P1.6,SYSCHK

MOV TMOD,#20H ; UPDATE TO SYSTEM

MOV SCON,#50H

MOV TH1,#0FDH

SETB TR1

- 32 -

EXIT1: LJMP START

delay:mov r5,#03h

upper:mov r6,#0ffh

lower:mov r7,#0ffh

inner:djnz r7,$

djnz r6,lower

djnz r5,upper

ret

delay1:mov r5,#04h

upper1:mov r6,#0f0h

lower1:mov r7,#0ffh

inner1:djnz r7,$

djnz r6,lower1

djnz r5,upper1

ret

$mod51

START: JB P1.0,OBSCHK

LCALL DELAY

CLR P0.0

Source Code

Imports System.IO.Ports

Imports System.Threading

- 33 -

Delegate Sub SetTextCallback(ByVal [text] As String) 'Added to

prevent threading errors during receiveing of data

Public Class frmGate

Dim objItem As ListViewItem

Dim _Status As String 'Storing current Gate Opening, Gate

Closing or Track Misalign status

Dim _Username As String 'Storing current username

Dim _Date As DateTime 'Storing current date

Dim _Time As DateTime 'Storing current timet

Dim OpenTimer As Boolean = True

Dim CloseTimer As Boolean = True

Dim TrackTimer As Boolean = True

Dim uImage As Boolean = True

Dim uOpen As Integer = 2 'staring point of images in ListView

Dim uClose As Integer = 9 'staring point of images in ListView

Dim AStop As Boolean = True

Private Sub frmGate_FormClosing(ByVal sender As Object,

ByVal e As System.Windows.Forms.FormClosingEventArgs)

Handles Me.FormClosing

If SerialPort.IsOpen = True Then SerialPort.Close() 'Closing

current open port

cmdLogout_Click(sender, New System.EventArgs) 'Logout

current user and store time and date

End Sub

- 34 -

Private Sub frmGate_Load(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles MyBase.Load

'lblLogin.Enabled = False

'lblUsername.Enabled = False

'txtUsername.Enabled = False

'lblPassword.Enabled = False

'txtPassword.Enabled = False

'cmdLogIn.Enabled = False

'Disable Tabpages 1 and 2

PictureBox34.Visible = False

PictureBox.BackgroundImage = ImageList.Images.Item(2)

Me.TabControl.Controls.Item(1).Enabled = False

Me.TabControl.Controls.Item(2).Enabled = False

SerialPortNames() 'Calling funcation

txtPassword.PasswordChar = "*"

End Sub

Sub GetSerialPortNames() 'Storing all available ports name in

cbPorts

Dim i As Integer

cbPort.Items.Clear()

Try

' Show all available COM ports.

- 35 -

For Each sp As String In

My.Computer.Ports.SerialPortNames

cbPort.Items.Add(sp)

Next

i = cbPort.Items.Count

If i = 0 Then

cbPort.Text = "No device found"

Else

cbPort.Text = cbPort.Items.Item(0).ToString()

End If

Catch Ex As Exception

'if error in above code then show this message

MessageBox.Show("Cannot read ports from system. Original

error: " & Ex.Message)

End Try

End Sub

Private Sub ReceivedText(ByVal [text] As String)

'compares the ID of the creating Thread to the ID of the calling

Thread

If txtReceived.InvokeRequired Then

Dim x As New SetTextCallback(AddressOf ReceivedText)

Me.Invoke(x, New Object() (text))

Else

txtReceived.Clear()

txtReceived.Text = [text]

- 36 -

End If

End Sub

Private Sub SerialPort_DataReceived(ByVal sender As Object,

ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles

SerialPort.DataReceived

ReceivedText(SerialPort.ReadExisting()) 'Automatically called

every time a data is received at the serialPort

End Sub

Private Sub cmdLogIn_Click(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles cmdLogIn.Click

Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim i As Integer = 0

Dim j As Integer = 0

If rs.State = 1 Then rs.Close()

con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="

& System.Windows.Forms.Application.StartupPath &

"\RailwayGate.mdb;Persist Security Info=False")

rs.Open("select * from UserPass", con)

'-----------------------------------------------------------------------------

-------------------------------------------------------------

rs.MoveFirst()

- 37 -

Try

Do While Not rs.EOF

If CStr(rs.Fields.Item("Username").Value) =

CStr(txtUsername.Text) Then

If CStr(rs.Fields.Item("Password").Value) =

CStr(txtPassword.Text) Then

TabControl.SelectedIndex = 1

'lblLogin.Enabled = False

lblUsername.Enabled = False

txtUsername.Enabled = False

lblPassword.Enabled = False

txtPassword.Enabled = False

cmdLogIn.Enabled = False

cmdLogout.Visible = True

Me.TabControl.Controls.Item(0).Enabled = False

Me.TabControl.Controls.Item(1).Enabled = True

Me.TabControl.Controls.Item(2).Enabled = True

LogIn() 'Calling Sub LogIn

OpenCloseLog() 'Calling Sub OpenCloseLog

Exit Do

Else

txtPassword.PasswordChar = ""

txtPassword.ForeColor = Color.Red

txtPassword.Text = "Password is incorrect"

Exit Do

End If

- 38 -

Else

i = i + 1

End If

rs.MoveNext()

Loop

If i >= rs.Fields.Count Then

txtUsername.ForeColor = Color.Red

txtUsername.Text = "Username is incorrect"

End If

Catch Ex As Exception

MsgBox(Ex.Message)

End Try

rs.Close()

con.Close()

End Sub

Private Sub txtUsername_Click(ByVal sender As Object, ByVal e

As System.EventArgs) Handles txtUsername.Click

txtUsername.ForeColor = Color.Black

txtUsername.Clear()

End Sub

Private Sub txtPassword_Click(ByVal sender As Object, ByVal e

As System.EventArgs) Handles txtPassword.Click

- 39 -

txtPassword.ForeColor = Color.Black

txtPassword.Clear()

End Sub

Private Sub txtPassword_GotFocus(ByVal sender As Object,

ByVal e As System.EventArgs) Handles txtPassword.GotFocus

txtPassword.Clear()

txtPassword.PasswordChar = "•"

End Sub

Private Sub txtPassword_KeyPress(ByVal sender As Object,

ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles

txtPassword.KeyPress

If Asc(e.KeyChar) = 13 Then

cmdLogIn_Click(sender, New System.EventArgs)

End If

End Sub

Private Sub LogIn()

Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

If rs.State = 1 Then rs.Close()

con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="

& System.Windows.Forms.Application.StartupPath &

"\RailwayGate.mdb;Persist Security Info=False")

- 40 -

rs.Open("select * from LogInDetails", con,

ADODB.CursorTypeEnum.adOpenDynamic,

ADODB.LockTypeEnum.adLockOptimistic)

'-----------------------------------------------------------------------------

-------------------------------------------------------------

Try

_Username = txtUsername.Text

_Date = DateTime.Now.ToString("MM/dd/yyyy")

_Time = DateTime.Now.ToString("hh:mm:ss tt")

rs.AddNew()

rs.Fields("Username").Value = _Username 'txtUsername.Text

rs.Fields("uLoginDate").Value = _Date

'DateTime.Now.ToString("MM/dd/yyyy")

rs.Fields("uLoginTime").Value = _Time

'DateTime.Now.ToString("hh:mm tt")

rs.Update()

Catch Ex As Exception

MsgBox(Ex.Message)

End Try

rs.Close()

con.Close()

End Sub

- 41 -

Private Sub cmdLogout_Click(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles cmdLogout.Click

Dim con As New ADODB.Connection

Dim rs As New ADODB.Recordset

If rs.State = 1 Then rs.Close()

con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="

& System.Windows.Forms.Application.StartupPath &

"\RailwayGate.mdb;Persist Security Info=False")

rs.Open("select * from LogInDetails", con,

ADODB.CursorTypeEnum.adOpenDynamic,

ADODB.LockTypeEnum.adLockOptimistic)

rs.MoveFirst()

Try

Do While Not rs.EOF

If CStr(rs.Fields("Username").Value) = CStr(_Username)

Then

If CStr(rs.Fields("uLoginDate").Value) = CStr(_Date)

Then

If CStr(rs.Fields("uLoginTime").Value) =

CStr(_Time) Then

rs.Update("uLogoutDate",

DateTime.Now.ToString("MM/dd/yyyy"))

rs.Update("uLogoutTime",

DateTime.Now.ToString("hh:mm:ss tt"))

- 42 -

'lblLogin.Enabled = True

lblUsername.Enabled = True

txtUsername.Enabled = True

txtUsername.Clear()

lblPassword.Enabled = True

txtPassword.Enabled = True

txtPassword.Clear()

cmdLogIn.Enabled = True

cmdLogout.Visible = False

ListViewGate.Items.Clear()

ListViewGate.Columns.Clear()

ListViewLog.Items.Clear()

ListViewLog.Columns.Clear()

lvLoginDetails.Items.Clear()

lvLoginDetails.Columns.Clear()

PictureBox.BackgroundImage =

ImageList.Images.Item(2)

Me.TabControl.Controls.Item(0).Enabled = True

Me.TabControl.Controls.Item(1).Enabled = False

Me.TabControl.Controls.Item(2).Enabled = False

TabControl.SelectedIndex = 0

- 43 -

_Username = ""

_Status = ""

Exit Do

Else

rs.MoveNext()

End If

Else

rs.MoveNext()

End If

Else

rs.MoveNext()

End If

Loop

Catch Ex As Exception

MsgBox(Ex.Message)

End Try

rs.Close()

con.Close()

End Sub

Private Sub cbPort_TextChanged(ByVal sender As Object, ByVal

e As System.EventArgs) Handles cbPort.TextChanged

Try

If SerialPort.IsOpen = True Then SerialPort.Close()

- 44 -

SerialPort.PortName = UCase(cbPort.Text) '"COM15"

SerialPort.BaudRate = 9600

'Other Serial Port Property

SerialPort.Parity = IO.Ports.Parity.None

SerialPort.StopBits = IO.Ports.StopBits.One

SerialPort.DataBits = 8 'Open our serial port

SerialPort.Open()

lblPortStatus.Text = "Port Status: Connected"

'lblLogin.Enabled = True

lblUsername.Enabled = True

txtUsername.Enabled = True

lblPassword.Enabled = True

txtPassword.Enabled = True

cmdLogIn.Enabled = True

cmdLogout.Visible = False

Catch Ex As Exception

'if error in above code then show this message

MessageBox.Show("Device not connected. Original error: "

& Ex.Message)

End Try

End Sub

' First field is unique ID and is stored in key.

Second field is in name of item.

For i = 2 To rs.Fields.Count - 1 Step 1

- 45 -

objItem.SubItems.Add(rs.Fields.Item(i).Value)

Next i

lblLogMessage.Visible = False

Try

For i = 1 To rs.Fields.Count - 1 Step 1

lvLoginDetails.Columns.Add(rs.Fields(i).Name)

Next i

' Add all the items to the ListView control.

Do While Not rs.EOF

If CStr(rs.Fields.Item("Username").Value) = _Username

Then

If CStr(rs.Fields.Item("uLoginDate").Value) =

CStr(dtpLoginDetails.Text) Then

objItem =

lvLoginDetails.Items.Add(rs.Fields.Item(1).Value)

' First field is unique ID and is stored in key. Second

field is in name of item.

For i = 2 To rs.Fields.Count - 1 Step 1

If IsDBNull(rs.Fields.Item(i).Value) Then

objItem.SubItems.Add("Online")

Else

objItem.SubItems.Add(rs.Fields.Item(i).Value)

End If

Next i

End If

- 46 -

End If

rs.MoveNext()

Loop

'Setting the coloumn header size

For Each ColumnHeader In Me.lvLoginDetails.Columns

ColumnHeader.Width = 100

Next

Private Sub TabPage11_Click(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles TabPage11.Click

End Sub

Printed Circuit Board

(PCB)

- 47 -

PCB Designing

- 48 -

PCB

8051 Microcontroller

Max 232

L293D

Connector

s

Pull-Up Register

ON-OFF Switch

Power Socket

Regulator 7805

Crystal Oscillator

9 Pin DB [Serial Port]

Fig: PBC Printed Circuit Board

- 49 -

Software

- 50 -

Login Panel

- 51 -

Gate Control and Status Panel

- 52 -

Track Monitoring Control Panel

- 53 -

Resources List

- 54 -

Component Used

Sr. No. Component Name Quantity Cost

1 USB Webcam 1 2000

2 Miscellaneous ---- 1500

3 USB to RS232 Cable 1 850

4 Printed Circuit Board 1 800

5 Laser 3 540

6 Barrier Gate 1 260

7 DC Motor[12 V] 1 220

8 Micro Controller [89V51RD2] 1 200

9 Ultrasonic sensor 1 790

10 DC Adapter [12 V] 3 480

11 Buzzer 3 90

12 Cables ---- 60

13 MAX232 IC 1 25

14 Light Dependent Register 3 80

15 Capacitors[1000uF] 5 120

16 Regulator 7805 1 15

17 16 Pin Base 3 15

18 9 Pin DB [Serial Port] 1 15

19 Capacitors[10uF] 5 10

20 40 Pin Base 1 10

21 Array [Pull-Up Register] 1 10

- 55 -

22 Male Strip 1 10

23 DC Jack 1 10

24 On/Off Switch 1 8

25 Capacitors[470uF] 1 8

26 Crystal Oscillator [11.0592 mHz] 1 8

27 LED [12 V] 2 10

28 Register [220 Ω] 2 2

30 LED 1 1

Total 6572

- 56 -

Advantages of ARSS

- 57 -

Advantages of ARSS

1) Saves Life

2) Low cost of sensor .

3) Low cost of installation.

4) Low cost in maintenance.

5) Low chances of human mistakes.

6) Makes train traveling more ‘Safe’.

7) Saves goods ,trains ,track ,efforts .

8) Saves money by preventing damages.

9) Detects bends/faults/error (in 4-Axis).

10) Whole System Can be monitor remotely.

11) System can be easily install in metro rails.

12) Wire/Wireless makes this system flexible.

13) Low use of energy (by using solar power).

14) Long life sensors prevents maintenance cost.

15) Smart System S/W makes this fully automated.

16) Makes track maintenance easy, fast & effective.

17) Flexible design , can be place at /above ground level.

18) Ranges up to 10.00Km (clear not defected by ).

- 58 -

Future Scope

- 59 -

Future Scope

In the future we have planned to enhance the

system with following enhancements:

Increased security with implementation of Face

Detection module

Use of Pressure Plate in place of Laser & LDR.

Use of Powerful Ultrasound Detector.

Use of HD Camera.

Use of SQL Database.

Use of weatherproof sensor.

Wireless Connectivity through GPS.

- 60 -

Awards

&

Achievements

- 61 -

1) 1st consolation on Project Poster Competition .

2) 1st winner in IT Departmental Competition.

3) Participation in National Level Project

competition sponsored by MSBTE and organized by

K.K Wagh Polytechnic , Nasik.

4) 2nd winner in National Level Project Competition

organized by G.H Raisoni Academy of Engineering and

Technology, Nagpur

5) 1st winner in National Level Project Competition

organised by JD Polytechnic,Nagpur

6) 1st winner in National Level Project

Competition organised by Gaikwad Patil College of

Engineering, Nagpur.

- 62 -

Winners

DEPARTMENT

LEVEL

Project Competition

At

Shree Datta Meghe Polytechnic,

Nagpur.

- 63 -

- 64 -

Winners Winner in National Level Project Competition organized

by G.H Raisoni Academy of Engineering and

Technology, Nagpur .

- 65 -

Conclusion

- 66 -

Conclusion

Hence we created this project to provide fully

automated security , safety to the people who travel in

railways.

By this we demonstrated that how we can reduce the

railway accident .

- 67 -

Reference

- 68 -

References

Google.com

Msdn.microsoft.com

codes Wikipedia ( http://en.wikipedia.org/wiki/)

VBforum.com

emgu.com

stackoverflow.com

AWT Lab Manual

Database webisodes

(http://landrrary.wikispaces.com/Database+Webisodes)

Codeproject.com

Advanced Web Technology by Gurunani Yemul

- 69 -

Recommended