← Tue, Nov 10 digest

Locating the source of a mysterious beep

read article ↗ hn thread ↗

Simon Willison used Claude Code to build an ad-hoc acoustic triangulation system using multiple web devices to successfully locate a hidden, beeping carbon monoxide detector.

read it A practical, highly entertaining breakdown of using an AI coding agent to build an ad-hoc acoustic triangulation system from scratch.

summary

Simon Willison used Claude Code to build Beep Locator, a Python and WebAudio-based system that uses multiple scattered devices to acoustically triangulate a mysterious beeping sound in a room. Drawing inspiration from a 2007 acoustic ranging research paper, the app coordinates devices via WebSockets, allows hot-swapping client code, and analyzes audio buffers to pinpoint sounds. The system successfully tracked down a dead carbon monoxide detector buried in a stack of boxes within 40cm.

key points

  1. The system coordinates a Python web server with multiple browser-based listening devices using WebAudio and WebSockets.
  2. An automated hot-swap mechanism allowed the AI coding agent to push and execute new JavaScript modules directly onto the remote listening clients.
  3. Drawing on the 2007 BeepBeep acoustic research paper, the app aligns audio snippets to map sound locations within a room.

who should read it

Software engineers and tech hobbyists interested in creative applications of AI coding agents and local audio processing.

discussion warm

consensus

Commenters overwhelmingly relate to the madness of hunting phantom household beeps, sharing entertaining anecdotes and praising the cleverness of giving an LLM coding agent ears.

pushback

A minority argues that traditional low-tech methods, such as binary-searching the boxes or timing intervals manually, would have been vastly faster than building an AI system.

best comment by 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 …

Relates an ingenious low-tech method of using headphones as improvised stereo microphones to measure phase shift in Audacity for finding a hidden smoke alarm.

Generated by an LLM from the article and thread. Check the sources before relying on it.