How to Make a Simple Seismograph

8.2K8014

Intro: How to Make a Simple Seismograph

In this tutorial, I present the construction of a seismograph with simple materials and available to anyone. Since I had the mechanical support left over from the previous project (Music box), I built the mechanical gears using the same components. A simple project for beginners and students.

STEP 1: Schematic Diagram

The electrical diagram is shown in the attached image. Accelerometer MPU6050 connects to the SCA, SCL inputs of Arduino boards, pins A4=SDA and A5=SCL. The output for the servomotor is in pin D7. Pins D2, D3, D4, D5, connect to the ULN2003 motor driver. The LED and the resistance of 470 ohms are optional, they indicate the time that the stepper motor is in operation. The command for the LED is in pin D8 of the Arduino board.



STEP 2: The Code

The code is built with the help of Visuino software, a simple and intuitive program to use. The code is very simple: the gyroscope output of the accelerometer is passed through an analog multiplier (Multiply analog value) and inserted into an analog map to reduce the movements of the servomotor within the limits of the mechanical construction. The "Map Range" output controls the servomotor and a comparator that sets the stepper motor in motion only when it detects motion. After 5 seconds from the cessation of movement, the delay component resets the "Timer" that keeps the stepper motor moving, stopping the release of the paper on the support.

You can find in the attachment the code in the format for Visuino as well as in the INO format for the Arduino IDE.

If you want to load the code from the IDE, you will have to copy the "Mitov" folder that contains the "h" files and the libraries used in the folder with the Arduino libraries, "Documents-Arduino-libraries" Download from here: https://app.box.com/s/noenwiiighaxkcigvlset1ydcrsoec84

https://www.visuino.com/downloads/

STEP 3: Mechanical Construction

The mechanical construction is as simplistic as possible. Some pieces of wood, a hose, some plastic tubes. I have attached some pictures from the mechanical assembly. Of course, for the most demanding, another, more complex mechanical assembly can be developed. It is important that the mechanical guide moves the paper on which the marker draws the movement graphic. The mechanical assembly is the most important part of this project.


STEP 4: Start the Device

  • Cut a piece of cardboard or paper with the width of the mechanical assembly and the length of 50-60 cm. This length should ensure a minimum of 3 minutes of movement printed on paper. A roll would increase the printing time by hours. Anyway, after 5 seconds from the end of the movement, the stepper motor stops, stopping in turn the movement of the paper on the support.
  • Put the tip of the marker on the paper and gently move the MPU6050 sensor. The stepper motor starts the movement and the servo motor will move the marker, printing the graphic of the movement on the paper. The MPU6050 accelerometer will be fixed firmly, on a support that ensures good mechanical stability. If you liked my project, please leave a like and a share. Thank you!


13 Comments

ho un problema con le librerie nello sketch usando arduino si possono avere tutte le librerie grazie in anticipo
Interesting.
May write some normal Arduino c++ for this.
I don't know how I could do that, it would mean losing 2 seconds of the seismogram. If you look at the characteristics of an earthquake, you will notice the so-called P wave, which always appears at the beginning of an earthquake before the S wave. It would mean that this wave should not be observed on the seismogram.
did you mean to reply to Erwinv1?
Wait? What?
Hello, I have also attached the code in the format for the Arduino IDE.
Thank you!
Would you consider posting the code directly in the instructable in code tags?
Thanks!
Cool project! I'll adapt it to receive audio signals and draw audio wave instead :D
OOoooOOOooooh, cooOOool idea! I think over time - as a real seimograph would be - probably wouldn't use a felt tip pen since it'd be on all the time? Would this work with a ballpoint pen? Or even a crayon?!?!
For audio, search my secondary channel, Quintrix, on youtube. I don't use it anymore, but I have a seismograph there exactly as you want. It is only with an LM358 without Arduino and records the seismogram on a free audio software, Audacity.
Now it's starts drawing at the moment of movement. Should be nice if a sampler is buffering (by example 2 seconds) and starts drawing there. You will have a full spectrum.
Nice project.
A good use of the Arduino.