Skip to content

mpechner/seismic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seismic

Seismic

ToDo

  • Connect Seismic Sensor, set alarm, display event
  • Connect GPS or SD. SD, put secrets.py and local lat long on card.

Seismic Sensor

Well I screwed up. The earthquake click has their own libraries. I will dig into code from omron to figure out how to interface with circuit python. The board just seems to expose I2C. But there are 2 other pins, int, int2 and setup I need to figureout. At $69, I'm not tossing the board.

Did not screw up. The board is a basic reference design.

Circuit Python Code

Earthquake Click Board Docs

There is a bunch of code from omron.

Here are the various circuit python I2C Libraries to examine. see which replaces smbus, or wraps it.

Secrets.py

Do not check in secrets.py. Just place at the top level of the project with code.py.

secrets = {
   "ssid":"SSID",
    "password":"passwd"
}

Hardware

Controller AdaFruit MagTag https://www.adafruit.com/product/4800

Seismic Sensor https://www.mikroe.com/earthquake-click

GPS: https://www.adafruit.com/product/4415

Power: https://www.adafruit.com/product/328

Math

Distance between 2 lat/long

https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula

convert from lat/long degress minutes to decimal

https://www.latlong.net/degrees-minutes-seconds-to-decimal-degrees

Data Feed

Requirements

  • adafruit_bitmap_font
  • adafruit_display_text
  • adafruit_fakerequests.mpy
  • adafruit_io
  • adafruit_magtag
  • adafruit_minimqtt
  • adafruit_portalbase
  • adafruit_requests.mpy
  • neopixel_spi.mpy
  • simpleio.mpy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages