Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:proiecte:2023:earthquakedetector [2024/01/15 20:24]
stefania.frunza
iothings:proiecte:2023:earthquakedetector [2024/01/16 00:07] (current)
stefania.frunza [Hardware]
Line 4: Line 4:
   * Master: AAC   * Master: AAC
   * Academic year: 2023-2024   * Academic year: 2023-2024
 +  * Source files: {{:​iothings:​proiecte:​2023:​earthquake_alg.zip|}}
 +  * [[https://​ctipub-my.sharepoint.com/:​p:/​g/​personal/​stefania_frunza_stud_acs_upb_ro/​EarzChLzdI5HsabqWMbrtRUBHImtb95MCGP3-NyDnDz_sA?​e=MOVfD3|Presentation slides]]
 +  * [[https://​youtu.be/​qQ3m6rQsA1Q|Demo]]
  
 =====Introduction===== =====Introduction=====
Line 18: Line 21:
 =====Architecture===== =====Architecture=====
 ====System overview==== ====System overview====
-{{:​iothings:​proiecte:​2023:​eqd_overview.png?​500|}}+{{:​iothings:​proiecte:​2023:​eqd_overview.png?​800|}}
  
 ====Hardware==== ====Hardware====
 ===Components=== ===Components===
   * Board   * Board
-    * **NodeMCU-32S** - based on the ESP-WROOM-32 module that integrates WIFI and Bluetooth+    * [[https://​ardushop.ro/​ro/​home/​1449-nodemcu-32s-38.html?​search_query=esp32&​results=22|NodeMCU-32S - based on the ESP-WROOM-32 module that integrates WIFI and Bluetooth]]
  
   * 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 39: 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 281: 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">​
Line 357: Line 360:
  
 =====Results===== =====Results=====
-TBD+===Web interface=== 
 +When no earthquake is detected, this is how the webpage looks like:
  
-=====Conclusion===== +{{:​iothings:​proiecte:​2023:​webpage_neqd.png?​500|}} 
-TBD+ 
 +When an earthquake is detected, this is how the webpage looks like: 
 + 
 +{{:​iothings:​proiecte:​2023:​webpage_eqd.png?​500|}} 
 + 
 +===Notifications=== 
 +In the notification bar, the notification about the occurrence of an earthquake will look like this: 
 + 
 +{{:​iothings:​proiecte:​2023:​notification_bar_eqd.jpeg?​300|}} 
 + 
 +In the Pushover App, the notification history will be stored like this: 
 + 
 +{{:​iothings:​proiecte:​2023:​notification_list_eqd.jpeg?​500|}} 
 + 
 +===InfluxDB=== 
 +This is how are stored the events in InfluxDB: 
 + 
 +{{:​iothings:​proiecte:​2023:​influxdb_eqd.png?​800|}} 
 + 
 +=====Conclusion ​and Future Work===== 
 +This project can accomplish its purpose if there are some others conditions met. For example, the board with the sensor must be placed in a stable place, free from unwanted moves (e.g. tram or elevator trepidations). Otherwise, it is possible to return false positive results. However, the algorithm used in earthquake detection is a simplistic one and is also prone to wrong results. 
 + 
 +I tried to add MQTT to this project, in order to make the results more accessible for a large number of clients. I will keep this in mind as a future development for this project. Also, I would like to improve the detection algorithm, so that it will take into account readings from the IMU sensor over a larger amount of time (2 seconds, so we can compare the mean of these readings with a threshold).
  
 =====References===== =====References=====
iothings/proiecte/2023/earthquakedetector.1705343081.txt.gz · Last modified: 2024/01/15 20:24 by stefania.frunza
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0