Things used in this project

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

Contact

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

Intelligent Communty Alerts Beacon [-iCAB-]
Advanced
  • 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
Advanced
  • 978
  • 11

Work in progress

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

Theragym
Advanced
  • 85
  • 1

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

Theragym

Team Theragym

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

Full instructions

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

Make an Autonomous "Follow Me" Cooler
Advanced
  • 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
Advanced
  • 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