Professional Documents
Culture Documents
Earthquake Detection and Early Warning System: Submitted in Partial Fulfilment For The Award of The Degree of
Earthquake Detection and Early Warning System: Submitted in Partial Fulfilment For The Award of The Degree of
on
Earthquake Detection and Early warning system
by
SRM University
Kattankulathur-603203
April 2012
BONAFIDE CERTIFICATE
Certified that this project report “EARTHQUAKE DETECTION AND EARLY WARNING
SYSTEM” is the bonafide work of SAIKIRON. S BHATT (11708115), RITURAJ
BHATTACHARJEE (11708109) and SALMAN AHMAD (11708116), who carried out the
project work under my supervision.
Date:
2
ACKNOWLEDGEMENT
We express our thanks to Dr. C. P. Ravi Kumar and Mr. Sagar Juneja of Texas
Instruments India, Bangalore for being supportive throughout the phase of TI India Analog
Design Contest and helping us in procurement of various components and other
infrastructure during the course of the contest.
We also take this opportunity to thank our project coordinator, Mr. K Palanithanraj
and Srivastav V.J.S for providing time to time suggestions, critical reviews, and guidance
throughout the project.
We also thank the parents, friends, and family for bearing with us throughout the
3
ABSTRACT
The main aim of this project is to build a cheap and effective electronic device
that could predict and forewarn an earthquake by acquiring and processing the P
waves and subsequently rejecting other similar acoustic signals and vibrations
occurring along with it. During the project course, the signal conditioning and
effective processing mechanism for the device was successfully implemented. The
device needed to provide real time data acquisition, analysis, processing and
correspondingly provide an alarm in case an earthquake is about to occur. The device
is implemented with the use of Integrated circuits from Texas Instruments and
microcontroller units by microchip to create a circuit that detects, processes seismic
wave signals. The final design employs 2 OPA277 operational amplifiers, 1
74AHC1G08 AND GATE, 2 PIC microcontrollers and 1 ULN2003A Relay Driver.
4
TABLE OF CONTENTS
1. Introduction..................................................................................................................7
2. Motivation....................................................................................................................9
3. Technical Background...............................................................................................12
4. System Requirements&Constraints............................................................................15
5. Goal of Project...........................................................................................................17
6. Proposed Solution......................................................................................................19
7. Hardware Implementation.........................................................................................23
8. Software Implementation...........................................................................................28
9. Simulation…..............................................................................................................30
12. References..................................................................................................................36
13. Appendix…................................................................................................................37
5
LIST OF FIGURES
3.1 SOS-LIFE..................................................................................................................13
7.3 P-spice fig representing sum of 1st, 3rd, 5th, 7th & 9th harmonics approximates a
square wave…............................................................................................................25
6
CHAPTER 1
INTRODUCTION
The W.A.S.Ps (Warning and Alert System using P-wave sensor) is a low cost
device used to provide accurate warning and alerting the surrounding areas of a
potential upcoming earthquake. The device basically functions by detecting the P
waves, which constitute a part of the seismic acoustic waves that are released and
move up towards the crust on an event of tectonic movements deep under the earth’s
surface eventually giving rise to an earthquake as they surface.
7
Acoustic sensors, on the other hand, prove to be a dependable and a cheap
source of detection for a quake activity as they make use of cheap sound sensors such
as hydrophones and microphones to detect the acoustic waves underground and also,
as the P (pressure)-waves, which surface much before the destructive S(shear)-waves,
when tapped effectively and detected, can prove to be a more viable source of
warning and alert as compared to other sources.
8
CHAPTER 2
MOTIVATION
9
metal rods inserted in the ground was proposed and tagged as the VAN method. But
later the physics involved in the process was found contradictory and hence the
method was declared controversial.
Fourthly, detection of foreshocks that precede major quakes was adopted but it
often leads to false warnings.
Fifthly, proper observation of animal behaviour just before a major quake was
suggested as a mark of prediction. Though in some of the cases, the claim stands true
but in majority the reports are generally ambiguous.
10
the precursors of earthquake, it is found that none of these provide a stable and
repetitive response to be used as the alarming criterion. Therefore the extension of
these ideas isn't enough to generate a reliable early warning system. It thus becomes
very clear that there is an urgent demand of a stable, reliable and affordable device
working on a new concept to nullify all the errors disturbing the present warning
systems.
11
CHAPTER 3
TECHNICAL BACKGROUND
The QuakeGuard seismic warning system relies on the early detection of non-
destructive, fast moving P waves emanating from the origin of an earthquake.
The elimination of false warnings is a result of QuakeGuard's patented DSP
algorithms that filter detected vibrations to isolate the signature waveforms of a
seismic event that has just occurred. Depending on the geological composition of the
terrain and the distance from the epicentre of the seismic event, a warning of 10 to 60
seconds is possible. The device incorporates advanced sensor design which is difficult
to maintain and requires stable environment conditions for suitable operation. The
complex algorithm and sensor assembly increases the cost of the device significantly.
12
(b) SOS-LIFE Earthquake Early warning and detection system Vs WASPs :
The promotional cost of the device is set at 250 euro and the digital
equipments need proper orientation to respond.
13
On the other hand, the WASPs translates the properties of P wave thereby
avoiding any complex step by step frequency pattern analysis of P wave. The cost of
WASPs is very low when compared with SOS-LIFE as it uses simple handy
peripherals which can be settled anywhere.
The National Research Institute for Earth Science and Disaster Prevention, Japan is in
the process of taking suitable measures to overcome the limitations.
Thus, our proposed device includes the specific features which we believe will
be instrumental in improving the present warning systems available & functional.
14
CHAPTER 4
SYSTEM REQUIREMENTS & CONSTRAINTS
The proposed system is required to effectively detect the incoming wave signals and
respond to changes in the velocity of the signal within the medium.
Constraints:
The main constraint and problems faced in achievement of the above requirements
are as follows:
1. The lamb’s characteristic equation was used to obtain the velocity indirectly
by sampling the frequency of the input waveform.
2. The ease with which the system could be handled was improved by choosing
chips and components that could easily be placed in a PCB and replaced when
faulty by anyone with basic knowledge of IC’s and the size was significantly
reduced by using state–of-the-art component manufactured by TI.
15
3. Design and making of the sensor from the scratch added to the cost of the
device. Additionally, an increase in demands for quality increases the cost
significantly.
4. The MCU, relay driver and the alarm buzzer were the main consumers of
power in the device.
16
CHAPTER 5
GOAL OF PROJECT
The basic intention of our proposed model is to establish the role of P wave
detection in the prediction mechanism of a forthcoming destructive earthquake. Two
important constraints formed the basis for designing the architecture of the device
model:
P wave is a typical elastic longitudinal wave which has its own natural
generation process. It's evolution from the hypocentre of a forthcoming earthquake is
caused due to the primary movements in the earth's crust. Typical values for P-wave
velocity in earthquakes are in the range 5 to 8 km/s. The precise speed varies
according to the region of the Earth's interior, from less than 6 km/s in the Earth's
crust to 13 km/s through the core. The typical frequency range of P wave is usually 1-
10 Hz.
Due to the extreme low frequency range and extreme high wave velocity, the
generation of P wave for the testing of device becomes very challenging and critical.
The alternative input which was used to test the working of WASPs was a typical sine
wave with a frequency range of a very practical P wave. As we know from practical
reports of P wave characteristics, the wave undergoes successive expansion with
respect to the waveform and its intensity when it travels away from the hypocenter. In
order to model the actual phenomenon the operational amplifiers have been used in an
open loop configuration mode.
17
in the wave velocity as it passes through the media are monitored through the
frequency variations of the wave.
18
CHAPTER 6
PROPOSED SOLUTION
1. Detection of P wave:
The principle which has been used to shoulder the responsibility of accurate
detection is magnetostrictive effect on longitudinal waves.
19
with a low magnetic anisotropy field strength, HA, of less than 1 kA/m (to reach
magnetic saturation). Metglas 2605SC also exhibits a very strong ΔE-effect with
reductions in the effective Young's modulus up to about 80% in bulk. This helps build
energy-efficient Magnetic MEMS.
The change in the velocity of wave can be read with respect to the change in
frequency as they bear a proportional ratio as per the Lamb's characteristic equation
for a longitudinal wave which reads as:
V = f x λ.
Where, V represents the velocity of longitudinal wave
The effect of change would be more pronounced if the frequency of the wave
is in a very low range like the P wave.
Thus the increase in frequency of the wave coming out of the ferromagnetic
would indicate the possibility of a P wave.
20
2. False alarm prevention system:
Similar to the P wave detection process, the change in velocity of the P wave
is studied with respect to the frequency shift of the wave as per the Lamb's
characteristic equation for a longitudinal wave.
Thus the overall design consists of these two systems arranged with the help
of different electronic units working parallel to each other. The outputs of the two
systems are used to trigger the earthquake alarm through a relay driver.
The block diagram depicting the entire process of operation is presented below.
21
Fig.6.2. Sensor Design
BILL OF MATERIALS
Component Manufacturer Cost per Quantity Total cost of component
component
1 OPA2337 TI 0.60 1 0.60
2 LM7805C TI 0.60 1 0.60
3 PIC16F877A MICROCHIP 5.44 2 10.88
4 ULN2003A TI 0.21 1 0.21
5 SPDT RELAY 3.0 1 3.0
Total cost of the project 15.29
22
CHAPTER 7
HARDWARE IMPLEMENTATION
The schematic of the overall hardware organisation of the device is shown below.
23
The main components employed in the hardware design of the device are:
The power supply unit provides sufficient voltage to each of the components
working in the device. It consists of a step down transformer which reduces the ac
voltage level after the device is plugged in. The full wave centre tapped rectifier
converts the ac waveform into pulsating dc power signal. The capacitive filter is used
to reduce the ripples in the rectified signal. The IC7805 voltage regulator is used to
generate a constant 5 volt supply to the individual components connected to the
system.
24
Fig. 7.2: Power Supply Circuitry
It has been found that any repeating non sinusoidal waveform can be equated
to a combination of sine or cosine waves. Thus, square waves are equivalent to a sine
wave at the same (fundamental) frequency added to an infinite series of odd-multiple
sine-wave harmonics at decreasing amplitudes.
25
Fig.7.3: P-spice fig representing sum of 1st, 3rd, 5th, 7th& 9th harmonics approximates a square wave.
The outputs of the two amplifiers are connected to the two PIC
microcontrollers as shown in the schematic. The microcontrollers are used to model
the two different media involved in the practical process. One of the PIC
microcontrollers has been programmed to act as a frequency multiplier depicting the
ferromagnetic system and the other as frequency divider representing a high
temperature medium. In fact, the characteristics of the two media have been used to
model it with the help of PIC microcontroller.
The outputs of the two PIC microcontrollers are fed to the 74AHC1G08
AND gate instead of feeding it to another microcontroller. The use of AND gate IC
reduces the cost of implementation of the device drastically and the complexity of the
system is further nullified.
The AND gate provides a HIGH output when both the signals branching from
the microcontrollers are high. The AND gate output is used to initiate the ULN2003
26
relay driver which finally drives the alarm.
Thus the alarm gets triggered only when the input signal frequency range lies
between 1 Hz and 10 Hz representing an earthquake.
27
CHAPTER 8
SOFTWARE IMPLEMENTATION
The reference frequency for the PIC 1 is set at 100Hz (Increase in Velocity,
signifying a frequency multiplication) and the controller generates the active high
output when the frequency of the multiplied signal falls within the set point range. A
flowchart showing the software process described above is as shown below.
28
The reference frequency for the PIC 2 (velocity reduction, signifying a
frequency division) is set at 0.1 Hz and the controller generates the active high output
when the frequency of the divided signal falls within the set point range. The program
algorithm is shown in the flow chart below.
29
CHAPTER 9
SIMULATION
At <1 Hz
At 1 Hz
30
Between 1 to10 Hz
At >10 Hz
31
Fig.9.5. LABVIEW Block Diagram
The software approach to the design of the warning system was to model the
waveform of the input signal and to represent the changes in it's parameters at
different stages of the process.
Two different reference waveforms are shown which are fixed based on the
range of operation of the system i.e. 1 - 10 Hz. The system checks for the match in
frequency range for both the multiplied and divided signals.
Another simulation in which a previously recorded seismic wave data is sampled and
32
determined for the phenomenon is as shown below. The real time recorded data in .WAV is
loaded and read by the Sound File read VI and arranged in an index array function. The
sampled data is measured for its tone and the frequency is processed further to model the
system and the process.
Thus the LED representing the alarm glows when both the signals match their
corresponding reference signals.
Fig.9.6: LABVIEW Front Panel For real time recorded seismic Data
Fig.9.7: LABVIEW Block Diagram For real time recorded seismic Data
33
CHAPTER 10
RESULTS & CONCLUSION
CONCLUSION
34
CHAPTER 11
FUTURE SCOPE
The device can also be upgraded to have a GPS unit which can locate the
accurate position of the origination of the P wave.
35
REFERENCES
[4] ARAI, K. i., and TSUYA, N.: 'Magnetomechanical coupling and variable delay
characteristics by means of giant A£ effect in iron-rich amorphous ribbon', J.
Appl. Phys., 1978, 49, pp. 1718-1720
[7] YAMAGUCHI, M., HASHIMOTO, K. Y., KOGO, H., and NAOE, M.: 'Variable
SAW delay line using amorphous TbFe 2 film', IEEE Trans., 1980,
MAG-16, (Special issue of 1980 international magnetics conference) (under review)
[10] ROBBINS, w. p., and SIMPSON, E. M.: 'Tunable surface acoustic wave
oscillators using magnetostrictive thin film', Proc. IEEE, 1979, 67
[12] www.neic.usgc.gov
[13] www.iris.edu
36
APPENDIX
a. DEVICE PROGRAM
a) FREQUENY DIVISION
#include "pic.h"
#include "delay.h"
#define noofsec 3
void settimer0counter(void);
voidtimerstart (void);
unsignedinttcount = 0 ;
unsignedintpulsecount,freq;
TRISD2 = 0;
TRISD5 = 0;
TRISD6 = 0;
TRISD7 = 0;
relay = 0;
usartinit(9600);
led1= 0;
led2 = 0;
37
led3 =1;
led1 = 1;
msdelay(1000);
led1 = 0;
led2 = 1;
msdelay(1000);
led2 = 0;
led3 = 0;
settimer0counter();
timerstart();
while(1)
{
while(!tover);
tover = 0;
freq = pulsecount;
freq = (freq/10)/noofsec;
if(freq>= 0.1)
{
led2 = 1;
}
else
{
led2 = 0;
}
if(freq<= 1)
{
led3 = 1;
}
else
{
led3 = 0;
}
if(freq>= 0.1 &&freq<= 1)
{
led1 = 1;
relay = 1;
}
else
{
led1 = 0;
relay = 0;
}
38
}
}
voidtimerstart (void)
{
TMR1H = 118;
TMR1L = 0;
TMR1IE = 1;
TMR1ON = 1;
}
39
b) FREQUENCY MULTIPLICATION
#include "pic.h"
#include "delay.h"
#define noofsec 3
INTCON = 0;
TRISA4 = 1;
TRISD2 = 0;
TRISD5 = 0;
TRISD6 = 0;
TRISD7 = 0;
relay = 0;
usartinit(9600);
led1= 0;
led2 = 0;
led3 =1;
led1 = 1;
msdelay(1000);
led1 = 0;
led2 = 1;
msdelay(1000);
led2 = 0;
led3 = 0;
40
settimer0counter();
timerstart();
while(1)
{
while(!tover);
tover = 0;
freq = pulsecount;
freq = (freq*10)/noofsec;
if(freq>= 10)
{
led2 = 1;
}
else
{
led2 = 0;
}
if(freq<= 100)
{
led3 = 1;
}
else
{
led3 = 0;
}
if(freq>= 10 &&freq<= 100)
{
led1 = 1;
relay = 1;
}
else
{
led1 = 0;
relay = 0;
}
}
}
41
TMR1IE = 0;
TMR1ON = 0;
pulsecount = TMR0;
tover = 1;
TMR0 = 0;
T0IE = 1;
timerstart();
}
TMR1IF = 0;
}
}
voidtimerstart (void)
{
TMR1H = 118;
TMR1L = 0;
TMR1IE = 1;
TMR1ON = 1;
}
42
b. DEVICE DESCRIPTION AND DATA SHEETS
a) PIC MCU
43
44
45
46
47
48
49
50
b) OPA2337- OPERATIONAL AMPLIFIER
51
c) µa7805 VOLTAGE REGULATOR
52
53
d) ULN2003A- RELAY DRIVER
54
b. PSPICE DIAGRAM OF HARDWARE
55