This shows you the differences between two versions of the page.
iothings:proiecte:2021:earthquakedetection [2022/01/26 10:39] gabriel.platon created |
iothings:proiecte:2021:earthquakedetection [2022/01/28 17:52] (current) gabriel.platon |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===Earthquake detection system with ESP32 and MPU-6050 accelerometer === | + | ====== Earthquake detection system with ESP32 and MPU-6050 accelerometer ====== |
+ | Author: **Platon Gabriel Mihai** | ||
+ | |||
+ | Master: **SRIC2** | ||
- | Platon Gabriel Mihai SRIC2 | ||
- | \\ | ||
- | \\ | ||
- | \\ | ||
==1.Introduction == | ==1.Introduction == | ||
Line 20: | Line 19: | ||
The project is made of two main parts and the peripheral parts: | The project is made of two main parts and the peripheral parts: | ||
- | —------Insert poza proiect—---- | + | {{:iothings:proiecte:2021:earthquakephys.jpg?direct&300|}} |
- | The ESP32 board houses the source code, the web server as well as the link to the peripheral parts of the project. | + | **The ESP32** board houses the source code, the web server as well as the link to the peripheral parts of the project. |
The web server is linked to the router through wi-fi and its purpose is to gather the data directly shown by the accelerometer. | The web server is linked to the router through wi-fi and its purpose is to gather the data directly shown by the accelerometer. | ||
- | The MPU-6050 is a 6 axis motion tracking IOT device designed for low power low cost and high performance. | + | **The MPU-6050** is a 6 axis motion tracking IOT device designed for low power low cost and high performance. |
This consists of three axis accelerometer and three axis gyroscope. | This consists of three axis accelerometer and three axis gyroscope. | ||
Besides these, it also includes an embedded temperature sensor that can measure temperature over the range of -40 - 85 degrees Celsius in the silicon die which it incorporates. | Besides these, it also includes an embedded temperature sensor that can measure temperature over the range of -40 - 85 degrees Celsius in the silicon die which it incorporates. | ||
- | The last peripheral is an OLED display, which also shows the data of the accelerometer so it is much easier to crosscheck. | + | The last peripheral is an **OLED display** (0.96), which also shows the data of the accelerometer so it is much easier to crosscheck. |
- | The Esp32 board used is Node MCU ESP32 and has the following pinout: | + | The Esp32 board used is **Node MCU ESP32** and has the following pinout: |
+ | {{:iothings:proiecte:2021:nodemcu_earthquake.png?direct&400|}} | ||
The pins used are | The pins used are | ||
- | * The 3.3V pin to provide power to the other components | + | * The **3.3V** pin to provide power to the other components |
- | * The GND pin to complement it | + | * The **GND** pin to complement it |
- | * The GPIO 22 and GPIO 21 pins used for SDA and SCL I2C communication with the accelerometer and with the OLED display | + | * The **GPIO 22** and **GPIO 21** pins used for SDA and SCL I2C communication with the accelerometer and with the OLED display |
- | The accelerometer used is MPU6050 and has the following pinout: | + | The accelerometer used is **MPU6050** and has the following pinout: |
+ | |||
+ | {{:iothings:proiecte:2021:mpu6050_earthquake.png?direct&300|}} | ||
The pins used are of course the first 4 , as explained for the esp32 board pins. | The pins used are of course the first 4 , as explained for the esp32 board pins. | ||
- | The OLED 0.96 has the following pinout and respects the same connection rules: | + | **The OLED** 0.96 has the following pinout and respects the same connection rules: |
+ | {{:iothings:proiecte:2021:oled_earthquake.png?direct&300|}} | ||
==4.Software Description == | ==4.Software Description == | ||
Line 59: | Line 62: | ||
Web server folder structure | Web server folder structure | ||
+ | |||
+ | {{:iothings:proiecte:2021:spifs_earthquake.png?direct&300|}} | ||
* Code | * Code | ||
Line 107: | Line 112: | ||
The MPU6050 and the ESP32 board are a great combination of IOT devices which make earthquake detection a simple matter through the use of an accelerometer with an included gyroscope and a temperature sensor, even if only at a minimal level. This however proves that with upgrades, the hardware can become reliable. | The MPU6050 and the ESP32 board are a great combination of IOT devices which make earthquake detection a simple matter through the use of an accelerometer with an included gyroscope and a temperature sensor, even if only at a minimal level. This however proves that with upgrades, the hardware can become reliable. | ||
- | == 7.Bibliography and Resources == | + | == 7.Demo and code == |
+ | |||
+ | [[https://youtu.be/wh__vjrYBHs]] | ||
+ | |||
+ | {{:iothings:proiecte:2021:earthquake_detection_platon_gabriel_mihai.zip|}} | ||
+ | |||
+ | == 8.Bibliography == | ||