Professional Documents
Culture Documents
Sonar Application: DSP Project
Sonar Application: DSP Project
Sonar Application
Good Evening
Supervisor:
Haider Adnan Submitted By
Khan
Dept of EEE Thajid Ibna Rouf
United International Uday
University
ID: 021 121 102
MD. Ashif Jardary
ID: 021 122 039
What is SONAR !
SONAR is an abbreviation for
SOUND
NAVIGATION
And
RANGING
Sonar is a technique that uses sound propagation
(usually underwater, as in submarine navigation)
to navigate, communicate with or detect objects
on or under the surface of the water, such as other
vessels.
History of Sonar
Although some animals have used sound for communication and
object detection for millions of years, use by humans in the
water is initially recorded by Leonardo Da Vinci in 1490: a tube
inserted into the water was said to be used to detect vessels by
placing an ear to the tube.
Civilian applications
Scientific applications
Biomass estimation
Wave measurement
Water velocity measurement
Bottom type assessment
Bottom topography measurement
Sub-bottom profiling
Synthetic aperture sonar
Parametric sonar
How Sonar Works
Sonar is simply making use of an echo. When
an animal or machine makes a noise, it sends
sound waves into the environment around it.
Those waves bounce off nearby objects, and
some of them reflect back to the object that
made the noise. It's those reflected sound
waves that you hear when your voice echoes
back to you from a canyon. Whales and
specialized machines can use reflected
waves to locate distant objects and sense
their shape and movement
How Sonar Works
Process to Find Distance
Sends a pulse
Time of the echo’s return is measured
Can calculate the distance travelled by
knowing the speed of sound in water
Process to Find Distance
Measuring distance
Let
r = distance of the object.
t = time between the transmission and
reception.
v = velocity of sound (in water).
Distance,
h = v*t/2
Signal Processing in
Sonar
Usually, the reflection (echo) is very noisy.
Also, the sound intensity decreases due to the
distance traveled.
There can be sound from separate source
(interference) as well.
So the quality of the echo is very poor.
Therefore, the received signal is filtered to
remove the noise and interference (sounds
from other sources).
Signal Processing in
Sonar
Finally, the filtered signal is cross-correlated
with the original transmitted signal to identify
the similarity and the lag (distance).
Here , x(n) is the transmitted signal and y(n)
is the received signal ,y2(n) is filtered signal.
Visualization through
Transmitted and Received Signal
%% sonar application
close all
load('x.mat');
load('y.mat');
Xf=fft(x);
Xf=fftshift(Xf);
Xf_mag = abs(Xf);
Xf_ph = angle(Xf);
subplot(3,1,1)
plot( nx, x)
title('Transmitted signal')
subplot(3,1,2)
plot(wx, Xf_mag)
title('Magnitude Spectrum, |X(w)|')
subplot(3,1,3)
plot(wx, Xf_ph)
title('Phase Spectrum')
Visualization through
Transmitted and Received Signal
%% FFT of the transmitted signal
y(n)
Ny=length(y);
ny=0:Ny-1;
wy=(ny/Ny)*2 - 1;
yf=fft(y);
yf=fftshift(yf);
yf_mag = abs(yf);
yf_ph = angle(yf);
figure,subplot(3,1,1)
plot( ny, y)
title('Received signal')
subplot(3,1,2)
plot(wy, yf_mag)
title('Magnitude Spectrum, |X(w)|')
subplot(3,1,3)
plot(wy, yf_ph)
title('Phase Spectrum')
Fdatool Design
Visualization through
Transmitted and Received Signal
[b,a]=sos2tf(SOS,G);
%this is iir filter
coefficient finding
function
y1=filter(b,a,y);
Ny1=length(y1);
ny1=0:Ny1-1;
figure(3)
subplot(2,1,1)
plot(ny,y),title('received
signal'),xlabel('n'),ylabel
('amplitude of y');
subplot(2,1,2)
plot(ny1,y1),title('received
signal after
filtering'),xlabel('n'),ylab
el('amplitude of filtering
signal');
Visualization through
Transmitted and Received Signal
%% frequency response
& impulse response of
band pass filter
figure(4)
freqz(b,a);
figure(5)
impz(b,a)
Visualization through
Transmitted and
Received Signal
Impulse response of band pass filter
Visualization through
Transmitted and Received Signal
%% fast fourier transform of
filtered signal
y1f=fft(y1);
y1f=fftshift(y1f);
y1f_mag=abs(y1f);
y1f_ph=angle(y1f);
wy1=(ny1/Ny1)*2-1;
figure(6)
subplot(2,1,1)
plot(wy1,y1f_mag),title('rec
eived signal`s fourier
transform'),xlabel('w'),yla
bel('magnitude of filtered
signal');
subplot(2,1,2)
plot(wy1,y1f_ph),title('recei
ved signal`s fourier
transform'),xlabel('w'),yla
bel('phase of filtered
signal');
Visualization through
Transmitted and
Received Signal
%% performing cross-correlation
[xfo,nxfo]=sigfold(x,nx);
[r,l]=conv_m(xfo,nxfo,y1,ny1);
figure(7)
plot(l,r),title('after cross
correlation'),xlabel('l'),ylabel('amplitude');
Calculation of Distance
As Fs is provided we can easily find total
time(t)
Now finding, t=L./Fs
In our project Fs=5000 Hz
So ,t=6576/5000=1.3152
And finally we can easily find our expected
distance by using the following formula
Distance=(t*velocity)./2
In our project velocity of sound in water
=1481 m/s
So, the distance =(10.8500*1481)/2=
973.9056 meters
Conclusion
By this experiment, We’ve learn how to
measure a distance of any object from source
in water . To detect the distance of object we
use SONAR because, in water the velocity of
Sound is better than microwave . This is an
excellent project for us . We’ve learn a lot of
things from this project. Now we can easily
solve any simple problem of SONAR system
Reference
http://en.wikipedia.org/wiki/Sonar
http://oceanservice.noaa.gov/facts/s
onar.html
http://www.exploratorium.edu/thewor
ld/sonar/sonar.html
http://macartney.com/news/many-use
s-sonar
Thank You