Things used in this project

Hardware components:
Raspberry pi zero
Raspberry Pi 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

Intelligent Communty Alerts Beacon [-iCAB-]
  • 10
  • 2

A cloud connected alert system that parses local alert feeds ranging from weather to missing persons and provides visual and audio feedback.

Open Source, Connected Robot Arm
  • 978
  • 11

Work in progress

hRobot is an open source, connected, 3D-printable robotic arm, powered by ROS, with 500g lift capacity

  • 85
  • 1

Low cost robots to assist recovery of patients with non-traumatic brain injuries.


Team Theragym

Add A Google Home Ligh Indicator for Voice Activated Google
  • 475
  • 4

Full instructions

Give your Google Assistant in Google Home on Raspberry Pi a light indicator.

Make an Autonomous "Follow Me" Cooler
  • 19,590
  • 134

Full instructions

We use an Arduino to build an autonomous "follow me" cooler that connects to a smartphone via Bluetooth and uses GPS to navigate.

Run Commands on Your Computers With an Old Remote Control
  • 362
  • 3

If you have an old remote control laying around, don't throw it away! You can use it to run commands on your computers over the Internet.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login