Seismodesk: a DIY Simple and Effective Seismometer
by MarcoF40 in Circuits > Arduino
54 Views, 1 Favorites, 0 Comments
Seismodesk: a DIY Simple and Effective Seismometer

The Lifeshell Seismodesk is a simple, Do It Yourself, affordable solution for addressing Earthquake Early Warning System. Made of a few commonly available electronic parts, the system is highly modular and can be expanded with ease, for example for personalizing the alert code (now just a red and a white LED) for visual impaired persons or other personalizations.
This Instructables is part of a project funded by the European Union – Next Generation EU.
Basically, the Lifeshell project is engineering furniture capable of providing shelter during an earthquake. The furniture are licensed under the Creative Commons 4.0 license: everybody can make, modify and even sell them!
https://www.ibe.cnr.it/lifeshell/
https://www.lifeshell.net/
Supplies
- Arduino NANO (or other Arduino)
- MPU6050 sensor (or other accelerometer, but you will have to change library)
- wires and perfboard or breadboard
at least one of the following output:
- LED and a few resistors
- buzzer/speaker
- vibration motor
The Bill of Material is:
- Arduino Nano (or clone, or other type), 3 to 20 €
- MPU6050 accelerometer, 2 to 4 €
- LED, 1 €
- Connection wires, resistors, 1 €
TOTAL: 7 to 26 €.
Hardware Connection


MPU6050 connections: 5V, GND, SCL on A4, SDA on A5 (SCL and SDA Pins for Arduino Nano, modify for your Arduino)
Green LED on PIN D9 to GND via a 120 (100-200) Ohm resistor
Yellow LED on PIN D10 to GND via a 120 (100-200) Ohm resistor
RED LED on PIN D11 to GND via a 220 (150-250) Ohm resistor
White LED on PIN D3 to GND via a 120 (100-200) Ohm resistor
Schematics can be found also here:
https://app.cirkitdesigner.com/project/3985b239-634e-4ed1-b15b-e672beb83c64
Code
Copy/paste the following or open the attached .ino file at the end of the step and upload it to Arduino.
Downloads
Use It!
The device is intended to be used as an Earthquake Early warning system that should gift a few seconds to the users for finding a shelter during a seism. All the international guidelines suggest to crawl under a desk to find protection, and the Lifeshell desk (www.lifeshell.net) is an incredibly strong, affordable, open source desk.
Use of the sesimodesk
- Power on the device. When the device is powered on, it shall remain undisturbed (no movements) for a few seconds on startup, since the accelerometer calibrates itself.
- Live your life. On daily life, just keep an eye at the green LED that shall be ON when the device is running.
- In case of an earthquake. In that case the device other LEDs will turn ON (orange for medium and red for severe seisms), alerting the user to use the shelter under the desk. The white LED will stay ON for a while after the seism.
Seismodesk tuning
You may want to change the threshold for detecting seism. In the code, there are two IF functions that are checking if the XYZ accelerations are above a certain threshold. You may want to serial monitor (in the Arduino IDE) the XYZ values on a quite moment and change the threshold just above/below that reading.
E.g. if your serial monitor reads X accelerations around -0.4 to +0.1 g, you may want to set the lower threshold to about -0.8 and the upper threshold to +0.5 g, as in the following part of code (the IF controlling the yellow LED, to be repeated for the IF related to the RED led too).
if (a.acceleration.x < -0.8 || a.acceleration.x > 0.5 || a.acceleration.y < -0.5 || a.acceleration.y > 0.5 || a.acceleration.z < 10 || a.acceleration.z > 11) {
digitalWrite(LEDyellow, HIGH);
Feedback
Lifeshell is an open-source bottom up research project, we'll love to hear from you and ameliorate the project with your hints!
Feel free to use this form or reach us by email marco.fellin (at) cnr.it
License


The whole Lifeshell project is licensed under the Creative Commons CC BY 4.0 licence allows to share (copy and redistribute) the material in any medium or format, adapt, remix, transform, and build upon the material, for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
Credits
The current Lifeshell project development is funded by the European Union - Next Generation EU via piano nazionale di ripresa e resilienza (PNRR), missione 4 “istruzione e ricerca” - componente c2, investimento 1.1, “fondo per il programma nazionale di ricerca e progetti di rilevante interesse nazionale (prin)”. Project code 2022HBXLTR, CUP B53D23006020006.
Principal Investigator: Marco Fellin, CNR-IBE
Work group @ CNR IBE: Edoardo Giacobbo, Andrea Polastri, Jarno Bontadi, Ignazia Cuccui
Project partners:
Emanuele Sartori, Roberto Scotta, UNIPD - Università degli Studi di Padova
Gianluca Lopez, MUSE Museo delle Scienze di Trento