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 (
-
📊 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.
-
Daily Rate Error (
- 🏷️ 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.
- Open the Webapp: Goto https://steckerhalter.github.io/unruh/ in your browser.
- Attach Microphone: Clamp your piezo microphone firmly to the watch case, crown, or movement holder.
-
Select Lift Angle: Set the balance lift angle to match your watch caliber's specification (default is
$52^{\circ}$ ). - Start Live Mic: Click Live Mic to initialize audio stream capture.
- 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.
- Observe Trace: Allow the rate oscilloscope 15–30 seconds to establish a stable rate trend line.
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.
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/
- 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).
-
Clone the repository:
bash git clone https://github.com/steckerhalter/unruh cd unruh -
Install dependencies:
bash npm install -
Start the development server:
bash npm run dev -
Open in browser: Navigate to
http://localhost:3000/unruh/in a Chrome, Edge, or Firefox browser (Web Audio API permissions required).
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.
- Fork the Project
- Create your branch (
git checkout -b branch) - Commit your changes (
git commit -m 'dirty dozen optimization') - Push to the Branch (
git push origin branch) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.