Skip to content

webboggles/tildagon-seismograph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Seismograph

A real-time seismograph app for the Tildagon badge that turns the onboard BMI270 IMU into a vibration sensor with a scrolling waveform display.

Features

  • 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

Controls

Button Action
UP / DOWN Cycle views: X → Y → Z → MAG → Credits
CONFIRM Jump to credits
CANCEL Back from credits / exit app

Install

From the app store

Search Seismograph in the Tildagon app store once it appears (~15 min after release).

Manual install via mpremote

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.

How the Richter value works

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.

Licence

CC-BY-NC-4.0 — free to use and modify for non-commercial purposes with attribution.

Built by weborder.uk

About

IMU seismograph app for Tildagon badge

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages