How To Use A Geophone With Raspberry Pi and an ADC - Seismic and Footstep Detection

Simply, think of a Geophone (also known as jugs, pickups, and tortugas) as a super-low frequency microphones for the ground. Used globally as acoustic Earthquake detectors, they react to any ground vibrations. These vibrations can come from seismic waves, passing footsteps or dropped pens.
Full Article (with scripts and terminal commands) - core-electronics.com.au/guide...
Related Information
Set Up a Raspberry Pi as a Desktop Computer - core-electronics.com.au/guide...
Digital and Analogue Signals With Raspberry Pi - core-electronics.com.au/guide...
Raspberry Pi High Quality Camera, First Photos and Videos -core-electronics.com.au/guide...
How to use Raspberry Pi Imager - core-electronics.com.au/guide...
Use Your Phone to Control Your Raspberry Pi - core-electronics.com.au/tutor...
Geophones are remarkably simple and ingenious devices. Geophones typically contain a spring-mounted wire-coil mass that is free to move (up and down) within the field of a case-mounted permanent magnet (see this in the image below). The active element of the device is the wire-coil mass hanging on the spring. When the ground shakes (let's say due to an earthquake) the spring-mounted mass has inertia and wants to remain still. As the Earth continues to move, the magnet displaces freely up and down around the spring-mounted mass. This displacement creates a changing magnetic field which produces a measurable electrical voltage signal in the coiled wire. These voltage changes occur very quickly. As the voltage is the result of a natural phenomenon it results in a pure analogue signal.
Now as incredible as Raspberry Pi Single Board Computers are by default they have no way of reading pure Analogue signals. Thus we will need an ADC (Analogue to Digital Converter) to be the translator between these two systems. An ADC converts analogue signals into a digital representation so that they can be read and processed. Most sensors like temperature, sensor, sound or force produce analogue output voltages and the Geophone is no exception.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Geophone SM-24 - core-electronics.com.au/catal...
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - core-electronics.com.au/raspb...
Raspberry Pi Model B 2GB (used here): core-electronics.com.au/catal...
Raspberry Pi 4 Model B 8GB: core-electronics.com.au/catal...
Adafruit ADS1115 ADC (the new Revision is on a Black PCB! Pins are labelled similar)- core-electronics.com.au/catal...
Other Great ADCs - core-electronics.com.au/catal...
DuPont Jumper Cables - core-electronics.com.au/catal...
Solder-less Breadboard - core-electronics.com.au/catal...
Raspberry Pi 4 Power Supply: core-electronics.com.au/catal...
0:00 Intro
0:32 Geophone Overview
1:25 ADC Overview
2:02 What You Need
3:01 Assembly of Hardware
6:41 Software Set Up
8:52 Download Example Scripts
9:20 Live Output Plot Script
11:32 100 Samples/24 Hour Record Script
13:58 Taking a Photo Based on Footsteps
16:07 Where to Now
16:39 Outro

Пікірлер: 82

  • @adamskamal
    @adamskamal2 ай бұрын

    excellently clear, thank you for this video

  • @rankinstudio
    @rankinstudio Жыл бұрын

    Great video! Thanks!

  • @rverm1000
    @rverm100010 ай бұрын

    cool project! worth trying out

  • @BR.
    @BR.2 жыл бұрын

    Very good!

  • @paulb36utube
    @paulb36utube2 жыл бұрын

    That’s pretty cool. My house shakes from nearby roads so that would be going off. Would love to see a twin axis joystick project using Hall effect sensor joysticks like those used in remote control drones ie 2 joysticks for space sims.

  • @cbrhubs9245
    @cbrhubs9245 Жыл бұрын

    You've done a really good job explaining and demonstrating.thanks.

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Cheers mate 😊 hope it helps you!

  • @paul.gagniuc
    @paul.gagniuc2 ай бұрын

    Nice !

  • @donatasismanus6056
    @donatasismanus60562 жыл бұрын

    Thank U !!

  • @astrovivek
    @astrovivek6 ай бұрын

    Hello, your videos are very informative. I am new to raspberry pi, but your videos help me understand a lot of terms. Could you please create a video on how to work with TDS and PH analog sensors? I did not find any video that work with these sensors using raspberry pi. Thanks again.

  • @luiscarlserrat
    @luiscarlserrat Жыл бұрын

    Thanks for such a great tutorial and help with rasberry pi python, believe me when I say that your existence helps the knowledge production around the world and in that sense the humanity itself .

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Golly Big Thank You! Very very rad Comment 😊 Take care and stay cozy Luis!

  • @vz4384
    @vz43849 ай бұрын

    Very interesting project! I am curious, I have geophone strings and was wondering can this help somehow to test whether they are in good condition? That would require some additions to this system I guess. 🤔

  • @593Thresher
    @593Thresher Жыл бұрын

    Great video! Thank you! I've seen several references that specify this ADC module's max voltage as 5V. In my case, the module will be used in conjunction with a different MC and will be be bit-banged. If I can use it at 5V it will make my life much easier - any info would be appreciated.

  • @CRingsing
    @CRingsing2 жыл бұрын

    Nice ! And very well explained. It inspired an idea. With 3 geo phones and 3 ADC’s, it should be possible to triangulate an exact position of any vibration in a 2D field, assuming the speed of vibration (m/sec) is consistent through the media (ground). I can see some applications for that in terms of trespass monitoring, actually plotting a route through a monitored area…..

  • @Core-Electronics

    @Core-Electronics

    2 жыл бұрын

    I love that idea! 😊 That would make for an incredibly powerful system. Usually when three Geophones are combined in a singular system they all face a Primary Axis (X, Y, Z directions) close together but I really like the idea of using three to encircle and protect an area. Three in that configuration would also make it possible to figure out what is internal within the area shocks/vibrations and what are external.

  • @gratefulamateur1393

    @gratefulamateur1393

    Жыл бұрын

    Actually it is almost impossible to do this with the accuracy you want. Things like rocks, roots, and varying soil composition radically change prop times due to reflections between the sensors. if you get it to work the army would really like to talk to you! 😊

  • @cozy413
    @cozy4132 жыл бұрын

    I love the video, do you have any suggestions on what kind of projects someone could use the sensor in?

  • @Core-Electronics

    @Core-Electronics

    2 жыл бұрын

    Underground Mining Early Warning Systems

  • @rverm1000
    @rverm100010 ай бұрын

    i made a relay into a geophone years ago and attached it to a fishing pole. it didnt wornt work all that great. had drifting problems with the way i had it hooked up.

  • @123123mike
    @123123mike6 ай бұрын

    Could this be used to detect low frequency music sound, like sub-woofer?

  • @franciscogaray2129
    @franciscogaray212910 ай бұрын

    A question? to measure vibrations the ads1115 is not very poor in resolution?

  • @natanaelalfaputra_te_0559
    @natanaelalfaputra_te_05598 ай бұрын

    hello, i would like to ask you about microcontroller. on this project, can us change the Raspberry with an esp32 or arduino ?? thank you..

  • @liamjonah02
    @liamjonah02 Жыл бұрын

    Do you recommend any other ADCs to use?

  • @prabaldas1859
    @prabaldas18592 жыл бұрын

    thanks:)

  • @Core-Electronics

    @Core-Electronics

    2 жыл бұрын

  • @ahmedmuhi896
    @ahmedmuhi896 Жыл бұрын

    thanks, can you gave me code to collect and graph the sound sensor with geophone using the ADS115?

  • @mrudhulreddy8581
    @mrudhulreddy858110 ай бұрын

    Can I get the Dataset you recorded on the seismic sensor.

  • @amoat7
    @amoat7 Жыл бұрын

    can geophones be mounted on a vertical surface like a wall?

  • @betoblanco603
    @betoblanco6036 ай бұрын

    Can I turn it into a microphone/ attach it to a microphone cable?

  • @bagoquarks
    @bagoquarks7 ай бұрын

    At 8:11 you 'sudo pip3' TWO Adafruit libraries onto the Pi. At 9:27 only ONE Adafruit module is 'import'-ed into Python. Is this because a dependency between the TWO is fulfilled outside of Python? Is this the 'Blinka' layer? Great video, thank you.

  • @Fogaca135
    @Fogaca135 Жыл бұрын

    Great tutorial!!! Any suggestion put all stuff inside a 3d printed box without cause reading problems to geophone ? Cheers!

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Cheers mate 😊 Best results comes from placing the ADC directly on the hard ground (concrete floor is commonly where it is placed). Id make a hole in the bottom of the case and pop the Geophone through it, friction fit around the edges. That way the Geophone is having direct connection to the ground and it'll provide the best/most accurate responses.

  • @ricardostocker2012
    @ricardostocker2012Ай бұрын

    excelente es justamente lo que estaba pensando en la mañana y sin buscar me llego este video . no se que sensor loga esto jajja

  • @jacobijewels8089
    @jacobijewels80898 ай бұрын

    If the geo phone is bigger will it sense if you’re in another room ?

  • @sebastianhernandez1144
    @sebastianhernandez1144 Жыл бұрын

    Is there available some kind of documentation for consult if I want to try using another faster language like C++ or if I want to do my own version in python? It would be possible to convert the output data to a seismic format like SAC or mSEED?

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Such a phenomenal 'Where to Now' question 😊 I'll do my best to help, sorry if it is a longer reply than expected. The most established Open source seismology toolbox and library written in Python that I know of is Pyrocko - pyrocko.org/ - Pyroko will be able to help you format the values out of the Geophone into SAC or mSEED Standards. The Pyrocko Snuffler Application is of particular interest as it will display Seismic Waveforms in real time - pyrocko.org/docs/current/apps/snuffler/tutorial.html#live-seismograms More on Data Formats regarding Seismometers (although you seem well versed 😊) - ds.iris.edu/ds/nodes/dmc/data/formats/#miniseed Scripts to write ASCII data into MSEED file using Obspy - www.earthinversion.com/utilities/write-ascii-to-mseed/ In regards to C++ here is a Script that allowing rapid characterization of seismic sources, (the wiki examples linked on that page are worth a look too) - github.com/eost/wphase Also I must shout out the Raspberry Shake Project and their open source scripts, a lot can be learned from their GitHub! - github.com/raspishake

  • @Voidy123
    @Voidy123 Жыл бұрын

    With 3 of those and some triangulation code, you can geo locate a person on a property. By teaching it with AI you can tell who or what is walking there.

  • @mattinmajid9206
    @mattinmajid9206 Жыл бұрын

    Very well explained! Can we use this system with a alarm with it? For example when it detects any movement above a certain level, it will cause the alarm to go off. Please reply.

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Absolutely, you could create a threshold in your code that when detected can trigger all sorts of things, an audible buzzer or perhaps send an email to you.

  • @mattinmajid9206

    @mattinmajid9206

    Жыл бұрын

    @@Core-Electronics i want to build a earthquake detector using a geophone and the raspberry pi that you used. Can you please help me?

  • @brainitinstitute
    @brainitinstitute Жыл бұрын

    Congratulation bro, How can I use geophone for earth quake signal

  • @WilhelUM12
    @WilhelUM122 жыл бұрын

    Looks real good, engineering and research instruments use 3 channels(X, Y, and Z), and really powerful sistems can have up to 9 (3 acc, 3 vel, and 3 displacement) channels how would you connect the 3 channels to one raspberry pi? Perhaps using three ADC's? Anyways Great work! I have always wondered how these worked

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    A Raspberry Pi 4 Model B would definitely be capable of X, Y and Z measurements from three Geophones. Running 9 Separate Geophones on a Raspberry Pi Single Board Computer, that I have no idea if it would be possible. Communication from the ADC is all through I2C so enables many many devices to be connected up so communication avenues wouldn't be a limiting factor.

  • @WilhelUM12

    @WilhelUM12

    Жыл бұрын

    @@Core-Electronics in such configuration would you use only one ADC connected to the three geophones?

  • @gratefulamateur1393
    @gratefulamateur1393 Жыл бұрын

    How can the ADC sense negative voltages? It has to have a negative supply connection to do this. Seismometers are normally biased above ground for this very reason. Thanks for the nice work.

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Cheers for your kind words 😊! So the ADS1115 is able to measure negative values or voltages even though it only operates using a single supply. Although the ADS1115 has 16 bit resolution capability, it uses Two's complement to represent a value. The MSB (Most Significant Bit) represents the Sign Bit (+ or -). This is really a 15bit resolution ADC capable of negative and positive voltage measurement (within the GND to VDD supply limitation). Here is a great spiel all about this - www.best-microcontroller-projects.com/ads1115.html

  • @gratefulamateur1393

    @gratefulamateur1393

    Жыл бұрын

    @@Core-Electronics Ahhh. Got it. The actual inputs cannot go below ground but the 2 inputs can go negative relative to each other. duh!!! Thanks

  • @fotiskarelas3321
    @fotiskarelas33216 ай бұрын

    Hi, I am wondering if I want to connect three to get all axis how would I need to connect them to the raspberry and can I use raspberry pi zero? Thanks

  • @Core-Electronics

    @Core-Electronics

    5 ай бұрын

    The Pi Zero has the same pinout and will work, although you may be limited in processing power. If it's form factor that's the issue then a Pi Zero 2 might be a better pick. The ADC board can take in another geophone (the phone needs 2 analog pins and the ADC has 4), so if you want 3 you will need to connect an additional ADC board or one that has 6 analog pins. Hope this helps!

  • @adnanalmoshi6681
    @adnanalmoshi6681 Жыл бұрын

    Hi There, I have been trying follow all the steps that you did. I am using Raspberry Pi 4. I have tried to execute “sudo pip3 install matplotlib” several times however, it freezes the screen and the installation doesn’t progress. Could you please advise me why this has happened?

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Hey, sorry you're having troubles, if you head over to our forum and raise the question our support team will be able to help you out, or one of our knowledgeable community members might be able to point you in the right direction. forum.core-electronics.com.au/

  • @davutkaraca315
    @davutkaraca3152 жыл бұрын

    So cool.💯 What can we do if we need 0.1ms resulution. As far as i can see python is not that fast🤔

  • @Core-Electronics

    @Core-Electronics

    2 жыл бұрын

    You can always use a faster Programing Language like C++. That will increase the max output of the ADS1115 ADC Board.

  • @antoniodippolito9756
    @antoniodippolito975611 ай бұрын

    Is it possible to do the exact same project with a piezoelectric accelerometer istead of a geophone and a different analog-digital converter with a much higher sample frequency (like 10kHz) ?

  • @franciscogaray2129

    @franciscogaray2129

    10 ай бұрын

    you should change the adc 1115 for one ads1256 for example

  • @antoniodippolito9756

    @antoniodippolito9756

    7 ай бұрын

    thank you🙏💪

  • @dabunnisher29
    @dabunnisher29 Жыл бұрын

    I wonder if a D7S-A0001 would be a viable alternative. If anybody knows, that would be a lot cheaper than the Geophone.

  • @adhd_with_pennies4867
    @adhd_with_pennies4867 Жыл бұрын

    This be a good way to deter if someone is nearby in combat scenarios stand next to a wall when someone is walking around a corner your already ready for the action

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Very cool application, that project reminds me of the Alien Motion Tracker 😊

  • @amalshams7610
    @amalshams7610 Жыл бұрын

    Hey, I would like to know if simulating is possible with geophone in any software. If so, can you provide me with the name of the software?

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Hey buddy, do you mean simulation the Geophone Output or Different ways to graph them? Always worth a check is Raspberry Shake - raspberryshake.org/

  • @amalshams7610

    @amalshams7610

    Жыл бұрын

    @@Core-Electronics Thank you! As part of our project, we are using ADS 1262 with rasp pi 4. So could u help with changes that would come with the code?

  • @amalshams7610

    @amalshams7610

    Жыл бұрын

    @@Core-Electronics I would like to know the software u used to simulate the geophone

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Come write up a forum regarding the use of the ADS1262 (we'll best be able to help you there as we can exchange photos of set ups) - forum.core-electronics.com.au/ All software I used to display the voltage emitted by the bouncing Geophone is written in Python, you can download it at the bottom of the full written up article - core-electronics.com.au/guides/geophone-raspberry-pi/

  • @amalshams7610

    @amalshams7610

    Жыл бұрын

    @@Core-Electronics Thank you so much however I would like to know the software u used for simulation of the whole circuit without hardware parts like proteus or tinkercad?

  • @mattdamutt5681
    @mattdamutt56813 ай бұрын

    I had major trouble with software setup. It seems the site page instructions for getting packages is outdated. For example python-dev got replaced by python-dev-is-python3 Also I keep getting hit with some "externally managed environment" error when trying the pip3 command. I'm no expert, so I'm unsure what to watch out for - sometimes a work-around appears to go along nicely enough, but then hits a big error later.

  • @Core-Electronics

    @Core-Electronics

    3 ай бұрын

    Hey Matt, with the new Bookworm OS, we have been forced to use virtual environments (not using one gives the "externally managed environment"). We have a workaround for it here: core-electronics.com.au/guides/raspberry-pi/using-virtual-environments-in-thonny-on-a-raspberry-pi/ Thanks for spotting this, the guide has been updated!

  • @mattdamutt5681

    @mattdamutt5681

    2 ай бұрын

    @@Core-Electronics Looking good, I have been getting things set up well enough and been experimenting. I have noticed the example Python Scripts I downloaded are a little different from what I see in the video. Instead of mV in the graph, it shows a raw Y_range variable with a range of +/- 750 in the program script. What exactly is this value, I think it comes in as a raw number from the ADC reading? Also, some lines of code such as the scale array is missing, as well as the equation where it calculates Voltage. (Edit: I think I can adjust things by writing my own code, I just want to make sure I understand what raw number the program reads from the ADC reader, and work from there.)

  • @elysiummusic.eduard
    @elysiummusic.eduard Жыл бұрын

    Hello! Is there a possibility that this ADS can be connected online, to be able to see its data in the RS network?

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Absolutely! You can display live data/information to a website (that you can access from anywhere in your local network) using this guide right here - www.phidgets.com/education/learn/projects/pi-website-2/#setup You will need to customise above to show the Geophone Data but it'd make for a fantastic project 😊 hit up our project page once you get it working (you may just get $200 store credit!) - core-electronics.com.au/projects/

  • @elysiummusic.eduard

    @elysiummusic.eduard

    Жыл бұрын

    @@Core-Electronics It's elar what you sent because it's not what I asked for. I asked if it is possible to connect (give live data) that ads from this tutorial to the Raspberry shake network

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    Ah I see RS was shorthand for Raspberry Shake! My understanding is the Raspberry Shake Geophone System is tuned a particular way from the factory (Certain Gain. I really wanted to upload data to their phenomenal worldwide tracking system (stationview.raspberryshake.org/#/) but when I last checked I couldn't access this information to tune my system to their standard. I believe it can be done but best to ask them directly for the process. It is definitely in their interest to have a Standard case/setup to ensure purity to their data.

  • @user-ez7gj1fq6h
    @user-ez7gj1fq6h5 ай бұрын

    I have a question, can this sensor be used as a security system?

  • @Core-Electronics

    @Core-Electronics

    5 ай бұрын

    That sounds like you have a project on your hands! You could definitely use it to track foot traffic through an area, maybe wire up a camera and snap a shot when you detect it, or sound a buzzer, but this can definitely be used as the basis of a security system!

  • @user-ez7gj1fq6h

    @user-ez7gj1fq6h

    3 ай бұрын

    Thank you. Can you give me information about the walking distance (normal walking) and the amount of voltage you found?❤

  • @Ayesha_Suleman
    @Ayesha_Suleman Жыл бұрын

    Is this considered as wireless?

  • @Core-Electronics

    @Core-Electronics

    Жыл бұрын

    If I started communicating to our Raspberry Pi system via Morse code I'd be happy to refer to it as Wireless 😋

  • @BVN-TEXAS
    @BVN-TEXAS6 ай бұрын

    You can look at the raspberry shake if you don’t want to do the work.

  • @Maxcraft2013
    @Maxcraft20136 ай бұрын

    You definately need to cut your nails