Earthquake Sensor Breakout Board – Omron D7S

Breakout board built around the Omron D7S, the smallest seismic sensor in the world. The D7S contains a three-axis accelerometer, of which only two axes are used while an earthquake is being detected; they can be selected by the user or automatically, according to how the sensor is tilted.

SKU 7100-BREAKOUT019EAN 8219671092586Item type: Assembled,

Description

Breakout board built around the Omron D7S, the smallest seismic sensor in the world. The D7S contains a three-axis accelerometer, of which only two axes are used while an earthquake is being detected; they can be selected by the user or automatically, according to how the sensor is tilted.
The SDA, SCL, SET, INT1 and INT2 pins of the D7S are brought out to the 6-pin header, while three status LEDs (power, INT1 and INT2) are fitted on the breakout board. The I²C bus lets any microcontroller fitted with it, Arduino included, change the sensor settings or read the earthquake data. The SET pin can easily be wired to a push button, with no need to worry about the pull-up resistor because it is already provided on the breakout board, and pressing it puts the sensor into initial installation mode, which avoids having to use the I²C bus for that. Connecting it to Arduino is very simple: just wire the sensor supply pins (VCC and GND) to the Arduino 5V and GND pins, and then the SDA and SCL pins (on the Arduino UNO the I²C bus pins are A4 and A5 respectively).
Arduino can also handle interrupts, a very useful feature to pair with this sensor because it allows an instant reaction to the events generated by the D7S. To use it, just connect Arduino pins 2 and 3 to the INT1 and INT2 pins and register the ISR (Interrupt Service
Routine) on pin 2 for the FALLING event (the transition from logic high to logic low), and the one on pin 3 for CHANGE (both the high-low and the low-high transitions). Power supply: 3.3 V to 5 V.

Warning: the pin header has to be soldered.

Click here to read the full article published in Elettronica In no. 224 – April 2018

Wiring diagram of the D7S sensor with an Arduino UNO.
The push button (normally open type) is optional.

The D7S sensor
One of its most important features is the warning it gives, through the INT1 pin, of seismic events that could have catastrophic effects on electronic equipment; this makes it possible, for example, to switch equipment off before the vibrations caused by the earthquake
can actually cause that damage. Protecting the equipment is essential if, after a seismic event, working apparatus is still to be available to prevent further damage. The signal available from the INT1 contact can also be used to trigger alarms and, why not, to activate mechanical protection for measuring instruments and for the rooms that house them.
The sensor issues two signals: shutoff and ground collapse. The first occurs if the earthquake is judged to be of intensity 5 or above on the JMA (Japan Meteorological Agency) intensity scale and meets the conditions laid down by JEWA (Japan Electrolyzed Water
Association standard JWA) in standard JWDS 0007, appendix 2, while the second occurs if the ground tilts by roughly 20°.

Summary of the register block that holds the earthquake information.

The sensor also has an internal memory holding the data for the last five earthquakes recorded and for the five largest ones, plus of course all the configuration settings. The D7S contains a three-axis accelerometer, of which only two axes are used while an earthquake is being detected; they can be selected by the user or automatically, according to how the sensor is tilted. The presence of an I²C bus lets any microcontroller fitted with it, Arduino included, change the sensor settings or read the earthquake data. The D7S sensor has three function pins in all: two of them (INT1 and INT2) are signalling pins and the third (SET) is a line used to change the operating state. Before using the sensor the initial installation procedure has to be carried out: the sensor must measure the offsets
of the selected axes and store their value in the internal memory; these offsets are then used to identify the collapse condition, by comparing them with the current ones when the seismic event is detected.
After the initial installation stage the sensor goes into standby until an earthquake starts, when it begins computing the data for the event; it stays in this state until the earthquake is judged to be over. At that point the internal memory is updated with the newly acquired data.
Every time it is powered up, the sensor goes into offset acquisition mode and determines whether the collapse condition has occurred; if it has, it changes the logic state of the INT1 pin, taking it low. If the condition has not occurred, the sensor goes into standby mode and the earthquake detection cycle begins.

Summary of the status and configuration registers

It is worth pointing out that the collapse condition is not checked only when the sensor is powered up, but every time the sensor goes into standby; it also remains possible to force the collapse check by putting the sensor into offset acquisition mode.
The data the sensor computes for each seismic event are PGA (Peak Ground Acceleration), SI (Spectral Intensity) and the average ambient temperature at which the event took place. While the computation is running, that is during the earthquake, the instantaneous PGA and SI values can be read from a few specific registers.
A self-test function is built into the sensor, very useful to check that the D7S is working correctly, but it has to be started by hand by writing a register over the I²C bus. At every offset acquisition the sensor automatically determines whether the operation succeeded; if it did not, it updates a specific register and so reports the fault.
The function pins of the sensor are INT1, INT2 and SET: the first, as already noted, signals the shutoff and collapse conditions, while INT2 tells whether the sensor is in standby, whether it is detecting an earthquake, whether an offset acquisition is under way or whether the self-test function has been started.
The last pin, SET, allows the sensor to be put into initial installation mode by an external pulse, without necessarily having to use the I²C bus. When the INT1 pin is taken to logic low by a shutoff or collapse event, the default value, that is logic 1, can only be restored by reading the EVENT register, by running the initial installation procedure or by removing power from the sensor.
Breakout boards

Breakout boards are prototyping boards that carry the component already soldered in place, with its connections brought out to pads that are easy to use in terms of pitch and termination; the connections are normally pads on a 2.54 mm pitch, like those of the classic DIP integrated circuits. To help those who would like to use SMD parts but have neither the means nor the skill to solder them, a number of integrated circuits (sensors, switching regulators, battery chargers, linear amplifiers and so on) have been selected and mounted on ready-to-use boards. These breakout boards are both a help for anyone who wants the best of SMD electronics ready to use in a “traditional” format, and for anyone who, while perfectly able to work with SMD parts, needs them available on prototyping boards to add to existing circuits and run tests, that is to build prototypes using the functions of those chips before making the final printed circuit board of a piece of equipment.

Documentation and useful links

Technical details

Power supply 3.3 V to 5 V
The sensor issues two signals shutoff and ground collapse

You may also like…

About us

Open-Electronics.org is the brainchild of a world leader in hobby electronics Futura Group srl. Open-Electronics.org is devoted to support development, hacking and playing with electronics: we share exciting open projects and create amazing products!

Open-Electronics.org is not just a container of ideas: it is also a web site lead by a team of engineers and geeks who will take part in the discussions and give support.

Our mission is to become a reference Open Source hacking site with ideas and feedback aimed to enrich the community.