← Back to the Workshop

Tremorbell

A tiny, friendly seismograph. Tremorbell listens to your device’s motion sensors, draws every wobble as a live trace and turns it into a Richter-style local magnitude — plus the shaking intensity people would actually feel.

Theme
Sleeping
Sensor: not started

Press Wake the bell and give the page permission to use motion sensors. No sensor? Try demo mode — it shakes for you.

Local magnitude ML

Quiet as a sleeping cat

Peak this session

No tremors yet

Ground acceleration

gal

1 gal = 1 cm/s² · gravity ≈ 981 gal

Felt intensity MMI

Nothing to feel

Where you are on the Richter scale

Controls

Tremor log

How the maths works

  1. Read the sensors. The browser’s devicemotion event reports acceleration on three axes, typically 30–60 times a second.
  2. Remove gravity. A slow-moving average of each axis is subtracted, so only the shaking is left — that is a simple high-pass filter.
  3. Find the peak. The largest vector magnitude in the last moment becomes the peak ground acceleration (PGA), converted from m/s² to gal (cm/s²).
  4. Estimate the wobble’s frequency by counting zero crossings, then turn acceleration into ground displacement with d = a / (2πf)².
  5. Simulate a Wood–Anderson seismograph — the instrument Richter defined his scale on — by multiplying that displacement by its 2080× magnification.
  6. Apply Richter’s formula with the Hutton & Boore (1987) attenuation: ML = log₁₀(A) + 1.11·log₁₀(d) + 0.00189·d − 2.09, where A is the trace amplitude in millimetres and d the distance in kilometres.
  7. Felt intensity comes from Wald et al. (1999): MMI = 3.66·log₁₀(PGA) − 1.66.

A gentle warning: phone and laptop accelerometers are toys next to a real seismometer. They are noisy, they clip, and they cannot tell your footsteps from the crust of the Earth. Tremorbell is for curiosity and delight — never for safety decisions. For real alerts, follow your national seismic service.