This is the D7S Seismic Earthquake Sensor. D7S sensor uses 3-AXIS acceleration sensor developed by OMRON’s unique SI (Spectral Intensity) value calculation algorithm which it has a high correlation with SIS Seismic Intensity Scale that indicates the magnitude of an earthquake that provides higher precision of seismic intensity. This sensor has two opendrain output in pin INT1 and INT2 that turns active into LOW when it’s off condition and collapse detection condition when detected at intensity 5 or higher, the INT2 goes active LOW during earthquake calculation for offset acquisition and self-diagnostic handling. This device use i2C for communication with the sensor for settings and tracking down earthquake related information. The sensor is useful on fire prevention, secondary disaster after an earthquake hits.

Required Component to Test

  • Arduino Microcontroller, NodeMCU, Teensy Board, TeensyDuino, ESP8266 12, 12E, ESP8266 NodeMCU, ESPDuino, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266, ATMEGA250 16 MHz, ATSAM3x8E, ATSAM21D, ATTINY85 16/8 MHz (Note: The Diagram below is using NANO. (please refer to the respective pin-outs)
  • D7S Seismic Sensor
  • 10uf Capacitors (Optional)
  • 10k Resistors
  • Jumper Wires / DuPont Wires
  • Prototyping PCB board (for soldering manually)

Wiring Guide

Source Code

i2C/TWI Scanner


  • Download D7S Vibration Sensor Datasheet | PDF
Wiring D7S Seismic Earthquake Detection / Mapping Intensity / Vibration Sensor on Microcontroller
Tagged on:         

4 thoughts on “Wiring D7S Seismic Earthquake Detection / Mapping Intensity / Vibration Sensor on Microcontroller

  • at

    I just wired my D7S completely wrong because your wiring diagaram neither shows pin numbers nor does it state that the wiring diagram is showing the sensor from the bottom side! Fortunately the sensor is still working after wiring it correctly.

  • at

    You also have to connect VCC pin9 to 3.3V or 5V. So both GND on pins 6 and 10 and both VCC on pins 1 and 9 should be used and not be left hanging. Otherwise I2C is not working. Took me a while to get it.

  • at

    My sensor is not working although I have connected the same to the scheme? Can you give me a solution?


Leave a Reply

Your email address will not be published. Required fields are marked *