Locating the source of a mysterious beep with Claude
In one sentence
The author used Claude Code to build a multi-device acoustic triangulation system, successfully locating a mysterious beep within 40cm to find an old carbon monoxide detector.
Key points
- The author had Claude Code build a Python web app called Beep Locator based on the 2007 BeepBeep acoustic ranging paper.
- The system connects multiple browser devices as listeners via WebSockets, using Fast Fourier Transform to detect beeps and align audio clips for triangulation.
- Development utilized Opus 5.5 on Claude Code Cloud and the newly released Fable 5.2, using a hot-swap mechanism to push new code to listeners in real time.
- The author added rough manual positioning and a clapping test mode, eventually finding a dying carbon monoxide detector within about 40cm.
In depth
An AI-written overview of the original article, not the article itself.
Developer Simon Willison recently used Claude Code to build Beep Locator, a multi-device acoustic triangulation system that tracked down a mysterious intermittent beep in his storage room. Beyond solving a household annoyance, the project demonstrates how to give coding agents "ears" to perceive and debug the physical world.
Locating the Mystery Beep
According to the article, an intermittent beep started coming from a room full of unpacked boxes, making it frustrating to locate by ear. Willison connected five spare devices—two iPads, a phone, a MacBook Pro, and a Surface Ultra—to a Python web server via their browsers to act as listeners.
The system narrowed the sound's origin down to within about 40 centimeters. Digging through that specific pile of boxes, he found an old carbon monoxide detector that needed new batteries.
How the System Works
The system's design draws on BeepBeep, a 2007 acoustic ranging paper. Listening devices connect to the server over WebSockets, maintain a 60-second audio buffer, and use a Fast Fourier Transform alongside a high-pass filter to detect potential beeps.
When a beep is detected, the server instructs the device with the lowest latency to play a short chirp, allowing all listeners to align their uploaded audio clips for triangulation. Willison also added a "Rough mode" to drag device icons into approximate positions on a map, a clapping mode for testing, and a replay feature to confirm and track the target beep.
Giving Claude Code Ears
Willison started the project on his iPhone using Opus 5.5 and later iterated on his laptop with the newly released Fable 5.2. To avoid re-triggering browser microphone permission prompts on page reloads, the system included a hot-swap mechanism that pushed new JavaScript code directly to listeners over WebSockets.
Although Claude lacks native audio input, this setup allowed the coding agent to autonomously query audio logs and reconfigure its listening code, effectively giving it ears to solve a real-world problem.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.