Internet Earthquake Alert! Project of 4 Electrical Connections!
by cristinepotu7171 in Circuits > Arduino
2503 Views, 28 Favorites, 0 Comments
Internet Earthquake Alert! Project of 4 Electrical Connections!
How to get an earthquake alert on your phone in a few minutes! This project requires only 4 electrical connections, a very easy project even for beginners.
Supplies
1.Esp32 Wemos Lolin
2.MPU6050 accelerometer/gyroscope sensor
3.Remote XY application
4.Visuino software
Schematic Diagram
The electrical scheme is extremely simple, only 4 connections.
We make the 4 connections as follows:
1) MPU6050 SCL pin to pin 22- ESP32
2) MPU6050 SDA pin to pin 21- ESP32
3) MPU6050 Vcc pin to 5V-ESP32 pin
4) MPU6050 GND pin to GND-ESP32 pin
Operating Principle
The operating principle is based on the difference in travel speed between the two types of waves of an earthquake: the P wave, the first one that is felt, with a travel speed of about 6km/sec and is practically harmless, and the S wave, the one that causes destruction and loss of human life with a speed of 4km/s. Practically, the greater the distance from the epicenter, the longer the time between the detection of the 2 types of wave. This small project focuses on this aspect.
Construction
The construction itself requires the creation of an account in the XY Remote application. After creating the account, we declare which microcontroller we use, which type of communication protocol and the graphics and alarm sound that will appear on the phone screen. See in detail in the attached video.
Software and Code
Visuino software is used to create the programming code. Since it is necessary to fill in some columns with the data of each connection, such as the password of the wifi network, the SSID of the network, the type of sound of the alarm, watch the video tutorial and modify the attached code accordingly.
Download Visuino link: https://www.visuino.com/downloads/
Downloads
Phone Aplications
The XY Remote mobile application is downloaded and installed from the Play Store for Android or the App Store for iPhone. Choose the 'cloud' connection and fill in the data from the 'MY TOKEN' section on the desktop, as you will see in the attached video.
Start the Devices
Connect the USB cable to the ESP32 board, start the XY Remote mobile application. By pressing the cloud connection icon, the seismograph and the alarm speaker symbol will appear on the screen. We move the detector with the MPU6050 slightly and the seismograph will show the movement on the graph. Depending on the intensity, the audio alarm will start, and the text "EARTHQUAKE" will flash on the screen.
I hope you liked my project, for any questions we can chat in the comments section!