Things used in this project

Hardware components:
Raspberry pi zero
Raspberry Pi Zero
Or other Raspi will work!
Ethernet connector or WiFi dongle for Raspberry
I2C LCD 20 char x 4 line display
12002 04
Breadboard (generic)
Wooden Box such as from craft stores like Michaels
5v 2amp power supply for Raspberry (2amp if using all options)
Adafruit vibrating motor such as from an old battery toothbrush (see below) or
08377 02 l
Resistor 330 ohm
1n4001 or similar diode
Fairchild semiconductor pn2222abu. image
General Purpose Transistor NPN
Adafruit Neopixels LED stick 8x5050 RGB LED
External Speaker and Amp for Raspi
(not for Raspi Zero!)
Adafruit I2S 3W Class D Amplifier
For Raspi Zero only
Adafruit industries ada1314 image
Speaker: 3W, 4 ohms
For Raspi Zero only
Software apps and online services:
Raspian Jessie OS
Python 2
EarthquakePi software from Github


GitHub for EarthquakePi
See EarthquakePi.pdf for full diagrams and details


Code snippet #2Plain text
$ cd /home/pi$ sudo apt-get update
$ sudo apt-get install build-essential git
$ sudo apt-get install python-dev python-smbus python-pip
$ sudo pip install RPi.GPIO
$ sudo apt-get install i2c-tools
Code snippet #9Plain text
############ USER VARIABLESDEBUG = 1 # Debug 0 off, 1 on
LOG = 1 # Log Earthquake data for past 15 min
MINMAG = 1.0 # Minimum magnitude to alert on
AUDIO = 1 # Sound 0 off, 1 on
MOTOR = 1 # Vibrate Motor 0 off, 1 on
MOTORPIN = 16 # GPIO Pin for PWM motor control
NEOPIXEL = 1 # 1 use Neopixel, 0 don't use Neopixel
NEO_BRIGHTNESS = 64 # Set to 0 for darkest and 255 for brightest
PAUSE = 60 # Display each Earthquake for X seconds
WAV = "/home/pi/earthquakepi/earthquake.wav" # Path to Sound file
DISPLAY = 0 # 0 Turn off LCD at exit, 1 Leave LCD on after exit


Russell Grokett

Interests: Astronomy, Scuba, Caving, Electronics, Web, Coding, Ham Radio, Sci Fi, IoT


Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Sweep 3D Scanner
  • 1,751
  • 31

Work in progress

A complete hardware and software kit for creating full spherical 3D scans with a sweep scanning LiDAR sensor.

Sweep 3D Scanner

Team Scanse

Caravaggio, a Drawing Machine
  • 2,233
  • 26

Caravaggio is a drawing machine able to replicate a digital image using a pen and a continuous line.

Raspberry Pi Remote Control Car Camera
  • 246
  • 4

Full instructions

This project will make a remote control car which has a view via an attached camera.

Custom Object Tracking With Windows 10 IOT core
  • 787
  • 7

Track and create custom objects like switches across a room with a camera so that one can open up new interaction models in IOT space!

Pool Fill Control
  • 2,460
  • 22

Work in progress

A system to monitor my pool sensors and refill my pool when necessary. Monitors water level & temp, pH, ORP, and power consumption.

Raspberry Pi Powered Roboter with Differential GPS
  • 556
  • 4

Full instructions

Precise differential GPS navigation with a Raspberry Pi for my Big Rob which is also powered by a Raspberry Pi.

ProjectsCommunitiesContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Respect project