B.E Ece Batchno 12
B.E Ece Batchno 12
by
BODABALLA VAMSI KRISHNA (37130061)
ALLAM KARTHIK (37130017)
SATHYABAMA
INSTITUTE OF SCIENCE AND TECHNOLOGY (DEEMED TO BE UNIVERSITY)
COMMUNICATION ENGINEERING
BONAFIDE CERTIFICATE
ii
DECLARATION
We,BODABALLA VAMSI KRISHNA(37130061) and ALLAM KARTHIK(37130017)
hereby declare that the Project Report entitled “AUTOMATIC RAILWAY GATE
CROSSING CONTROL AND TRACK CRACK DETECTION SYSTEM USING IOT” done by
us under the guidance of Dr.E.ANNA DEVI, M.E., Ph.D. is submitted in partial
fulfillment of the requirements for the award of Bachelor of Engineering degree in
Electronics and Communication Engineering.
1)
2)
DATE:
PLACE: SIGNATURE OF THE CANDIDATES
iii
ACKNOWLEDGEMENT
and for completing it successfully. We are grateful to them. We convey our thanks
Engineering and Dr. T. RAVI, M.E., Ph.D. Head of the Department, Department of
iv
ABSTRACT:
Railway system is the most commonly used transportation system especially
in India. But due to miscommunication about the railway schedules and lack of
coordination, accidents happen. According to survey, 60 % of the accidents happen
either at crossings or cracks in railway tracks. To avoid these situations, it is
necessary to have an accurate system for both of them. This paper proposes a system
which includes automated railway gates at crossings and also automatic crack
detection in railway tracks. This model is implemented using sensor technique. The
sensors are placed at a certain distance from the gate and they detect the approaching
train and accordingly control the operation of the gate. After detecting the crack, the
coordinates are tracked and sent back to control room for further actions. This system
includes IR sensors, ARDUINO MEGA(ATmega2560) microcontroller along with
GPS and GSM modules. This system is going to be developed by using Internet of
Things (IOT) technology. This will help in detecting the cracks and functioning of
gates get done without any human intervention.
v
TABLE OF CONTENTS
vi
LIST OF FIGURES
vii
LIST OF TABLES
viii
LIST OF ABBREVIATIONS
LED LIGHT EMITTING DIODE
IDE INTEGRATED DEVELOPMENT ENVIRONMENT
ICSP IN-CIRCUIT SERIAL PROGRAMMING
ESCP ESPESSIF SYSTEMS SMART CONNECTIVITY
PLATFORM
ROM READ ONLY MEMORY
GSM GLOBAL SYSYTEM FOR MOBILE COMMUNICATION
LCD LIQUID CRYSTAL DISPLAY
HLR HOME LOCATION REGISTER
VLR VISITOR LOCATION REGISTER
ix
CHAPTER 1
INTRODUCTION
The Indian Railways has one in all the greatest rail route networks inside the world,
emergencies organic interaction one,15,000 kilometer in distance, wherever Asian
country. Robotized entryway - free rail route activities are uncommon these days
due the human carelessness and miscommunications which prompts mishaps and
deferral in appearance of the train; the way or the region where street and rail lines
meet is realized rail line crossing Gates are physically worked, blunders which may
give rise while shutting and opening, the strategy proposed here, Our venture
presents an entirely different method of computerizing the things. In this proposed
work attempts to build up a strategy which does the robotization door tasks
(opening and shutting) utilizing Two IR sensor put in two ways and utilizing Motor
for shutting and opening of an entryway. Track Crack recognition - ongoing
investigations revealed that more than twenty fifth of the track length is in might
want of substitution thanks because of the improvement of breaks on it. Manual
recognition of breaks is troublesome and not completely successful which prompts
a lot of time. Our work presents an undertaking that points in planning hearty rail
line break location plot (RRCDS) utilizing wired association all through the track at
whatever point the association between wires lost, get together framework that
identifies the breaks on railroad tracks. And furthermore fit for alarming the
experts as SMS. We will get the longitude and scope area where the break occurred
by GPS module. We likewise get refreshed in IOT site.
1
CHAPTER 2
LITERATURE REVIEW AND OBJECTIVE
E Amarnatha Reddy, Ilaiah Kavati, K Srinivas Rao, G Kiran Kumar have made a
project to develop a prototype that control the railway gate using the micro-
controller. Whenever train touches base at the sensor, caution is activated at the
railway crossing so that the general population get instruction that entryway will
be shut. This logic was implemented in Embedded C and dumped to the
Raspberry.[1]
Miss. Sandhya Sharma, (Prof.) Dr. Neetesh Kumar Gupta have made a project a
genetic algorithm is proposed that segment the image in defined part. After
segmentation crack detection was done by analyzing image using TBLR threshold.
Experiment is done real as well as artificial dataset.[3]
Afsana Ahmed, Kazi Rifah Noor, Tanveer Rahman have made a project, that
proposed a method which is capable of controlling rail gate for level crossing which
is totally automated. Couple of Sensors are connected with Wemos D1 for control
autonomous rail gate with measuring distance and Thing Speak server has been
used to centrally control. [4]
2
Marwa M. Eid, M. I. Fath Allah have made a project that is established on an
Arduino UNO embedded platform to introduce automatic control crossing gates,
switching train tracks and detecting line cracks with the aid of electronic sensors
like IR sharp sensor, ultrasonic sensor, and gyroscopes. [5]
OBJECTIVE:
3
CHAPTER-3
EMBEDDED SYSTEMS:
SYSTEM:
4
CHARACTERISTICS OF EMBEDDED SYSTEM:
5
BLOCK DIAGRAM:
.
Fig-3.1 BLOCK DIAGRAM
HARDWARE REQUIREMENTS:
➢ ARDUINO MEGA
➢ IOT MODULE
➢ LCD DISPLAY
➢ GPS
➢ GSM
➢ IR SENSOR (2)
➢ SERVO MOTOR
➢ LED
SOFTWARE REQUIREMENTS:
➢ EMBEDDED C
➢ ARDUINO IDE
6
CHAPTER 4
INTRODUCTION TO ARDUINO
A great many undertakings have utilized Arduino throughout the long term, going
from straightforward family things to modern logical instruments. Understudies,
specialists, artists, designers, and experts from everywhere the world have
accumulated around this open-source organization, and their commitments have
amounted to an unfathomable measure of open information that can be of
extraordinary assistance to learners and specialists the same.
7
alone and customise them to meet their specific needs. The software is also open-
source, and it is evolving thanks to contributions from users all over the world.
WHY ARDUINO?
On account of its basic and available client experience, Arduino has been
utilized in huge number of various tasks and applications. The Arduino
programming is not difficult to-use for fledglings, yet adaptable enough for
cutting edge clients. It runs on Mac, Windows, and Linux. Educators and
understudies use it to fabricate minimal effort logical instruments, to
demonstrate science and physical science standards, or to begin with
programming and advanced mechanics. Originators and modelers assemble
intelligent models, performers and craftsmen use it for establishments and to
try different things with new instruments. Producers, obviously, use it to
fabricate a considerable lot of the tasks displayed at the Maker Faire, for
instance. Arduino is a critical instrument to learn new things. Anybody -
youngsters, specialists, craftsmen, developers - can begin dabbling simply
adhering to the bit by bit directions of a unit, or sharing thoughts online with
different individuals from the Arduino people group.
There are numerous other microcontrollers and microcontroller stages
accessible for actual figuring. Parallax Basic Stamp, Netmedia's BX-24,
Phidgets, MIT's Handyboard, and numerous others offer comparable
usefulness. These devices take the muddled subtleties of microcontroller
programming and envelop it with a simple to-utilize bundle. Arduino
additionally improves on the way toward working with microcontrollers, yet
it offers some benefit for instructors, understudies, and intrigued novices over
different frameworks:
8
Inexpensive - In comparison to other microcontroller platforms, Arduino
boards are relatively inexpensive. The Arduino module's cheapest version can
be built by hand, and even pre-assembled Arduino modules cost less than $50.
➢ Cross-platform - The Arduino Software (IDE) is compatible with Windows,
Macintosh OSX, and Linux. The majority of microcontroller systems are only
compatible with Windows.
➢ Simple, transparent programming environment - The Arduino Software
(IDE) is simple to use for beginners while still being versatile enough for
experienced users. It's focused on the Processing programming environment,
which is convenient for teachers and students learning to programme in that
environment will be familiar with how the Arduino IDE works.
➢ Open source and extensible software - The Arduino software is available as
open source tools for advanced programmers to extend. People who want to
learn more about the language should use C++ libraries, and those who want
to learn more about the technical specifics should move from Arduino to the
AVR C programming language. Similarly, if you want to, you can use AVR-
C code directly in your Arduino programmes.
➢ Hardware that is open source and extensible - The Arduino board plans are
made available under a Creative Commons licence, allowing professional
circuit designers to create their own version of the module, expanding and
enhancing it. The breadboard version of the module can be built by even
novice users in order to understand how it works and save money.
ARDUINO MEGA:
The MEGA 2560 is designed for more complex projects. With 54
digital I/O pins, 16 analog inputs and a larger space for your sketch it is the
9
recommended board for 3D printers and robotics projects. This gives your
projects plenty of room and opportunities.
The ATmega2560 is the basis for the Arduino Mega 2560 microcontroller
board. It has 54 digital input/output pins, 16 analogue inputs, 4 UARTs
(hardware serial ports), a 16 MHz crystal oscillator, a USB link, a power
jack, an ICSP header, and a reset button. It comes with everything you'll
need to get started with the microcontroller; simply plug it into a device
with a USB cable or power it with an AC-to-DC adapter or battery. Most
shields designed for the Uno and previous boards Duemilanove or
Diecimila are compatible with the Mega 2560 board.
10
4.3 TECHNICAL SPECIFICATIONS:
11
HARDWARE:
Arduino is a piece of equipment that is allowed to utilize. The
equipment reference plans are accessible on the Arduino site under a Creative
Commons Attribution Share-Alike 2.5 permit. A few renditions of the equipment
have format and creation records accessible also.
Not withstanding the way that the equipment and programming plans
are openly accessible under copyleft licenses, the engineers have requested that the
name Arduino be held for the authority item and not utilized in subsidiary works
without authorization. The authority strategy record on the use of the Arduino name
focuses on that the undertaking is available to coordinating others' work into the last
product.Several Arduino-viable items industrially delivered have kept away from
the venture name by utilizing different names finishing off with arduino. An early
Arduino board with a RS-32 interface (upper left) and an Atmel ATmega8
microcontroller chip (dark, lower right); the 14 computerized I/O pins are at the top,
the 6 simple info pins at the lower right, and the force connector at the lower left.
Most Arduino sheets have various amounts of blaze memory, pins, and
highlights (ATmega8, ATmega168, ATmega328, ATmega1280, ATmega2560). In
2012, the 32-cycle Arduino Due, in light of the Atmel SAM3X8E, was delivered.
Single or twofold line pins or female headers are utilized on the sheets to make
associations for programming and joining into different circuits simpler. Safeguards
are add-on modules that can be associated with these. An I2C sequential transport
might be utilized to separately address a few and potentially stacked safeguards. A
5 V straight controller and a 16 MHz gem or clay resonator are standard on most
boards.Some plans, like the LilyPad, run at 8 MHz and shed the locally available
voltage controller because of explicit structure factor limitations.
12
point when utilized with conventional microcontroller apparatuses, rather than the
Arduino IDE, standard AVR ,ISP writing computer programs is used.An official
Arduino Uno R2 with portrayals of the I/O areas
The greater part of the microcontroller's I/O pins are uncovered on the
Arduino board and can be utilized by different circuits. The Diecimila,[a]
Duemilanove,[b] and current Uno[c] each have 14 computerized I/O pins, six of
which can create pwm signs, and six simple information sources that can likewise
be utilized as advanced I/O pins. Female 0.1-inch (2.54 mm) headers interface these
pins to the highest point of the casing. Economically accessible module gadget
safeguards are additionally accessible. Male header pins on the underside of the
Arduino Nano, just as Arduino-viable Bare Bones Board and Boarduino sheets,
might be utilized to interface with solderless breadboards.
You may also use Arduino ISP or similar to bypass the boot
loader and programme the microcontroller directly via the ICSP (I n-Circuit
Serial Programming) header.
13
The ATmega16U2 (or 8U2 in the rev1 and rev2 boards) firmware
source code is available in the Arduino repository. The ATmega16U2/8U2 is
loaded with a DFU boot loader, which can be activated by:
➢ WARNINGS:
A resettable poly fuse protects your computer's USB ports from shorts
and overcurrent with the Mega 2560. Although most computers have
their own built-in protection, the fuse adds another layer of security.
The fuse will immediately break the link if more than 500 mA is added
to the USB port before the short or overload is removed.
POWER:
The Mega 2560 can be fueled either by USB or by an outer force source.
The force source is naturally picked.
14
Leads from a battery can be embedded in the GND and Vin pin h eaders of
the POWER connector.
15
IOREF. The voltage reference with which the microcontroller operates
is provided by this pin on the board. The IOREF pin voltage can be
read by a correctly calibrated shield, which can then pick the necessary
power source or power supply enable voltage translators on the outputs
for working with the 5V or 3.3V.
16
4.5 Arduino Mega 2560 PIN mapping table
4 PE2 ( XCK0/AIN0 )
8 PE6 ( T3/INT6 )
9 PE7 ( CLKO/ICP3/INT7 )
10 VCC VCC
11 GND GND
14 PH2 ( XCK2 )
17
16 PH4 ( OC4B ) Digital pin 7 (PWM)
27 PH7 ( T4 )
28 PG3 ( TOSC2 )
29 PG4 ( TOSC1 )
30 RESET RESET
31 VCC VCC
32 GND GND
33 XTAL2 XTAL2
18
34 XTAL1 XTAL1
47 PD4 ( ICP1 )
48 PD5 ( XCK1 )
49 PD6 ( T1 )
19
52 PG1 ( RD ) Digital pin 40
61 VCC VCC
62 GND GND
65 PJ2 ( XCK3/PCINT11 )
66 PJ3 ( PCINT12 )
67 PJ4 ( PCINT13 )
68 PJ5 ( PCINT14 )
69 PJ6 ( PCINT 15 )
20
70 PG2 ( ALE ) Digital pin 39
79 PJ7
80 VCC VCC
81 GND GND
21
88 PK1 ( ADC9/PCINT17 ) Analog pin 9
99 GND GND
22
In addition, some pins have specialized functions:
➢ LED: 13. A built-in LED is attached to the digital pin. 13. The LED is
turned on when the pin is HIGH, and it is turned off when the pin is
LOW.
➢ TWI: 20 (SDA) and 21 (SDA) (SCL). Using the Wire library, support
TWI communication. The TWI pins on the old Duemilanove and
Diecimila Arduino boards are not in the same position as these pins.
23
➢ The Mega 2560 has 16 analogue inputs, each with a resolution of 10
bits (i.e. 1024 different values). They measure from ground to 5 volts
by default, but the AREF pin and analogRefernce() function can be
used to adjust the upper end of their range.
➢ Reset. Bring this line LOW to reset the microcontroller. Typically used
to add a reset button to shields which block the one on the board.
COMMUNICATION:
24
for sequential correspondence on pins 0 and 1).A software library allows for
serial communication on any of the Mega 2560's digital pins.
The Mega 2560 also supports TWI and SPI communication. The
Arduino Software (IDE) includes a Wire library to simplify use of the TWI
bus.
APPLICATIONS:
25
based frameworks. frameworks, and bringing about improved productivity,
precision and monetary advantage. As IoT is joined with sensors and actuators, it is
named a digital actual gadget, which incorporates keen matrices, keen structures,
insightful transportation, and savvy urban areas. Every thing is interestingly
unmistakable because of its implanted figuring framework, however it can likewise
speak with different things on the Internet. Specialists anticipate that by 2020, the
Internet of Things would have almost 50 billion things.
Framework:
The Internet of Things has gotten imbued in our day by day lives. It, including water,
power, phone, TV, and, most as of late, the Internet, has become a fundamental piece
of our general framework. The Internet of Things (as a component of the Future
Internet) would interface regular articles with a reasonable fuse into the actual world,
while the current Internet for the most part connects full-scale PCs.
There is a lot of variety in IoT-related advances accessible today. It's just utilized for
unmistakable purposes, and setting it up takes a great deal of innovative skill and
can be time-consuming.To accomplish a genuine Internet of Things we need to move
away from such limited scope, vertical application storehouses, towards an even
framework on which an assortment of utilizations can run at the same time.
2.Infrastructure Functionality
The foundation should help applications in finding the assets they need. Anyplace,
even on the actual things, an application will run. The time it takes to discover
something isn't restricted to the time it takes for an application to fire up. At the point
when significant new things become open, things become inaccessible, or the
situation with things changes, programmed transformation is required.The
26
infrastructure must be able to facilitate the monitoring of such changes as well as the
necessary adaptation as a result of the changes..
3.Physical Location and Position
Since the Internet of Things is so profoundly established in reality, actual area and
spot are basic, for finding things as well as for acquiring data. Accordingly, the
foundation should help discovering things dependent on their position (for example
geo-area based revelation). Confinement advances, which consider flexibility, will
assume a significant part in the Internet of Things and can get coordinated in its
foundation.
4. Classification and security
Furthermore, a security and protection framework should uphold capacities like
confirmation, privacy, genuineness, and non-repudiation.Here the heterogeneity and
the requirement for interoperability among various ICT frameworks conveyed in the
foundation and the asset restrictions of IoT gadgets (e.g., Nano sensors) must be
considered.
Information Management
27
Traditionalist evaluations expect about 80 million to 90 million M2M units will be
sold in 2014, while more hopeful projections figure deals of 300 million units. Unit
deals in M2M could increment by a factor of ten throughout the following five years,
as indicated by verifiable examinations of appropriation bends for related
troublesome advancements, for example, compact MP3 players and electronically
monitored slowing mechanisms for vehicles (see Figure 2.29 [16]). In the IoT
foundation, there are a few advancements and components engaged with
"information the board." coming up next are probably the main rules that assist us
with liking the difficulties and chances of information the executives:• Data
Collection and Analysis
• Big Data
• Semantic Sensor Networking
• Virtual Sensors
• Complex Event Processing.
APPLICATION AREAS:
The advancement of business sectors and applications, and consequently their
financial potential and impacts in tending to social turns of events and difficulties in
the coming many years, has changed radically over the most recent couple of years.
As demonstrated in Figure 2.15, cultural examples are separated into five classes:
wellbeing and prosperity, transportation and portability, insurance and security,
energy and environment, network, and e-society. Shopper gadgets, auto hardware,
clinical applications, organizing, and different enterprises are for the most part
seeing significant development because of these turns of events. More-Moore and
More-than-innovations, systems administration, organizations, and programming all
benefit straightforwardly from these applications.
a)Cities
Smart Parking: Monitoring of parking spaces availability in the city.
28
Structural health: Monitoring of vibrations and material conditions in buildings,
bridges and historical monuments.
Waste Management: Detection of rubbish levels in containers to optimize
the trash collection routes.
b)Environment
Forest Fire Detection: Monitoring of combustion gases and preemptive fire
conditions to define alert zones.
Air Pollution: Control of CO2 emissions of factories, pollution emitted by
c)Water
Water Quality: Study of water suitability in rivers and the sea for fauna and
Eligibility for drinkable use.
Water Leakages: Detection of liquid presence outside tanks and pressure variations
along pipes.
4.7 ESP-12E BASED NODEMCU
The Espressif ESP8266 is a microcontroller made by Espressif Systems. The
ESP8266 is an independent Wi-Fi organizing framework that can work as an
extension between existing microcontrollers and Wi-Fi, just as run independent
applications. This module has an inherent USB connector just as an enormous
number of pin-outs. You can join the NodeMCU devkit to your PC through a
miniature USB link and glimmer it very much like NODEMCU.
29
Fig 4.7-ESP-12E BASED NODEMCU
Simulated intelligence scholar Team made the ESP-12E Wi-Fi module. Tensilica
L106 consolidates industry-driving super low force 32-digit MCU miniature, with
the 16-cycle short mode, Clock speed support 80 MHz, 160 MHz, upholds the
RTOS, coordinated Wi-Fi MAC/BB/RF/PA/LNA, on-board recieving wire in more
modest sizes of the module. The module incorporates a full TCP/IP convention stack
and supports standard IEEE802.11 b/g/n arrangement. Clients can associate modules
to a current gadget's organizing or make their own organization regulator. ESP8266
is a high-combination remote SOC intended for versatile stage architects with
restricted space and power.It gives magnificent capacity to insert Wi-Fi abilities
inside different frameworks, or to work as an independent application, with the least
expense, and negligible space necessity or to function as a standalone application,
with the lowest cost, and minimal space requirement.
30
Fig 4.8 NODEMCU PIN CONFIGURATION
The ESP8266EX is a finished and independent Wi-Fi organizing arrangement that can
either have or offload Wi-Fi organizing capacities from another application processor. As
the ESP8266EX runs the program, it does as such from an outer glimmer drive. To expand
the framework's presentation in such applications, it has an incorporated store. Then again,
any microcontroller-based plan with simple network (SPI/SDIO or I2C/UART interface)
can be utilized as a Wi-Fi connector to give remote web access. The ESP8266EX is one of
the business' most incorporated Wi-Fi chips, including recieving wire switches, RF balun,
power enhancer, low commotion get intensifier, and filter.power the executives modules,
it requires negligible outer hardware, and the whole arrangement, including front-end
module, is intended to possess insignificant PCB region.
31
ESP-12E ARCHITECTURE
Features
• 802.11 b/g/n
• Integrated low power 32-bit MCU
• Integrated 10-bit ADC
• Integrated TCP/IP protocol stack
• Integrated TR switch, balun, LNA, power amplifier and matching network
• Integrated PLL, regulators, and power management units
• Supports antenna diversity
• Wi-Fi 2.4 GHz, support WPA/WPA2
• Support STA/AP/STA+AP operation modes
• Support Smart Link Function for both Android and iOS devices
• Support Smart Link Function for both Android and iOS devices
• SDIO 2.0, (H) SPI, UART, I2C, I2S, IRDA, PWM, GPIO
• STBC, 1x1 MIMO, 2x1 MIMO
• A-MPDU & A-MSDU aggregation and 0.4s guard interval
32
• Deep sleep power < 5uA
• Wake up and transmit packets in < 2ms
• Standby power consumption of < 1.0mW (DTIM3)
• +20dBm output power in 802.11b mode
• Operating temperature range -40C ~ 125C
PIN MODE
33
Receiver Sensitivity
34
Schematic
Functional Descriptions
MCU
Tensilica L106 32-bit micro controller (MCU) with extra low power consumption
and 16-bit RSIC is integrated in the ESP8266EX. The CPU runs at a frequency of
80 MHz. It has a maximum frequency of 160 MHz. Via its GPIOs, the
ESP8266EX is frequently connected to external sensors and other unique devices;
examples of such applications are included in the SDK.
Memory Organization
35
Internal SRAM and ROM
The ESP8266EX Wi-Fi SoC includes a memory controller with SRAM and ROM. Via
iBus, dBus, and AHB interfaces, the MCU can communicate with the memory units. Both
memory units may be visited on demand, and a memory arbiter can determine the running
sequence based on the time the processor receives these requests. The SRAM space that is
open to users is allocated as follows, according to our current version of SDK:
When the ESP8266EX is in station mode and linked to the router, the amount of
programmable space available to the user in the heap and data portion is about 36kB.)
▪ There is no programmable ROM in the SoC, therefore, user program must be stored in an
external SPI flash.
DEFINITION:
The Global System for Mobile Communication (GSM) is a digital cellular
communication protocol that is universally recognised. GSM stands for
Global System for Mobile Communications, and it was established in 1982
with the aim of developing a popular European mobile telephone standard
that would define requirements for a pan-European mobile cellular radio
system operating at 900 MHz. Many countries outside of Europe are
expected to join the GSM alliance.
36
INTRODUCTION: THE EVOLUTION OF MOBILE
TELEPHONE SYSTEMS:
Perhaps the most quickly developing and testing broadcast communications
applications is cell. Today, it represents a steadily expanding level of all new
telephone memberships around the world. There are as of now in excess of 45
million cell endorsers around the world, with practically 50% of them dwelling in
the United States. Cell networks dependent on computerized advancements are
relied upon to turn into the standard method of correspondence. Forecasters gauge
that by 2005, there will be more than 100 million cell endorsers around the world. It
has likewise been anticipated that continuously 2000, a few nations would have more
cells than fixed telephones.
37
In 1983, the high level cell phone administration (AMPS) framework was
delivered in the United States, denoting the start of cell organizations. Asia, Latin
America, and Oceania have all embraced the AMPS standard, shaping the world's
biggest expected cell market.
Numerous cell phone administrations in the mid 1980s were simple as opposed to
advanced, as they are currently. One issue that simple frameworks confronted was
their powerlessness to satisfy rising force needs in a practical way. Accordingly,
arising innovation was energetically embraced. The straightforwardness of
flagging, lower levels of interference, and intermingling are altogether advantages
of advanced frameworks over simple frameworks.
GSM sets ideas instead of expectations. The GSM determinations broadly expound
on the capacities and interface prerequisites, yet they don't cover the equipment.
The clarification for this is to confine fashioners as little as could really be
expected while likewise permitting administrators to buy hardware from an
assortment of providers. The exchanging framework (SS), the base station
framework (BSS), and the help and emotionally supportive network (OSS) make
up the GSM organization (OSS). The fundamental GSM network components are
portrayed in the graph underneath.
The switching system (SS) is responsible for performing call processing and
subscriber-related functions. The switching system includes the following functional
units:
38
➢ home area register (HLR)— The HLR is a membership information base that
stores and oversees memberships. The HLR is the most important data set
since it stores perpetual data about clients, for example, their administration
profile, position, and movement status. At the point when an individual buys
a membership from one of the PCS administrators, the person is added to that
administrator's HLR.
➢ visitor area register (VLR)— The VLR is a data set that the MSC uses to store
transitory data about endorsers to offer support to visiting supporters. The
MSC and the VLR are frequently associated. At the point when a portable
station wanders into another MSC area, the VLR related with that MSC will
get some information about the versatile station. On the off chance that the
portable station settles on a decision later, the VLR will have the subtleties it
needs to set up the call without questioning the HLR without fail.
➢ authentication focus (AUC)— The AUC is a gadget that gives validation and
encryption standards that check the client's character while additionally
guaranteeing the call's secrecy. In the present cell world, the AUC protects
network administrators from different types of misrepresentation.
➢ The gear ID register (EIR) is a data set that stores data about the personality of
39
portable hardware to keep calls from being set by taken, unapproved, or flawed
versatile stations. The AUC and EIR can be executed independently or as a
solitary AUC/EIR hub.
4.13 SIM 900 GSM/GPRS MODULE:
40
FEATURES:
41
receive paging or SMS from network but the serial port is not accessible.
WORKING:
Unlike mobile phones, a GSM modem doesn’t have a keypad and
display to interact with. It just accepts certain commands through a serial interface
42
and acknowledges for those. AT commands are the abbreviation for these commands.
There is a list of AT commands that can be used to tell the modem what to do. Any
order begins with the letters "AT." This is why they're referred to as AT orders. AT
is an acronym for "attention." The software in our simple project waits for the mobile
number to be entered through the keyboard. The software instructs the modem to
send the text message using a sequence of AT commands when a ten-digit mobile
number is given.
AT COMMANDS:
➢ Set the SIM900 to text mode: AT+CMGF=1\r.
➢ Send SMS to a number: AT+CMGS=PHONE_NUMBER (in international
format).
➢ Read the first SMS from the inbox: AT+CMGR=1\r.
➢ Read the second SMS from the inbox: AT+CMGR=2\r.
➢ Read all SMS from the inbox: AT+CMGR=ALL\r.
➢ Call to a number: ATDP+PHONE_NUMBER (in international format).
➢ Hang up a call: ATA
43
4.15 GLOBAL POSITIONING SYSTEM
The Global Positioning System, or GPS, is a satellite route framework that furnishes
clients with area and time data in every single climate condition. Planes, airplane,
vehicles, and trucks all utilization GPS for route. Military and regular citizen clients
everywhere on the world benefit from the framework's fundamental capacities. GPS
is a worldwide situating, route, and timing framework that offers ceaseless constant
3-dimensional situating, route, and timing.
The GPS (Global Positioning System) is a satellite-based route framework with in
any event 24 satellites. With no membership charges or arrangement costs, GPS
works in any climate circumstance, anyplace on the planet, 24 hours per day. The
satellites were at first positioned by the US Department of Defense (USDOD) into
space for military use, yet they were made accessible for regular citizen .
In an exact circle, GPS satellites circle the Earth double a day. Each
satellite communicates a particular sign and orbital boundaries, which GPS gadgets
can decipher and compute the satellite's exact position. This information, alongside
trilateration, is utilized by GPS collectors to ascertain a client's definite position. The
GPS recipient figures the distance between each satellite when it takes to get a
44
communicated signal. The recipient will compute a client's area and view it
electronically utilizing distance estimations from a couple of more satellites.
➢ Speed.
➢ Bearing.
➢ Track.
➢ Trip distance.
➢ Distance to destination.
➢ Sunrise and sunset time.
➢ And more.
GPS SEGMENT:
The GPS system consists of three segments:
1) The space segment: the GPS satellites
2) The control system, operated by the U.S. military,
3) The user segment, which includes both military and civilian users and their
GPS equipment.
SPACE SEGMENT: The space segment is the number of satellites in the
constellation. It consists of 29 satellites that circle the earth every 12 hours at an
altitude of 12,000 miles. The space segment's job is to route/navigate signals as
45
well as to store and retransmit the control segment's route/navigation message. The
satellites' highly stable atomic clocks power these transmissions. The GPS Space
Segment is made up of a satellite constellation with enough satellites to ensure that
users have at least four satellites in view at any given time from any point on the
Earth's surface.
46
USER SEGMENT:
The GPS receiver, which receives signals from GPS satellites and determines how
far away it is from each satellite, is part of the consumer segment. This section is
primarily used by the United States military, missile guidance systems, and civilian
GPS applications in almost every region. The majority of civilians use this for
everything from surveying to transportation to natural resources, and then on to
agriculture and mapping.
47
USING A GPS RECEIVER:
There are several different models and types of GPS receivers. While
working with a GPS receiver it is important to have:
➢ A map and a compass
➢ A GPS cable that has been downloaded, as well as some extra batteries.
➢ Knowledge of the GPS receiver's memory ability is essential to avoid data
loss, data accuracy degradation, and other issues.
➢ Where possible, use an external antenna, particularly in densely forested
areas, canyons, or when driving.
➢ A GPS receiver that has been set up in accordance with incident or agency
standard regulations; coordinate system.
➢ Notes in the receiver that explain what you're saving.
ADVANTAGES OF GPS:
➢ GPS Vehicle tracking systems are a valuable tool for navy, civ, and normal
users who use satellite navigation systems.
➢ Turn-by-turning directions can be given by GPS-based navigation systems at
a very large speed.
DISADVANTAGES OF GPS:
➢ GPS Since satellite signals are weaker than phone signals, they don't function
as well indoors, underwater, or under trees.
➢ Since line-of-sight between the receiver and the satellite is needed for the
highest accuracy, GPS does not function well in urban areas..
48
APPLICATION OF GPS:
➢ Blind People's GPS Assists For the blind, real-time GPS, digitised charts,
and likely audio capabilities may provide useful navigational capabilities.
➢ Tracking and Tracing of Wild Animals GPS receivers and wireless
transmitters are installed in animals. The control station receives the GPS-
determined location. This data is used to track animals and learn about their
nomadic habits.
A 16x2 LCD can show 16 characters for every line on every one of its
different sides. Each character is addressed in a 5x7 pixel framework on this LCD.
Order and Data are the two registers on this LCD. The command register keeps
track of the commands that have been issued to the LCD. A command is an
instruction given to LCD to do a predefined task like initializing it, clearing its screen,
49
setting the cursor position, controlling display etc. The data register stores the data
to be displayed on the LCD. The data is the ASCII value of the character to be
displayed on the LCD.
LCD presentations can be seen everywhere. The time is appeared on PCs, adding
machines, TVs, cells, and computerized watches utilizing some sort of show. A
fluid precious stone presentation (LCD) is an electronic showcase module that
delivers a noticeable picture utilizing fluid gem. The 162 LCD screen is a basic
module that is regularly utilized in projects. The 162 alludes to a two-line show of
16 characters for each line. Each character is addressed in a 5x7 pixel framework
on this LCD.
50
4.19-16X2 LCD PINOUT DIAGRAM AND TABLE:
51
5 Low to write to the register; High to read from the register Read/write
6 When a high to low pulse is given, data is sent to data pins; Enable
extra voltage push is needed to execute the instruction, and
the EN(enable) signal is used for this. We usually set it to
en=0 and then set it to high en=1 for a few milliseconds when
we want to execute the instruction. After that, we make it
ground again, with en=0..
8 DB1
9 DB2
10 DB3
11 DB4
12 DB5
13 DB6
14 DB7
52
RS (REGISTER SELECT):
The command and data registers are found on a 16X2 LCD. Switching
from one register to another is done with the register pick. The command register
has the value RS=0, while the data register has the value RS=1..
COMMAND REGISTER:
The command register keeps track of the commands sent to the LCD.
A command tells the LCD to perform a specific task, such as initialising it, clearing
its screen, setting the cursor location, controlling the monitor, and so on. The
command register is where commands are processed..
DATA REGISTER:
THE DATA REGISTER STORES THE DATA THAT WILL BE DISPLAYED ON THE LCD. The
ASCII value of the character to be displayed on the LCD is the data. Data is sent to
the data register when it is sent to the LCD.
53
2 02 Return home
54
17 C0 Force cursor to beginning ( 2nd line)
55
FEATURES
Supply voltage: 5VDC
High-precision positioning.
APPLICATIONS
Conveyors
Solar Tracking System
Antenna Positioning
4.22 IR SENSOR
An infrared sensor is an electronic system that emits infrared light in order to detect
certain aspects of the environment. An infrared sensor can detect motion as well as
measure the heat of an object. The term "passive IR sensor" refers to a sensor that
only detects infrared radiation rather than emitting it. Almost all objects emit some
kind of thermal radiation in the infrared spectrum. These are radiations that are
invisible to the naked eye but can be measured by an infrared sensor. The emitter is
a simple infrared LED, and the detector is a simple infrared photodiode that detects
infrared light of the same wavelength as the IR LED. As IR light hits the photodiode,
it causes it to glow.When IR light falls on the photodiode, The resistances and these
output voltages, change in proportion to the magnitude of the IR light received.
56
Fig 4.22 IR sensor
57
Fig 4.23 Arduino IDE
58
extension .pde. It is possible to open these files with version 1.0, you will be
prompted to save the sketch with the .ino extension on save.
Verify
Checks your code for errors compiling it.
Uploads the code to the optimised board after it has been compiled. For
more details, see the section on uploading below.
Note: If you're using an external programmer for your board, you can use
this icon when holding down the "move" key on your screen. "Upload using
Programmer" would be the new text.
New
Creates a new sketch.
Open
Displays a menu of all of your sketchbook's drawings. When you click one,
it will open in the current window, overwriting the content.
This menu does not scroll due to a Java bug; if you need to open a sketch
that is further down the list, use the File | Sketchbookmenu instead.
Save
Saves your sketch.
59
Serial Monitor
Opens the serial monitor.
The five menus File, Edit, Sketch, Tools, and Support include additional
commands. The menus are context sensitive, which means they only display
things that are important to the work being done at the time.
Computer programmer
The items in this menu enable you to burn a boot loader onto an Arduino
board's microcontroller.This is not required for normal use of an Arduino or
Genuino board but is useful if you purchase a new ATmega microcontroller
(which normally comes without a boot loader). Ensure that you've selected the
correct board from the Boards menu before burning the boot loader on the
target board. This command also set the right fuses.
Help:
You will find a variety of documents that come with the Arduino
Software here (IDE). Without an internet connection, you can access Getting Started,
Reference, this IDE guide, and other documents locally.The documents are a local
copy of the online ones and may link back to our online website.
60
UPLOADING:
You must pick the correct items from the Tools > Board and Tools > Port menus
before uploading your sketch. The boards are listed in the following sections. The
serial port on a Mac is possibly /dev/tty.usbmodem241 (for an Uno, Mega2560, or
Leonardo), /dev/tty.usbserial-1B1 (for a Duemilanove or earlier USB board), or
/dev/tty.USA19QW1b1P1.1 (for a Duemilanove or earlier USB board) (for a serial
board connected with a Keyspan USB-to-Serial adapter). It's most likely COM1 or
COM2 (for a serial board) or COM4, COM5, COM7, or higher (for a USB board)
on Windows; to find out, search for USB serial device in the Windows Device
Manager's ports section. It should be /dev/ttyACMx, /dev/ttyUSBx, or something
similar on Linux.Once you've selected the correct serial port and board, press the
upload button in the toolbar or select the Upload item from the Sketch menu.
Current Arduino boards will reset automatically and begin the upload. With older
boards (pre-Diecimila) that lack auto-reset, you'll need to press the reset button on
the board just before starting the upload. On most boards, you'll see the RX and
TX LEDs blink as the sketch is uploaded. The Arduino Software (IDE) will
display a message when the upload is complete, or show an error.
61
LIBRARIES: Libraries add extra functionality to drawings, such as the ability
to interact with hardware or manipulate data. Pick a library from the Sketch >
Import Library menu to use it in a sketch. This will compile the library with your
sketch and add one or more #include statements to the top of the sketch. Libraries
take up more room on the board than your sketch since they are uploaded with it.
Remove the #include statements from the top of your code if a sketch no longer
needs a library.
In the reference section, there is a list of libraries. The Arduino app comes with a
few libraries. Others are available for download from a number of places, like the
Library Manager.Starting with version 1.0.5 of the IDE, you do can import a
library from a zip file and use it in an open sketch.
62
4.25 EMBEDDED C:
Embedded C is the most widely used programming language in the software industry
for creating electronic devices. Embedded software is connected with each processor
used in an electronic device.
63
➢ Portability
➢ EMBEDDED SYSTEM PROGRAMMING:
Basic Declaration
64
CHAPTER 5
RESULT AND LIMITATIONS
• In this system, we use ARDUINO MEGA (ATmega2560) microcontroller
which acts as brain of the system, because the entire system program
instruction stored in it.
• We have two-IR sensors, they are used here for determining the arrival and
departure of train so that opening and closing of gate can be operate
automatically using servo motor.
• The led is turned to red color and buzzer makes the sound to alert the people
around there.
• Here we use GPS whenever crack detected on the track LED will be on and
buzzer makes the sound to alert the workers and send the location to the
respective department using GPS and GSM for the security alert.
• All the data fetch with the help of sensors are update to cloud therefore all the
operations are controlled and monitored by IOT.
65
LIMITATIONS:
In spite of trying the best to rectify the errors,there are a few limitations
under which the model has to be operated.
➢ The IR sensor used here detects all the objects irrespective of train,
In real time scenario we use Ultrasonic sensor to avoid this situation
as this a prototype.
➢ The GSM module used here detects only the 2G sim but not the other
generation sims.
➢ The track we used here is plastic so current doesn’t flow through it
so we used wires instead of metal tracks.
➢ We are using power supply instead of battery it should be
continuously turned on.
Applications:
➢ Easy to operate.
➢ Low power consumption.
➢ Automatic Railway Gate Control is implemented with very simple
hardware and easy control.
➢ Human intervention at level crossings can be removed with the
help of this project and many railway level crossing accidents can
be prevented.
➢ To detect the crack using IOT based tracking details sending SMS.
➢ To avoid the accidents at a single track.
66
CHAPTER 6
CONCLUSION AND FUTURE WORKS
FUTURE WORKS
➢ Additional improvements should be made to increase the precision
of the position of the fault.
➢ A zigbee module can also be used to create a low-value short-
67
REFERENCES
[1] E Amarnatha Reddy, Ilaiah Kavati, K Srinivas Rao, G Kiran Kumar “A SECURE
RAILWAY CROSSING SYSTEM USING IOT”, Volume 5 Issue 9 (IEEE-2017).
[3]Miss. Sandhya Sharma, (Prof.) Dr. Neetesh Kumar Gupta“A GENETIC APPROACH
TO SEGMENT AND DETECT CRACK IN RAIL TRACK”, ISSN: 2319-8753, Volume 7,
Issue 5 (IEEE-2019).
[4] Afsana Ahmed, Kazi Rifah Noor, Tanveer Rahman “UNMANNED MULTIPLE
RAILWAY GATES CONTROLLING AND BI-DIRECTIONAL TRAIN TRACKING WITH
ALARMING SYSTEM USING PRINCIPLES OF IOT”, (IEEE-2019).
68
69
70