Code covered by the BSD License  

Highlights from
Sonar Demo

3.77778

3.8 | 9 ratings Rate this file 25 Downloads (last 30 days) File Size: 7.14 KB File ID: #1731
image thumbnail

Sonar Demo

by Robert Bemis

 

22 May 2002 (Updated 13 Jan 2010)

Sonic distance measurement using Windows sound card for data acquisition.

| Watch this File

File Information
Description

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.

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 6.1 (R12.1)
Other requirements Windows sound card, speaker and microphone (preferably with ability to change separation distance).
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
19 May 2003 Vladimir Molchanov  
10 Aug 2004 Mohamed Alzebdah

Has a good Accuracy in long distance insted of small distance.Could be improved if the ability of collaboration is added.
But in the overall "Well done" and Thank you.

30 Jul 2005 lalit dhingra

ver good

24 Aug 2005 neila castellanos lozano  
16 May 2006 magrini antonio  
18 Oct 2006 Muhammad Shahzad

for checking

18 Oct 2006 Muhammad Shahzad

checking

06 Jun 2008 deep sing

i tried it by playing a sample wav file..but the execution of sonar_anal file gives the follwing error "Input argument "fig" is undefined". Can u elaborate on ways to execute the sonar demo considering my novice exposure to matlab

30 Jun 2008 david via  
17 Jan 2012 Amitava Biswas  
Please login to add a comment or rating.
Updates
06 Jul 2007

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

13 Jan 2010

copyright

Tag Activity for this File
Tag Applied By Date/Time
example Robert Bemis 22 Oct 2008 06:44:42
application Robert Bemis 22 Oct 2008 06:44:42
daq Robert Bemis 22 Oct 2008 06:44:42
winsound Robert Bemis 22 Oct 2008 06:44:42
fft Robert Bemis 22 Oct 2008 06:44:42
test and measurement Robert Bemis 22 Oct 2008 06:44:42
application Hashem ragheb 17 Mar 2010 16:23:45
fft Hashem ragheb 17 Mar 2010 16:23:51
daq Hashem ragheb 17 Mar 2010 16:23:55
test and measurement Hashem ragheb 17 Mar 2010 16:23:58
winsound Hashem ragheb 17 Mar 2010 16:24:02
example Hashem ragheb 17 Mar 2010 16:24:03

Contact us at files@mathworks.com