Experiment # 3
Section: 02
Group: 05
1. Mustafa
2008-3-80-011
2. Khondoker Fazle Rabbi
2009-1-80-020
3. Subir Sarker
2009-1-80-023
4. Md. Ismail Hossain
2009-1-80-038
Submitted to: Sharmin R. Ara
Submission Date: 08.03.2011
Objective:
The objective of this experiment is to get familiar with the wave shape and frequency spectrum
of frequency modulated signal and compare the theoretical analysis with the simulated results.
Block Diagram:
Mustafa
2008-3-80-011
Q/As :
1. Calculation of Jn() from experimental data:
Formula:
AC = (3.927 / 2)V = 1.9635V
AC /2= 0.98175V
Formula used:
10log10(X) = Y in dB
X= 10 (Y / 10)
= 1.8
So for nonzero
m(t),we have
Assuming that
We obtain
3. MATLAB code for a FM signal generation applying the equations provided in the lab
sheet is given below:
clc
clear all
clf
Ac=1.9635;
%amplitude of Carrier signal
fc=10.26e3;
%Frequency of Carrier signal
fm=2.076e3;
%Frequency of Message signal
Beta=1.8
%Approximated Value of Beta for FM
t=0:1e-6:1e-3;
mt=(3.807/2)*cos(2*pi*fm.*t); %Message signal in time domain
%Implimentation for first formula start here
ut_1=0;
for n=-7:7
ut_1=ut_1+Ac*besselj(n,Beta)*cos(2*pi.*t*(fc+(n*fm)));
end
%Implimentation for first formula end here
%Implimentation for Second formula start here
ut_2=Ac*cos((2*pi*fc.*t)+(Beta*sin(2*pi*fm.*t)));
%Implimentation for Second formula end here
figure (1)
subplot(211)
plot(t,ut_1)
hold on
plot(t,mt,':') % ':'Dotted line
legend('u_1(t)','m(t)')
xlabel('time (t)')
ylabel('u_1(t)')
title('u_1(t) vs time plot')
subplot(212)
plot(t,ut_2)
hold on
plot(t,mt,':') % ':'Dotted line
legend('u_2(t)','m(t)')
xlabel('time (t)')
ylabel('u_2(t)')
title('u_2(t) vs time plot')
2
1.5
1
u1(t)
0.5
u1(t)
m(t)
-0.5
-1
-1.5
-2
0.1
0.2
0.3
0.4
0.5
time (t)
0.6
0.7
0.8
0.9
1
-3
x 10
2
1.5
1
u2(t)
0.5
0
u2(t)
-0.5
m(t)
-1
-1.5
-2
0.1
0.2
0.3
0.4
0.5
time (t)
Reference:
0.6
0.7
0.8
0.9
1
-3
x 10
Ac = 4/2 = 2
J0() = 0.0522
From chart, J0(2) = 0.2238
J2() = 0.0522
From chart, J2(3) = 0.4860
Output equation,
fi(t) = fc {1 - (k0/2C0) m(t) }
% 2009-1-80-020
t=0:2.5*10^-6:0.0015
Ac=2
fc=10000
fm=2000
ut=0;
for n=-7:7
ut=ut+Ac*besselj(n,2.5)*cos(2*pi*t*(fc+(n*fm));
end
plot(t,ut)
xlabel('Time')
ylabel('ut')
title('Time vs ut')
Time vs ut
2
1.5
1
ut
0.5
0
-0.5
-1
-1.5
-2
0.5
Time
1.5
-3
x 10
t=0:2.5*10^-6:0.0015
Ac=2
fc=10000
fm=2000
ut=Ac*cos(2*pi*fc*t+2.5*sin(2*pi*fm*t)))
plot(t,ut)
xlabel('Time')
ylabel('ut')
title('Time vs ut')
Time vs ut
2
1.5
1
ut
0.5
0
-0.5
-1
-1.5
-2
Subir Sarker
2009-1-80-023
0.5
Time
1.5
-3
x 10
1.
Ac = 2
J0() = 0.052
Table: J0(2) = 0.223
J2() = 0.052
Table: J2(3) = 0.486
= 2.5
2.
3.
t=0:5*10^-6:0.001;
Ac=2;
fc=10000;
fm=2000;
uta=0;
for n=-7:7
uta=uta+Ac*besselj(n,2.5)*cos(2*pi*t*(fc+(n*fm)));
end
subplot(2,1,1),plot(t,uta);
utb=Ac*cos(2*pi*fc*t+2.5*sin(2*pi*fm*t))
subplot(2,1,2),plot(t,utb);
2
1
0
-1
-2
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-3
x 10
2
1
0
-1
-2
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-3
x 10