Hacker News new | ask | show | jobs
by chimpontherun 22 days ago
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

9 comments

I brought the carbon monoxide detector downstairs to show my wife after finding it with Claude and she said "you look like a cat that's proudly showing me the mouse that it caught".
"like a penguin on a bike that's proudly showing the fish it caught, in a basket, on a bike" ;-) <3
> 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

Do you not feel this way about it yourself? I know I would.

"Your dad fixed something? He actually fixed something?" - Calvin's mom.
Hahaha amazing. Also cool to hear stories about headphones used as mics, I didn't think it would be sensitive enough for that.
it didn't have to be sensitive or even high quality. The beep was loud enough to register on these improvised "mics" and the phase shift of up to 3ms (~50 samples at 16 kHz) was clearly visible
The cross-correlation function can be applied to measure time shift between two waveforms, even those collected from different devices. The accuracy of this is not limited by the sample period. In fact, the two waveforms need not even have a common sample period. I think this approach could let simonw's network become self locating.
Could you elaborate on how you converted the phase shift into a precise direction? Just a linear mapping? Or did you "hone in" by adjusting the stick until the phase shift disappeared, then proceed in that direction?
I did in manually, i.e., visually. By looking at the phase shift and moving in direction of the channel that heard the beep first.

The beep frequency is about 3000-3500 Hz, which makes its wavelength about 10cm (1/3 of a foot). The piezo speaker in the smoke detector is so small that it takes 3-4 wave periods to go from silent to full blast. Meaning, if my stick was pointing perfectly to the source (it never was, obviously, but if), then one of the "mics" would hear the sound at full blast while the other still wouldn't hear anything.

So, I would have Audacity recording, hear the beep, stop the recording and zoom at the wavefront of the beep. Whichever mic shows the signal first, I'd move my stick (and the laptop) in that direction. After 2 or 3 moves and I was right under the source. Took me about 2 or 3 beeps at different stick orientation to understand that the sound is coming from above.

Not the OP, but the phase shift of a known frequency can be converted into a distance (portion of a wavelength) which can then be used to triangulate between the two microphones, yielding a vector to the target.
I have almost the opposite story.

Many many many years ago, I was a wee IT manager. Sort of a weird company, I was too young to be much more than smart kid who can install / fix anything.

Anyways, worked a few years there, made some friends, had one CAD engineer who was an utter jerk. In hindsight, probably a bully, but at the time just a really irritating person.

So that was my first foray into small electronics… worked up a small breadboard with a 555, some source of randomness I don’t remember now, a piezo speaker, and a 9v battery. It would emit a short beep at random intervals between roughly 60 and 240 minutes.

Stashed it above the ceiling tiles in his office on my last day at the company.

In college, some friends bought (they were less imaginative than you) the equivalent, powered by a 2032 cell, and hid it in my room as a prank.

Good times. I bet it’s still magnetically attached to the inside of the steel riser column of one of their desk chairs, though the battery is likely long dead.

Inevitable question: How long would the 9V battery have lasted?
Many smoke alarms are also plumbed into the house power circuitry, so one with a dead battery will complain forever...
Usually starting at 2AM in a house with 12' ceilings.
It's a temperature thing, if they're failing then they've reached their lowest-available-power level by about 2-4am depending on house conditions. Then when they warm up again later the beeping stops, until the next night. Crude test for a suspect alarm if you can't exactly monitor the battery voltage is to put it in the fridge for a few hours.
I recall seeing a truly horrific video of some Nest devices in a plaintive choir, gnashing their collective teeth all over a house ...
> above the ceiling tiles

So I may in the future be the villain in a story like this if I am forgetful when I sell my apartment.

My upstairs neighbor is a moron who has flooded their apartment at least twice, so I have stashed moisture sensors into the access panels in multiple rooms as a sort of early warning system.

My version of this story is coming back from turbulent red eye to this type of beeping, spending an hour walking around trying to figure it out it by ear, eventually giving up as it always seems to be somewhere else.

It wasn’t until the next day did I realize that it was two separate locations!

You're lucky someone hadn't planted an Annoy-a-tron type device and you needed a nonlinear junction detector to find it.

To answer the inevitable question, EE students with a tiny amount of spare time. Not much, but just enough.

omg, I suppose the "old fashioned" way of just finding the period then anticipating it in different spots wasn't enough this time? :)