Documente Academic
Documente Profesional
Documente Cultură
INTRODUCTION
Now-a-days, it became very difficult to know that an accident has
occurred and to locate the position where it has happened. Its very difficult for
the lives of victims until anyone noticed and informed it to the ambulance or to
any hospital and if it occurs in remote areas there will be no hope to survive. To
overcome these, GSM and GPS technologies are used. The GPS based vehicle
accident identification module contains a vibrating sensor and a GPS modem
connected to the microcontroller. When an accident occurs, the vibration sensor
gives the signal to the microcontroller, which sends the information to the LCD
display through GSM network. The vehicle is tracked for every five minutes
using GPS and the position of the vehicle is also send to the mobile in terms of
latitude and longitude which is processed by the pc.
1.1 Objective
The main aim of this project is to find the accident spot at any
place and intimating the location to mobiles through the GSM and GPS networks.
GSM MODULE
2.
GPS MODULE
3.
ARM LPC2148
4.
LCD DISPLAY
5.
MEM SENSOR
6.
POWER SUPPLY
MEMS
A
D
C
0
8
0
4
GSM
MODEM
GPS
MODEM
LED
L
P
C
MAX
232
2
1
4
8
MAX
232
LCD DISPLAY
POWER SUPPLY
Fig 1.1: block diagram of accident detection and release of air bags using GSM, GPS and
MEMS
CHAPTER 2
HARDWARE DESCRIPTION
2.1 ARM based LPC 2148
The LPC2148 microcontrollers are based on a 32/16 bit ARM7TDMI-S CPU
with real-time emulation and embedded trace support, that combines the
microcontroller with embedded high speed flash memory ranging from 32 kB to
512 kB. A 128-bit wide memory interface and a unique accelerator architecture
enable 32-bit code execution at the maximum clock rate. For critical code size
applications, the alternative 16-bit Thumb mode reduces code by more than 30 %
with minimal performance penalty.
operation.
In-System/In-Application Programming (ISP/IAP) via on-chip boot-loader
software. Single flash sector or full chip erase in 400 ms and programming of 256
bytes in 1 ms.
3
ARM7TDMI-S Processor:
The ARM7TDMI-S is general purpose 32-bit microprocessor, which
offers high performance and very low power consumption. The ARM architecture
is based on Reduced Instruction Set Computer (RISC) principles, and the
instruction set and related decode mechanism are much simpler than those of
micro programmed Complex Instruction Set Computers. This simplicity results in
a high instruction throughput and impressive real-time interrupt response from a
small and cost-effective processor core.
Pipeline techniques are employed so that all parts of the processing and
memory systems can operate continuously. Typically, while one instruction is
5
being executed, its successor is being decoded, and a third instruction is being
fetched from memory. The ARM7TDMI-S processor also employs a unique
architectural strategy known as THUMB, which makes it ideally suited to highvolume applications with memory restrictions, or applications where code density
is an issue. The key idea behind THUMB is that of a super-reduced instruction
set. Essentially, the ARM7TDMI-S processor has two instruction sets:
The THUMB sets 16-bit instruction length allows it to approach twice the
density of standard ARM code while retaining most of the ARMs performance
advantage over a traditional 16-bit processor using 16-bit registers. This is
possible because THUMB code operates on the same 32-bit register set as ARM
code.
THUMB code is able to provide up to 65% of the code size of ARM, and
10
2.2.2 Rectifier
11
constant until the mains voltage and load is maintained constant. However, if
either of the two is varied, D.C. voltage received at this point changes. Therefore
a regulator is applied at the output stage.
12
IC 7805
7805 is an integrated three-terminal positive fixed linear voltage regulator.
It supports an input voltage of 10 volts to 35 volts and output voltage of 5 volts. It
has a current rating of 1 amp although lower current models are available. Its
output voltage is fixed at 5.0V..The 7805 will automatically reduce output current
if it gets too hot. The last two digits represent the voltage; for instance, the 7812 is
a 12-volt regulator. The 78xx series of regulators is designed to work in
complement with the 79xx series of negative voltage regulators in systems that
provide both positive and negative regulated voltages, since the 78xx series can't
regulate negative voltages.
2.3 MAX232
13
14
16
2.4 ADC0804
Features of ADC0804
17
18
CS (Chip select)
Chip select is an active low input used to activate the ADC 0804
b)
RD (Read)
This is an input signal and is active low. The ADC converts
the analog input to its binary equivalent and holds it in an internal register. RD is
used to get the converted data out of the ADC 0804 chip. When CS=0, if a high to
low pulse is applied to RD pin, the 8 bit digital output shows up at the D0-D7 data
pins. The RD pin is also referred to as output enable.
c)
WR (Write)
This is an active low input used to inform the ADC 0804 to
start the conversion process. If CS=0 when WR makes a low to high transition,
19
the ADC 0804 starts converting the analog input value of Van to an 8 bit digital
number the amount of time it takes to convert it varies depending on the CLK IN
and CLK R values. When the data conversion is complete, the ADC 0804 forces
the INTR pin low.
d)
external clock is used for timing. However the 0804 have an internal clock
generator. To use the internal clock generator of the ADC 0804, the CLK IN and
CLK R pins are connected to a capacitor and resistor; in that case the clock
frequency is determined by the equation
F= 1/1.1 R
e)
INTR (Interrupt)
This is an output pin and is active low. It is a normally high pin and
when the conversion is finished, it goes low to signal the CPU that the converted
data is ready t be picked up. After INTR goes low, we make CS=0 and send a high
to low pulse to the RD pin t get the data out of the ADC 0804 chip.
f)
Often the Vin () connected to ground and the Vin (+) pin used as the analog input
to the converted to digital.
g)
VCC
This is the +5V power supply. It is also used as a reference voltage
h)
D0-D7
20
D0-D7 (whereD7is the MSB, D0 the LSB) is the digital data output
pins. These are tri state buffered and the converted data is accessed only CS=0
and RD is forced low. To calculate the output voltage, use the following formula.
Dout =Vin/step size
2.
3.
4.
What is GSM?
GSM (Global System for Mobile communications) is an open, digital
cellular technology used for transmitting mobile voice and data services.
What does GSM offer?
GSM supports voice calls and data transfer speeds of up to 9.6 kbit/s,
together with the transmission of SMS (Short Message Service).
GSM operates in the 900MHz and 1.8GHz bands in Europe and the
1.9GHz and 850MHz bands in the US. The 850MHz band is also used for GSM
and 3G in Australia, Canada and many South American countries. By having
harmonised spectrum across most of the globe, GSMs international roaming
capability allows users to access the same services when travelling abroad as at
home. This gives consumers seamless and same number connectivity in more than
218 countries.
Terrestrial GSM networks now cover more than 80% of the worlds
population. GSM satellite roaming has also extended service access to areas
where terrestrial coverage is not available
HISTORY
In 1980s the analog cellular telephone systems were growing rapidly all
throughout Europe, France and Germany. Each country defined its own protocols
and frequencies to work on. For example UK used the Total Access
22
Communication System (TACS), USA used the AMPS technology and Germany
used the C-netz technology. None of these systems were interoperable and also
they were analog in nature.
In 1982 the Conference of European Posts and Telegraphs (CEPT) formed a study
group called the GROUPE SPECIAL MOBILE (GSM) The main area this
focused on was to get the cellular system working throughout the world, and
ISDN compatibility with the ability to incorporate any future enhancements. In
1989 the GSM transferred the work to the European Telecommunications
Standards Institute (ETSI.) the ETS defined all the standards used in GSM.
GSM Radio Network This is concerned with the signaling of the system.
Hand-overs occur in the radio network. Each BTS is allocated a set of frequency
channels.
23
Land
Network(PLMN)
Mobile System (MS)
The actual cell phone that we use
Base Transceiver Station (BTS) Provides connectivity between network
and mobile station via the Air- interface
BaseStationController(BSC)
Center (MSC)
interface.
EIR(Equipment
Identity The
IMEI.no
is
allocated
by
the
Register)
manufacturer
Table 2.2: Explation and abbreviations of blocks used in GSM
24+ satellites
20,200 km altitude
55 degrees inclination
The orbits are arranged so that at any time, anywhere on Earth, there are at
All satellites broadcast at the same two frequencies, 1.57542 GHz (L1
signal) and 1.2276 GHz (L2 signal).
The receiver must be aware of the PRN codes for each satellite to
reconstruct the actual message data. The C/A code, for civilian use, transmits data
at 1.023 million chips per second, whereas the P code, for U.S. military use,
transmits at 10.23 million chips per second. The L1 carrier is modulated by both
the C/A and P codes, while the L2 carrier is only modulated by the P code. The
P code can be encrypted as a so-called P(Y) code which is only available to
military equipment with a proper decryption key. Both the C/A and P(Y) codes
impart the precise time-of-day to the user
27
commercial retailers. Equipped with these GPS receivers, users can accurately
locate where they are and easily navigate to where they want to go, whether
walking, driving, flying, or boating.
Today's GPS receivers are extremely accurate, thanks to their parallel multichannel design. Garmin's 12 parallel channel receivers are quick to lock onto
satellites when first turned on and they maintain strong locks, even in dense
foliage or urban settings with tall buildings. Certain atmospheric factors and other
sources of error can affect the accuracy of GPS receivers. Garmin GPS receivers
are accurate to within 15 meters on average.
Newer Garmin GPS receivers with WAAS (Wide Area Augmentation
System) capability can improve accuracy to less than three meters on average. No
additional equipment or fees are required to take advantage of WAAS. Users can
28
also get better accuracy with Differential GPS (DGPS), which corrects GPS
signals to within an average of three to five meters. The U.S. Coast Guard
operates the most common DGPS correction service. This system consists of a
network of towers that receive GPS signals and transmit a corrected signal by
beacon transmitters. In order to get the corrected signal, users must have a
differential beacon receiver and beacon antenna in addition to their GPS.
Our ancestors had to go to pretty extreme measures to keep from getting
lost. They erected monumental landmarks, laboriously drafted detailed maps and
learned to read the stars in the night sky.
Things are much, much easier today. For less than $100, you can get a pocketsized gadget that will tell you exactly where you are on Earth at any moment. As
long as you have a GPS receiver and a clear view of the sky, you'll never be lost
again.
The user segment is composed of hundreds of thousands of U.S. and allied
military users of the secure GPS Precise Positioning Service, and tens of millions
of civil, commercial and scientific users of the Standard Positioning Service. In
general, GPS receivers are composed of an antenna, tuned to the frequencies
transmitted by the satellites, receiver-processors, and a highly stable clock (often a
crystal oscillator). Originally limited to four or five, this has progressively
increased over the years so that, as of 2007, receivers typically have between 12
and 20 channels.
The Global Positioning System is vast, expensive and involves a lot of technical
ingenuity, but the fundamental concepts at work are quite simple and intuitive.
APPLICATIONS OF GPS
Disaster relief and emergency services depend upon GPS for location and
timing capabilities in their life-saving missions.
2.7 MEMS
Axis Orientation/Motion Detection Sensor
30
Features
RoHS Compliant
Halogen Free
Typical Applications
Gaming:
Motion
Detection,
Auto-Wake/Sleep
Consumption
31
For
Low
Power
32
33
34
The Standby Mode is ideal for battery operated products. When Standby
Mode is active the device outputs are turned off providing a significant reduction
in operating current. When the device is in Standby Mode the current will be
reduced to approximately 3 A. Standby Mode is entered as soon as both analog
and digital power supplies are up. In this mode, the device
can read and write to the registers with I2C, but no new measurements can be
taken. The mode of the device is controlled through the MODE (0x07) control
register by accessing the mode bit in the Mode register.
During the Active Mode, continuous measurement on all three axes is
enabled. In addition, the user can choose to enable shake Detection, Tap
Detection, Orientation Detection, and/or Auto-Wake/Sleep Feature and in this
mode the digital analysis for any of these functions is done. The user can
configure the samples per second to any of the following: 120 samples/second, 64
samples/second, 32 samples/second, 16 samples/second, 8 samples/second, 4
samples/second, 2 samples/second, and 1 sample/second for the wake state. If the
user is configuring the sleep feature, the selectable ranges are: 32 samples/second,
16 samples/second, 8 samples/seconds and 1 sample/second. Depending on the
samples per second selected the power consumption will vary.
35
36
If operated in 8-bit mode then 8 data lines + 3 control lines i.e. total 11
lines are required. And if operated in 4-bit mode then 4 data lines + 3 control lines
i.e. 7 lines are required. How do we decide which mode to use? Its simple if you
have sufficient data lines you can go for 8 bit mode & if there is a time constrain
i.e. display should be faster then we have to use 8-bit mode because basically 4bit mode takes twice as more time as compared to 8-bit mode.
Pin
1
2
3
4
5
6
7-14
Symbol Function
Vss
Ground
Vdd
Supply Voltage
Vo
Contrast Setting
RS
Register Select
R/W
Read/Write Select
En
Chip Enable Signal
DB0-DB7 Data Lines
Ground for the
15 A/Vee
backlight
16 K
Vcc for backlight
Table 2.5: Pin description of lcd display
When RS is low (0), the data is to be treated as a command. When RS is high (1),
the data being sent is considered as text data which should be displayed on the
screen.
When R/W is low (0), the information on the data bus is being written to the LCD.
When RW is high (1), the program is effectively reading from the LCD. Most of
the times there is no need to read from the LCD so this line can directly be
connected to Ground thus saving one controller line.
The ENABLE pin is used to latch the data present on the data pins. A HIGH LOW signal is required to latch the data. The LCD interprets and executes our
command at the instant the EN line is brought low. If you never bring EN low,
your instruction will never be executed.
37
CHAPTER 3
ACCIDENT DETECTION AND RELEASE OF AIR
BAGS USING GSM, GPS AND MEMS
38
39
40
41
understands TTL format. When accident occurs GPS is activated and it gives the
values of location in terms of Latitude and Longitude.
For example:
Accident occurred at location of
Latitude=1641.4095
Longitude=1725.3602
The same above values are sent to the mobiles using GSM for which the mobile
numbers are dumped in the program. At the same time those values are displayed
on LCD Display. Immediately after the accident detection, the air bag is released.
Release of air bag is shown in ur project by glowing LED.
Hence by using MEMS,GSM and GPS accident location is detected and
the information is sent to the mobile as well as LCD Display.
42
CHAPTER 4
SIMULATION
In this chapter the software used and the language in which` the program code is
defined is mentioned and the program code dumping tools are explained. The
chapter also documents the development of the program for the application. This
program has been termed as Source code. Before we look at the source code we
define the two header files that we have used in the code.
43
44
Save the Project by typing suitable project name with no extension in your
own folder i.e. either in C: / or D: /
45
Then Click on OK
46
Now double click on the Target1, you would get another option Source
Click on the file option from menu bar and select new
47
The next screen will be as shown in next page, and just maximize it by
48
Now right click on Source group 1 and click on Add files to Group
Source
Now you will get another window, on which by default C files will
appear.
49
Now select as per your file extension given while saving the file
Now Press function key F7 to compile. Any error will appear if so happen.
Then Click OK
Now Click on the Peripherals from menu bar, and check your required
51
Flash Magic
Features
Five simple steps to erasing and programming a device and setting any
options desired
Powerful, flexible Just In Time Code feature. Write your own JIT
52
intranet
Requirements:
Flash Magic works on any versions of Windows, except Windows 95. 10Mb of
disk space is required. As mentioned earlier, we are automating two different
routines in our project and hence we used the method of polling to continuously
monitor those tasks and act accordingly.
CHAPTER 5
CONCLUSION
We have observed the performance of accident detection and release of air
bags using GPS, GSM and MEMS. It helps not only in finding the location of
vehicle but also it is helpful in saving the lives of victims by finding where an
accident has happened. It can also be used in Vehicles, Ambulances, and Fire
engines etc. for the purpose of accident detection. By releasing the airbags we can
save the victims from major injuries. Finally we can say that the project has many
advantages and hence it can be used.
53
Applications:
It is used in Ambulance, Fire engines, VIP
Vehicles, Defence, Security etc.
Advantages:
Easy to operate
Sophisticated security
CHAPTER 6
REFERENCES
1.
WWW.MITEL.DATABOOK.COM
2.
WWW.ATMEL.DATABOOK.COM
3.
WWW.FRANKLIN.COM
4.
WWW.KEIL.COM
5.
6.
7.
8.
http://electronics.howstuffworks.com/gadgets/travel/gps.htm
http://en.wikipedia.org/wiki/GSM
http://burnsidetelecom.com/whitepapers/gsm.pdf
http://www.itu.int/osg/spu/ni/3G/casestudies/GSM-FINAL.pdf
55