Did you know that you can use your mobile phone as a basic seismometer (to detect earthquakes)? our iPhone, iPad and most newer mobile phones can work as basic seismometers, the same instrument that is used to measure the magnitude of earthquakes and volcanoes. You don't need any app. You just need your built-in web browser like Google Chrome, Mozilla Firefox, Internet Explorer, Safari, etc. so you can begin being a seismologist.
How to Detect Earthquakes Using Your Mobile Phones
Launch Google Chrome or the Safari browser on your mobile phone (or tablet) and then open this page. You should see a continuously moving waveform but if you slightly shake or tilt your mobile device, simulating seismic activity, the graph will capture these movements in real-time much like a seismograph.
Most newer mobile devices have built-in accelerometers and gyroscopes and as you move the physical hardware, the changes in the orientation of the device and acceleration are detected by the browser which are then mapped into the seismograph.
The orientation and motion data are in turn captured by the HTML5 DeviceOrientation and DeviceMotion events of the browser. This works mostly on mobile devices but if you are using Google Chrome on the desktop, you can turn on the Accelerator option under Sensors inside Chrome Dev Tools to simulate motion.
Note: The code was originally published on isthisanearthquake.com in 2011 but the domain is no longer available.