The MPU6050 module gives us acceleration and gyroscope values. We only make use of the acceleration values in x,y and z direction. A change of 0.5 m/s2 in any direction is considered as an earthquake.
These modules are kept in remote locations where there is not much activity. Multiple modules are kept in different locations to form a net of detection modules. As soon as an earthquake is detected, we send a telegram notification. This is ideally supposed to be an emergency notification (like the one we got on our phones throughout the week)
earthquake-detector.ino
to the arduino via the USB serial cabletelegram_register.py
to register people from the telegram bot. This file is only run when you want to register users for the alert. Once you're done, stop execution of this file with a ctrl+c
(it's a ctrl + c
on mac too) send-earthquake.py
parallely while the arduino is powered on. Make sure you've connected to the HC-05
bluetooth module on your laptopuser_id.txt
file.Shreya Gurram gurram13775@gmail.com 9901618209
Anurag Rao raoanu2004@gmail.com 9663006833