Skip to content
steckerhalterPublic

About

unruh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Unruh Timegrapher Logo

⏱️ Unruh — Precision Watchmaker Timegrapher

WARNING: THIS IS UNDER EARLY DEVELEPOMENT AND CONTAINS BUGS
To help with the development either open issues or see the development section.

Webapp: https://steckerhalter.github.io/unruh/

Unruh is an open-source, web-based mechanical watch timing and diagnostic tool. Designed for watchmakers, restorers, and horology enthusiasts, Unruh leverages high-sample-rate web audio processing to measure mechanical movement performance—including daily rate error ($\text{s/d}$), balance amplitude, beat error, and acoustic signature identification—directly from your browser using standard piezo acoustic sensors or high-sensitivity microphones.


✨ Features

  • 📊 Live Rate Oscilloscope: Real-time rate trend visualization equipped with continuous moving-average smoothing, customizable observation windows ($15\text{s}$ to $1\text{h}$), and dynamic 5-second scale auto-locking.
  • 🎧 Acoustic DSP Engine: Multi-stage signal filtering pipeline featuring a configurable high-pass filter, a 2–16 kHz pallet band-pass (default 4.5 kHz), dynamic noise gating, and adaptive threshold peak detection.
  • 🔍 Movement Diagnostics: Instant live calculations for:
    • Daily Rate Error ($\text{s/d}$): Instantaneous and windowed average rate drift.
    • Beat Error ($\text{ms}$): Symmetry calculation between tick and tock impulse intervals.
    • Balance Amplitude ($^{\circ}$): Lift-angle based calculation for balance wheel rotation.
  • 🏷️ Acoustic ID & Auto-BPH Detection: Frequency domain identification tailored for common Swiss, Japanese, and vintage calibers (e.g., ETA 2824-2, Sellita SW200, Miyota, Seiko).
  • 🕹️ Real-Time Controls: Interactive crosshair probe tooltips, graph pause/resume tracing, and single-click history clearing.

💻 Usage Instructions

  1. Open the Webapp: Goto https://steckerhalter.github.io/unruh/ in your browser.
  2. Attach Microphone: Clamp your piezo microphone firmly to the watch case, crown, or movement holder.
  3. Select Lift Angle: Set the balance lift angle to match your watch caliber's specification (default is $52^{\circ}$).
  4. Start Live Mic: Click Live Mic to initialize audio stream capture.
  5. Adjust Input Gain: Raise the gain (shown in dB) until the level meter peaks at 60–80 %; if it shows CLIP, come down. The trigger then follows the noise floor automatically.
  6. Observe Trace: Allow the rate oscilloscope 15–30 seconds to establish a stable rate trend line.

🎛️ Reference setup (the bench chain)

The reference recordings in public/recordings/ and the live measurements on the bench were made with this chain:

  • Audio interface: Behringer U-Phoria UMC22 (USB, 48 kHz)
  • Sensor: a custom-built full-contact piezo clamp, plugged into the UMC22's XLR mic input
  • Gain: the UMC22 microphone preamp turned fully up; the app's Input Gain is only a trim on top of it. Set it so the level meter peaks at 60–80 % and never shows CLIP.
  • Measured SNR: ≈50 dB, which is the practical limit of this chain.

Emilia AS1361 dial-down in public/recordings/ is the reference take for this setup: 18,000 bph, 1.4 ms beat error, +26 s/d. The older recordings in the same folder were made with a chamber-style recorder (acoustic, through air), so their levels and noise floors are not directly comparable — which is why the app normalises every recording to the same peak before analysis.

Everyday use only needs Live Mic and one gain setting; the rest of the calibration panel is for matching the pallet filter to a different sensor.


🧑‍💻 Development

This guide is for local installation and development. If you don't need that, you can use the online version directly in your browser: https://steckerhalter.github.io/unruh/

Prerequisites

  • Node.js (v18.0.0 or higher)
  • npm or yarn
  • An external acoustic pickup (a piezo contact microphone clamped to the watch case is recommended for best results).

Installation

  1. Clone the repository: bash git clone https://github.com/steckerhalter/unruh cd unruh

  2. Install dependencies: bash npm install

  3. Start the development server: bash npm run dev

  4. Open in browser: Navigate to http://localhost:3000/unruh/ in a Chrome, Edge, or Firefox browser (Web Audio API permissions required).


🤝 Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request for new caliber presets, acoustic filtering enhancements, or UI improvements.

  1. Fork the Project
  2. Create your branch (git checkout -b branch)
  3. Commit your changes (git commit -m 'dirty dozen optimization')
  4. Push to the Branch (git push origin branch)
  5. Open a Pull Request

📜 License

Distributed under the MIT License. See LICENSE for more information.

About

unruh

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages