Sonar Demo

Sonic distance measurement using Windows sound card for data acquisition.
10.1K Downloads
Updated 1 Sep 2016

View License

In this demo the Windows sound card is used as a data acquisition device. A chirp waveform is played out the speaker and captured by the microphone concurrently. The time delay between pitch and catch indicates separation distance. The time delay is determined using signal processing concepts (cross correlation and Hilbert pre-envelope). A graphical user interface makes operaton simple. This demo illustrates the basic principle; distances are not calibrated for accuracy.

Cite As

Robert Bemis (2024). Sonar Demo (https://www.mathworks.com/matlabcentral/fileexchange/1731-sonar-demo), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.1

Updated license

1.1.0.0

copyright

1.0.0.0

Made operation more robust on wider range of PC sound cards, microphones and speakers by removing hard coded calibration.