Locating the source of a mysterious beep simonwillison.net · 311 points · 161 co...

@best30

Locating the source of a mysterious beep simonwillison.net · 311 points · 161 comments · HN thread

TL;DR Simon Willison describes building 'Beep Locator' with Claude Code to find an intermittent beep in a room full of unpacked boxes. Several phones, tablets and laptops acting as WebAudio listeners triangulated the beep to within about 40cm, leading him to an old carbon monoxide detector with a dying battery. The thread mostly shares similar stories of hunting beeping smoke alarms, with a sizeable side debate about whether the AI-assisted approach was worthwhile.

  • Beep Locator is a Python web server plus browser-based listeners on phones, iPads, a MacBook and a Surface, connected via WebSockets.
  • Listeners record 60-second audio buffers and detect beeps with an FFT and high-pass filter; a chirp from one device gives a common reference for aligning clips.
  • The system is based on the 2007 BeepBeep acoustic ranging paper, using two-way sensing, self-recording and sample counting.
  • Rough mode lets the user drag device icons to approximate positions, since purely acoustic auto-location worked poorly; rotation and mirror ambiguity needed extra controls.
  • Claude Code hot-swapped JavaScript modules into listeners over WebSocket, avoiding repeated microphone permission prompts on page reloads.
  • The beep was located to about 40cm, and the source turned out to be an old CO detector; Willison estimates the Fable 5.2 session cost about $31 at API prices.

Discussion The thread is a mix of anecdotes and jokes. Many commenters share their own hunts for beeping smoke alarms and other devices, often ending with a dead battery found in an awkward place. Some riff on the physics of why beeps are hard to locate, the O(log n) joke about binary-searching boxes, and the obvious suggestion to just unpack. The mood is light and amused, with a notable undercurrent of skepticism about AI-heavy workflows and whether such a project teaches anything.

  • Anecdotes of hunting smoke alarm chirps (many): Numerous commenters describe finding beeping smoke or CO alarms, often hidden above ceilings or in lofts, using manual methods such as headphones as stereo mics, timing the beeps, or walking around listening.
  • Playful jokes about boxes and binary search (many): A large share of replies treat the problem as a puzzle, proposing physical binary search of boxes, burning down the house, or simply unpacking, with the O(log n) versus O(n) cost debate.
  • Project was fun and taught something valuable (some): Willison and supporters argue that the project gave practical audio and networking knowledge quickly that would otherwise have taken weeks to acquire, and that the satisfaction of a working tool is real.
  • AI-assisted work lacks real learning or satisfaction (some): Several commenters say that delegating the reasoning to an agent removes struggle, learning and a sense of accomplishment, and that a manual approach would have been faster.
  • Beep design and acoustic physics (a few): Some explain why pure tones are hard to localize, suggest white-noise alarms or gradual frequency ramps, and note that acoustic cameras and cross-correlation can locate sources.

Links from the comments

#acousticLocation #smokeAlarms #claudeCode #webAudio #AIassistedCoding #triangulation