Tweeting Earthquake Sensor
by 4D Makers in Circuits > Electronics
435 Views, 1 Favorites, 0 Comments
Tweeting Earthquake Sensor
![Tweeting Earthquake Sensor featuring 4D Systems 3.5" HMI Display Module and MOTG-Wifi-ESP](/proxy/?url=https://content.instructables.com/FP2/LECZ/J2QFB46B/FP2LECZJ2QFB46B.jpg&filename=Tweeting Earthquake Sensor featuring 4D Systems 3.5" HMI Display Module and MOTG-Wifi-ESP)
![eart.png](/proxy/?url=https://content.instructables.com/F5G/UEL9/J2QFB407/F5GUEL9J2QFB407.png&filename=eart.png)
This project entitled, Tweeting Earthquake Sensor is a project that aims to alert the user whenever it detects tremors or earthquakes. Using a tilt switch, it will effectively measure if an earthquake vibration is occurring within the predefined timeframe.
When the alarm is triggered, it will then send a tweet using the MOTG-WiFi-ESP, notifying about the earthquake sensed.
How It Works
![BLOCK-Tweeting-Earthquake-Sensor-768x297.png](/proxy/?url=https://content.instructables.com/F9M/CT57/J2QFB3Y3/F9MCT57J2QFB3Y3.png&filename=BLOCK-Tweeting-Earthquake-Sensor-768x297.png)
The sensor will determine the vibration of the surrounding and if the sensor gather enough values to state that there is an earthquake, the alarm will turn on, and the device will send tweet.
Components
![OP1.png](/proxy/?url=https://content.instructables.com/FVV/JWRG/J2QFB9DB/FVVJWRGJ2QFB9DB.png&filename=OP1.png)
![OP2.png](/proxy/?url=https://content.instructables.com/FCA/JG03/J2QFB9E4/FCAJG03J2QFB9E4.png&filename=OP2.png)
OPTION 1:
gen4-uLCD35-DT
MOTG-WiFi-ESP
gen4-PA + MOTG Breakout Board
uUSB cable
OPTION 2:
gen4-uLCD35-DT
MOTG-WiFi-ESP
MOTG-Breadtooth
Bread Board
Connecting Wires
External 3.3v Power Supply
uUSB Cable
Building the Project
![Schematic-Diagram-1-600x307.png](/proxy/?url=https://content.instructables.com/FV3/V61O/J2QFB41D/FV3V61OJ2QFB41D.png&filename=Schematic-Diagram-1-600x307.png)
![easter_object.png](/proxy/?url=https://content.instructables.com/F70/GOV8/J2QFB40Z/F70GOV8J2QFB40Z.png&filename=easter_object.png)
![compile-1-300x188.png](/proxy/?url=https://content.instructables.com/FT7/TNOD/J2QFB3Z4/FT7TNODJ2QFB3Z4.png&filename=compile-1-300x188.png)
![Capture-3-600x148.png](/proxy/?url=https://content.instructables.com/FA5/1C65/J2QFB3YH/FA51C65J2QFB3YH.png&filename=Capture-3-600x148.png)
![comp-nload-300x170.png](/proxy/?url=https://content.instructables.com/FND/JX46/J2QFB3ZI/FNDJX46J2QFB3ZI.png&filename=comp-nload-300x170.png)
![easter_card-300x189.png](/proxy/?url=https://content.instructables.com/F08/JGOB/J2QFB40L/F08JGOBJ2QFB40L.png&filename=easter_card-300x189.png)
- Build the circuit as shown in the diagram. (For option 2)
- Download the project file here.
- You can download Workshop 4 IDE and the complete code for this project from our website.Open the project using Workshop 4. This project uses the ViSi Environment.You can alaso modify the properties of each widget. (As shown in Image 2)
- Click on the Compile button.(This step could be skipped. However, compiling is essential for debugging purposes.) (Shown in the third image)
- Connect the display to the PC using μUSB-PA5 and a mini USB cable. Make sure that you are connected to the right port. Red Button indicates that the device is not connected, Blue Button indicates that the device is connected to the right port. (See Image 4)
- Now click on the “Comp’nLoad” button.(Shown in Image 5)
- Workshop 4 will prompt you to select a drive to copy the image files to a μSD Card. After selecting the correct drive, click OK. (As shown in image 6)
*Diagram for option 1 is to be added in future revisions.This option provides a built-in speaker from the gen4 PA+MOTG Breakout board.
Demonstration
![DSC_0113-768x512.jpg](/proxy/?url=https://content.instructables.com/FYY/U3OV/J2QFB3ZX/FYYU3OVJ2QFB3ZX.jpg&filename=DSC_0113-768x512.jpg)
![DSC_0169-768x512.jpg](/proxy/?url=https://content.instructables.com/FBG/EFUC/J2QFB3ZZ/FBGEFUCJ2QFB3ZZ.jpg&filename=DSC_0169-768x512.jpg)
![DSC_0181-768x512.jpg](/proxy/?url=https://content.instructables.com/F15/PBFH/J2QFB404/F15PBFHJ2QFB404.jpg&filename=DSC_0181-768x512.jpg)
![Screenshot-1024x576.png](/proxy/?url=https://content.instructables.com/F0R/Z6JT/J2QFB42M/F0RZ6JTJ2QFB42M.png&filename=Screenshot-1024x576.png)
The module will prompt you to insert the μSD card.Properly unmount the μSD Card from the PC and insert it to the μSD Card slot of the display module. The image abobe must appear on your display after completing the steps.