3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino Seismic Activity Monitor - Ethernet Shield

Arduino Seismic Activity Monitor - Ethernet Shield
«
  • FullPic.jpg
  • PiezoSensor.jpg
  • EthernetShield.jpg
  • ArduinoMega2560.jpg
Have you ever wanted to impress your friends by saying something crazy like, "I think there's going to be an earthquake soon" moments before an earthquake hits?

Or do you just want some warning, a few seconds that could save your life.

This project will allow you to hook up a seismic sensor to a router through the Ethernet shield and host a webpage off of the SD card on the shield. This webpage will then display information about the seismic sensor and the history of its activity.
All the data for the seismic sensor is stored in a Pachube feed and then displayed on the webpage as several graphs.

You will need:

  -  Arduino
        - Preferably an Arduino with large memory, I used the Arduino Mega 2560
        - You can use one with less memory, you just might have to remove some stuff from the sketch
  - Ethernet Shield
  - Micro SD Card
  - Pachube account: 

  - Piezoelectric Sensor
  - Breadboard
  - Resistors, Capacitors, Diode
        - Check the section on building the circuit for more details on values
  - 5 x Op-Amps - Single-supply compatible
        - or you can build it with dual supplies, whatever floats your boat :p
        - You can get away with using only 3 - 4 op amps, the rest I use is for amplification
  - Solid Wire of course!

I assume you already have:
  - Router
  - Computer
        - Would be pretty magical to surf the net without these
  - Extra Ethernet cable
  - USB cable for the arduino
  - Un-destroyed analog pin on your arduino
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Circuit - Sensor

The Circuit - Sensor
«
  • PiezoFilm.jpg
  • Weights.jpg
  • SensorWithWeights.jpg
  • PiezoSensor.jpg
The sensor I used to capture seismic vibrations is a Piezo Film vibra-tab.
They come with an optional weight attached to the end, but I found that the weight was not enough.

The frequency of earthquakes is between 1 - 20 Hz, but with even the heaviest weight the resonant frequency was in the KHz.
So to reduce the resonant frequency and get some useful signals, I took some  washers slapped them on a bolt and some nuts and experimented. I used a Oscilloscope with FFT and changed the weight on the tip of the film until frequencies of around 40Hz were the largest. If you don't own an oscilloscope, just add a little weight and then hit the sensor. It should flop around for about half a second to a second before coming to rest.

Once you have the sensor tuned to the right frequency, place it in your breadboard at one end, you're going to need the space for the rest of the circuit.
As you can see from the picture, I taped down the base of the sensor. This is because the leads on the piezo film is flat, and tends to be loose inside the breadboard, so any vibrations tend to get lost in the movement of the leads.
Taping it so that the base can't move will ensure that your data is accurate!

« Previous StepDownload PDFView All StepsNext Step »
11 comments
Dec 11, 2011. 2:42 PMMonty^ says:
The frequency of earthquake ground vibration is typically <6Hz.

A 30-80Hz detector might sense trucks rumbling by or heavy footsteps, but not earthquake ground vibration unless it's from furniture falling over. 

A great resource is http://psn.quake.net/ with many DIY seismometer designs.
Dec 11, 2011. 3:35 PMgyro_john says:
Didn't you neglect to ground the bottom end of R2 / C3?
Dec 10, 2011. 6:04 PMblinkyblinky says:
Interesting...

If I didn't want to shorten the sketch nor by an Arduino Mega, could I use an external EEPROM?
Dec 11, 2011. 7:40 AMblinkyblinky says:
Ahhh...I have been enlightened.
Dec 9, 2011. 9:10 AMSovereignty says:
I'm not very familiar with the analog stuff, but would it be difficult to adjust the sensor to detect when someone, say, walks on a deck?

The walkway to my front door is a wood deck of 2x4s and I've been trying to think of a way to illuninate it as people walk across it.
Dec 10, 2011. 3:14 AMSovereignty says:
Thanks. And good job!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
11
Followers
2
Author:veedo