Things used in this project

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

Schematics

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

Code

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
## OTHER SETTINGS
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
########### END OF USER VARIABLES
Github
https://github.com/rgrokett/earthquakepi

Credits

128161
Russell Grokett

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

Replications

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

Comments

Similar projects you might like

Sweep 3D Scanner
Advanced
  • 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
Advanced
  • 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
Advanced
  • 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
Advanced
  • 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
Advanced
  • 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
Advanced
  • 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
Feedback