This shows you the differences between two versions of the page.
iothings:proiecte:2023:earthquakedetector [2024/01/15 23:58] stefania.frunza |
iothings:proiecte:2023:earthquakedetector [2024/01/16 00:07] (current) stefania.frunza [Hardware] |
||
---|---|---|---|
Line 29: | Line 29: | ||
* Sensor: | * Sensor: | ||
- | * **MPU-6050** - an integrated circuit with accelerometer, gyroscope and temperature sensor with an I2C interface | + | * [[https://ardushop.ro/ro/electronica/179-modul-giroscop-accelerometru-3-axe.html|MPU-6050 - an integrated circuit with accelerometer, gyroscope and temperature sensor with an I2C interface]] |
* LCD: | * LCD: | ||
- | * **LCD 16x2** - an LCD screen with yellow-green backlighting and an I2C interface | + | * [[https://ardushop.ro/ro/electronica/36-lcd-1602.html|LCD 16x2 - an LCD screen with yellow-green backlighting and an I2C interface]] |
* Breadboard | * Breadboard | ||
Line 42: | Line 42: | ||
In order to use the Earthquake Detector system, the ESP32 board has to be connected to a power source. The hardware assembly should be positioned in a place free from unwanted moves (e.g. tram or elevator trepidations). Depending on the needs, the user can access the webpage in the LAN that will signalize the occurrence of an earthquake. Anyway, When an earthquake is detected, the user will receive a notification on the phone and will be able to visualize the moment of occurrence in the database. | In order to use the Earthquake Detector system, the ESP32 board has to be connected to a power source. The hardware assembly should be positioned in a place free from unwanted moves (e.g. tram or elevator trepidations). Depending on the needs, the user can access the webpage in the LAN that will signalize the occurrence of an earthquake. Anyway, When an earthquake is detected, the user will receive a notification on the phone and will be able to visualize the moment of occurrence in the database. | ||
- | {{:iothings:proiecte:2023:eqd_diagram.png|}} | + | {{:iothings:proiecte:2023:eqd_diagram.png?750|}} |
The Pinout scheme of the ESP32 board that I used is the following: | The Pinout scheme of the ESP32 board that I used is the following: | ||
Line 284: | Line 284: | ||
===Web app=== | ===Web app=== | ||
The times when I was running away from web developing have finally come to an end. With a very simple interface and some JavaScript code, we managed to send the information to the webpage in real time and show a message accordingly to the occurrence of an earthquake. | The times when I was running away from web developing have finally come to an end. With a very simple interface and some JavaScript code, we managed to send the information to the webpage in real time and show a message accordingly to the occurrence of an earthquake. | ||
- | <code> | + | <code html> |
<!DOCTYPE html> | <!DOCTYPE html> | ||
<html lang="en"> | <html lang="en"> |