Claude Code Tracks Down a Mysterious Beep to Within 40cm
Locating the Source of a Mysterious Beep

When an intermittent beep started coming from a room full of unpacked boxes, Simon Willison had Claude Code build Beep Locator: a Python server that turns spare phones, tablets, and laptops into microphone listeners over WebSockets. The devices chirp at each other to calibrate their positions, then triangulate any detected sound on a map. It pinpointed the beep to within about 40cm — leading to an old carbon monoxide detector begging for fresh batteries.
I think the most interesting part of this project is that I demonstrated it's possible to give Claude Code ears.
- chimpontherun
Around '05 or so, the house we were staying in started beeping. Smoke alarm sounds, as usual. For almost a day we couldn't find the source. Contacted the owners -- they didn't know it either. They bought the house few years prior, so not much of a help.
Standing in the hallways listening at different angles, as the article says, didn't help. No Fable in '05 either.
So I had to improvise. Got a ~1 meter stick and two headphones (every headphone is a microphone, even if it sucks as a microphone). Plugged them into the stereo mic port, and started recording in Audacity. The phase shift between L and R pointed directly to the source. Took about 4 or 5 beeps to get the sucker.
Turns out, it was hiding above the ceiling tiles in the garage. My wife still tells this story to all her friends as one of my biggest life achievements. Everything I shipped, the companies I founded -- pales in comparison to finding a dead smoke alarm
- simonw
I didn't mention this in the article, but this isn't the first time my family has been driven almost spare by a mysterious, hard-to-track beep.
Our dog goes outside and hides in the lavender bush if a smoke alarm starts making a "I need a battery" noise.
So I went into this project with the attitude that I would like to solve this class of problem forever.
- tristanj
You can also solve this in O(logn) using a physical binary search:
1) Move half the boxes to another room.
2) Listen for a beep and determine which room the beep comes from.
3) Take the boxes in that room and split them in half again.
4) Repeat until one box is left.
- frumiousirc
I'd like to understand why the auto location mode did not work well leading to the need to introduce "rough mode".
Maybe the directionality of typical speaker and mic spoils an attempt to apply a 1/r^2 fit?
- bdavbdav
I tried building something to find the path and phase difference between multiple speakers recently.
It was nearly impossible to get decent repeatable results.
- Confiks
> I think the most interesting part of this project is that I demonstrated it’s possible to give Claude Code ears
Of course it can analyze audio. I made it detect Marijn Frank saying a high pitched "Hallo" in a much better way that I could have done myself (subtitle matching), namely by frequency analysis, in the process learning how that works with librosa: https://marijnfrankzegthallo.nl
- foo12bar
Why didn't you time the interval between the beeps? Then when the next beep was coming up, just listen to a particular part of the room or set of boxes until you found it.
- NitpickLawyer
Ha! This reminded me of that old famous entry from bash org: "I can't find a server in my house. It responds to ping, but I can't physically locate it."