- Arduino Mega
- MPU6050
- HC-05 (Bluetooth Module)
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)
- Aproach the maintainer for the hardware
- Upload the arduino code
earthquake-detector.ino
to the arduino via the USB serial cable - Run
telegram_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 actrl+c
(it's actrl + c
on mac too) - Run the
send-earthquake.py
parallely while the arduino is powered on. Make sure you've connected to theHC-05
bluetooth module on your laptop - Now when the module is shook, it should send an alert to every user ID in the
user_id.txt
file.
-
Shreya Gurram [email protected] 9901618209
-
Anurag Rao [email protected] 9663006833