A real-time seismograph app for the Tildagon badge that turns the onboard BMI270 IMU into a vibration sensor with a scrolling waveform display.
- Live waveform — 100-sample scrolling plot from the accelerometer, updated at ~20 Hz
- Auto-scaling — Y-axis range smoothly tracks the signal so small tremors and heavy shakes both fill the screen
- Richter readout — approximate magnitude (R0.0–R9.9) derived from peak acceleration, colour-coded green/yellow/red
- Axis cycling — switch between X, Y, Z, and combined magnitude with UP/DOWN
- 3D wireframe — spinning split-cuboid above the title, rendered in real time
- Credits screen — Web Order logo with IMU-driven parallax, accessible via CONFIRM or by cycling past MAG
| Button | Action |
|---|---|
| UP / DOWN | Cycle views: X → Y → Z → MAG → Credits |
| CONFIRM | Jump to credits |
| CANCEL | Back from credits / exit app |
Search Seismograph in the Tildagon app store once it appears (~15 min after release).
mpremote mkdir apps/seismograph
mpremote cp app.py :apps/seismograph/app.py
mpremote cp logo.png :apps/seismograph/logo.png
Hold the reboop button for 2 seconds to restart, then select Seismograph from the menu.
The app tracks peak deviation from the running baseline and maps it logarithmically:
R = clamp(0, 9.9, 3 + log10(peak) * 2)
This is a toy approximation — not a calibrated instrument — but it gives satisfying numbers when you shake the badge.
CC-BY-NC-4.0 — free to use and modify for non-commercial purposes with attribution.
Built by weborder.uk