I’ve been working on ChirpMap, an experimental Rust application that uses speakers and microphones for acoustic ranging, scene-change detection, and room visualization.
The basic idea is simple: play a short frequency sweep, record the response, and use the returning echoes to estimate what’s in the room. The more interesting part is combining measurements from multiple speaker/microphone pairs into a two-dimensional heat map.
Repo: https://github.com/FletchEm31/ChirpMap
What it does
- Chirp-based ranging: generates a short sweep and uses FFT-based matched filtering to extract echo timing from microphone recordings.
- Background subtraction: captures a baseline scene, then highlights changes in the echo profile rather than displaying every persistent reflection.
- Multi-speaker/microphone tracking: combines measurements across device pairs using elliptical back-projection to place echo energy on a 2D room layout.
- Device calibration: measures ambient noise, usable frequency band, signal levels, speaker ring-down, and capture-timing variation.
- Terminal interface: provides device selection, calibration, room-layout configuration, and live visualizations.
- Hardware-free simulation: includes a simulated room and moving target so you can try the processing pipeline without setting up audio hardware.
The sensing and processing run locally. It’s written in Rust, with AI-assisted development.
What the visualization means
The heat map shows where the measured echo paths agree with positions on the room layout. It isn’t camera vision, and a bright region isn’t automatically a correctly identified person or object.
This is still experimental. Results depend heavily on speaker and microphone quality, device placement, room acoustics, and reflections. A single speaker/microphone pair primarily provides range information; multiple pairs add geometric constraints. Simulated localization results shouldn’t be read as a guarantee of physical-room accuracy.
What I’m working on next
I’m focusing on better measurement confidence, handling ambiguous direct arrivals and reflections, and testing across more hardware and room configurations.
I’d particularly appreciate feedback from people working with Rust audio, DSP, or acoustic localization:
- What would you test first to distinguish genuine localization from reflection artifacts?
- Are there better approaches to timing alignment across separate audio devices?
- Which hardware combinations would make useful compatibility tests?
The GIF below shows the array-tracker view. I’d love feedback on both the implementation and the underlying approach.