Raspberry Shake is a great project for budding geologists and citizen scientists because it’s relatively simple to assemble (although you do need to be careful to handle and level the parts correctly).
Once built, it’s low maintenance, sitting in a quiet part of your home or office, waiting for the earth to move. And all that time, Raspberry Shake is gathering data, which you can investigate using the new web interface – or you can dive in and play around with the data directly.
We interviewed Branden Christensen, CEO of Raspberry Shake and seismologist, back in 2018. You can also find a tutorial in The MagPi issue 60.
In the last two years, Raspberry Shake has come along leaps-and-bounds and it now has a powerful web interface, app interface, and a thriving international community. We think it’s time to revisit Raspberry Shake.
This month we’re looking at assembling Raspberry Shake and sharing your data with the wider Shake community.
You can buy all the parts for Raspberry Shake separately (see the ‘You’ll Need’ info) or pick up a turnkey system with all the parts included. You can even buy a fully assembled system, but we think that takes all the fun out of things.
You’ll Need
Step 01: Wire up the geophone
Start by wiring up the RGI-4.5Hz geophone. Ours has two wires: grey and blue. Make sure the wires are twisted and connect the grey cable from the positive ‘+’ connection on the geophone to the ‘+’ pin on the RS1D Raspberry Shake board. Next, connect the blue wire to the ‘-’ connection. Take care not not over-tighten the screws, otherwise you may damage the wires.
Step 02: Put Raspberry Pi in the enclosure
Take the bottom of the enclosure and attach the four shorter stand-offs. Tighten them by hand. Place your Raspberry Pi board on top of the four stand-offs using the holes in the Raspberry Pi.
On top of three of the holes, you need to place a washer and the longer stand-offs (the hole in the middle has just a washer and screw). Take a look at the assembled Raspberry Shake (Figure 1) to see which one doesn’t need the large stand-off. Now insert your microSD card. If you bought it from Raspberry Shake, it will be pre-installed with Raspberry Shake software. Otherwise, flash a card with the image file.
Step 03: Attach the geophone
Place the geophone in the hole on the bottom of the enclosure with the wires on the top. Separate the two wires so there is a gap between them. Now place the plastic strap on top of the geophone to hold it in place. Use two washers and two screws to fix the clear plastic strap to the bottom of the enclosure.
Step 04: Attach Raspberry Shake
Connect the RS1D Raspberry Shake board to Raspberry Pi’s GPIO pins. The board has only a 26-pin header (like the original Raspberry Pi Model A and B); most Raspberry Pi boards have 40-pin GPIO, so you’ll need to make sure you are connecting the RS1D Raspberry Shake to the correct pins. The board connects to the end of the GPIO pins where the microSD card is (leaving those pins towards the USB sockets free).
Make sure the Raspberry Shake board orientation is correct (the wires to the geophone should be near to the USB ports). If in doubt, take a close look at Figure 1 below.
Now clip in the sides of the enclosure. Look carefully at the holes in each side: the small hole is for the microSD card, the medium hole is for the HDMI port and power, and the large hole is for the Ethernet and USB sockets.
The lid of the enclosure has three holes in it, which will line up with the long stand-offs (from Step 02). Use three screws to hold the lid in place. It’s recommended to ensure the Raspberry Pi Shake is fully enclosed to prevent any wandering of the results.
Step 05: Levelling Raspberry Shake
The Raspberry Shake enclosure comes with three holes protruding from the sides. These are used to level the device with the levelling feet. If you bought an official enclosure, it will come with a small spirit level on the base. Use a screwdriver with the levelling feet to ensure that the bubble in the spirit level is inside the black circle.
Step 06: Position the Raspberry Shake
The device is designed to be left running 24 hours a day, monitoring for earth tremors. So you’ll want to find somewhere out of the way. With the Raspberry Pi 3B included in the kit, you should use an Ethernet connection to the router, to avoid possible wireless LAN interference to the geophone (this is not an issue if using a Raspberry Pi Zero or 3B+).
You’ll need to run an Ethernet wire directly from Raspberry Shake to your router. We used Devolo DLAN Powerline adapters to extend our Ethernet connection across the electrical wiring. We positioned our Raspberry Shake in the conservatory to the rear of our home.
According to the makers of Shake: “For best results, install your Raspberry Shake on a bare floor (no carpet) and not on top of your desk. A good location for the Shake would likely be on the concrete slab of the lowest floor, near a foundation wall and away from furnaces, washing machines, air conditioners, and such.”
Step 07: Power up
With Raspberry Shake in position and connected to your router, use the power adapter to turn on Raspberry Pi. A blue light will appear on top of the Raspberry Shake board. You don’t access Raspberry Pi directly with a keyboard and screen – instead, it is set up for remote connection over your network. Open a web browser from another computer on the network, and go http://rs.local (don’t forget the ‘http://’ part. (Note that ‘rs.local’ replaces the former ‘raspberryshake.local’)). You will see the Raspberry Shake web interface.
Step 08: Change SSH and setup
The default SSH username and password are ‘myshake’ and ‘shakeme’. Default SSH passwords are a security risk, so we’re going to change it. Click the Actions icon near the top of the interface, then click on the Actions tab. Now click Change SSH Password. Enter the current password ‘shakeme’ and then your new password. Press ENTER to save the new password.
See ‘Ready, Set, Get Hacked!’ on the Raspberry Shake website for more information on security.
Step 09: Join the team
With your Raspberry Shake password changed, you can turn on data sharing and join the Raspberry Shake community. This enables you to share your data with the citizen science project.
Click Home and Settings. Fill out your details in the General section and click Set Location. The location data is randomised by a couple of hundred yards to preserve privacy.
Finally, enter the floor that the device is on – this is zero-indexed, so 0 is the ground floor – and how many floors you have in the house.
Now click the Data tab and tick the box marked ‘Forward Data’. Read the licensing information and click Save and Restart. Raspberry Shake will restart (you may be prompted to enter your new SSH password from Step 08).
Step 10: Earthquake and Station View
Now that you’re part of the wider Raspberry Shake community, it’s time to take a look at earthquake activity around the world. Click Raspberry Shake Earthquake View to see a global map. The circles indicate earthquake activity. The colour of the circle corresponds to its depth, with red circles showing it’s closer to the Earth’s surface. The size of the circle indicates its severity. Click on any circle to see more information.
If you want to see all the Raspberry Shake devices (including your own), make a note of your station number and click on the Station View icon. Here you will see all the devices running in the world. Click any device to view its data.