Professional Documents
Culture Documents
LAB
PRACTICAL FILE
THEORY
The 20 MHz dual oscilloscope is a compact low line and light weight instruction. The 201
is a general-purpose dual trace oscilloscope having both vertical amplified offering as
bandwidth of DC-20 MHz and a maximum sensitivity of 2 mV/cm stable triggering for
low level. Signal is obtained up to 40 MHz. Full X-Y operation is achieved by switching
channels II into horizontal deflection system. So that matched sensitivities for both X & Y
signals. A component tester is incorporated in the oscilloscope which gives a quick list
of both active and passive components. Fully stabilized internal power supply condition.
The 201 offers six separate add-on modules via frequency.
7. Working of CRO:
The cathode ray is a beam of electrons that are emitted by the heated cathode
(negative electrons) and accelerated the fluorescent screen. The assembly of the
cathode intensity good focus grid and accelerating anode is called electron gun.
Its purpose is to generate the electron beam between electron gun and the
screen are two pair of metal plates. One oriented to provide horizontal deflection
of the beam while other oriented to give vertical deflection of the beam.
These plated are referred as horizontal and vertical deflection plates, where the
electron beam hits the screen the phosphor is easier and light is emitted.
SOURCE CODE
fs = 10000;
t = 0:1/fs:1.5;
x1 = sawtooth(2*pi*50*t);
x2 = square(2*pi*50*t);
subplot(2,1,1)
plot(t,x1)
axis([0 0.2 -1.2 1.2])
xlabel('Time (sec)')
ylabel('Amplitude')
title('Sawtooth Periodic Wave')
subplot(2,1,2)
plot(t,x2)
axis([0 0.2 -1.2 1.2])
xlabel('Time (sec)')
ylabel('Amplitude')
title('Square Periodic Wave')
OUTPUT
RESULT: The control and components of CRO have been studied.
EXPERIMENT 2
AIM: To study amplitude modulation and find the modulation index of the modulated
wave.
THEORY
In amplitude modulation, the amplitude of the sinusoidal carrier wave is varied
accordance with the modulating signal. Keeping the phase and frequency constant
DSBEC (Double side band full carrier) is also called simply AM. Let message signal be
m(t) and carrier signal be c(t).
Then for signal tone we have
m ( t )= Am ⋅cosωmt
c ( t ) =Ac ⋅ cosωct
where, Vmax = Ac + Am
Vmin= Ac- Am
SOURCE CODE
fc = 1e5; %carrier frequency
fs = 1e6; %sampling frequency
f = 1e3; %frequency of messages signal
m = 0.5; %modulation index = 0.5
A = 1/m;
opt = -A; %opt decide amount of carrier, used as y
t = 0:(1/fs):((2/f) - (1/fs)); %set time range equal to two
cycles of modulating signal
x = cos(2 * pi * f * t); %message signal
y = modulate(x, fc, fs, 'amdsb-tc', opt); %AM double
sideband-transmitted carrier
figure;
subplot(221);
plot(x);
xlabel('time(t)');
ylabel('Amplitude');
title('Message Signal')
subplot(222);
plot(y);
xlabel('time(t)');
ylabel('Amplitude');
title('Under modulated')
m = 1.2; %overmodulation
opt = -1/m;
y = modulate(x, fc, fs, 'amdsb-tc', opt);
subplot(224);
plot(y);
xlabel('time(t)');
ylabel('Amplitude');
title('Over modulated');
OUTPUT
RESULT
The modulation indexes are for:
1) Under modulation= 25%
2) Critical modulation = 100%
3) Over modulation= 26 %
EXPERIMENT 3
THEORY
The simplest form of modulation is amplitude modulation. In am, the modulating
voltage whose frequency is variably lower than that of carrier signal. Carriers frequency
is high while modulating frequency is low audio frequency.
AM is defined as a system of modulation in which amplitude of carrier wave is varied in
accordance while instantaneous amplitude of modulating signal is applied.
MODULATING VOLTAGE, Vm ( t )=Vm sin ω mt OR Vm cos ω mt
CARRIER VOLTAGE, Vc ( t )=Vc sin ω ct OR Vc cos ω ct
V ❑c (t ) = instantaneous voltage of carrier wave.
SOURCE CODE
% AM Modulation and Demodulation using Functions in MATLAB
% Modulation index
h = input('Modulation index = ');
%% Time Pereiod of Simulation :
t = linspace(0, 0.2, 100000);
%% Message Signal :
Am = 10;
fm = 200;
ym = Am*cos(2*pi*fm*t);
figure;
subplot(4, 1, 1);
plot(t(1:10000), ym(1:10000));
title('Message Signal');
xlabel('time(t)');
ylabel('Amplitude');
%% Carrier Signal :
Ac = Am/h;
fc = 2000;
yc = Ac*cos(2*pi*fc*t);
subplot(4, 1, 2);
plot(t(1:10000), yc(1:10000));
title('Carrier Signal');
xlabel('time(t)');
ylabel('Amplitude');
%% Modulated Signal :
y = ammod(ym, fc, 100000, 0, Ac);
subplot(4, 1, 3);
plot(t(1:10000), y(1:10000));
title('Modulated Signal');
xlabel('time(t)');
ylabel('Amplitude');
%% Demodulated Signal :
z = amdemod(y, fc, 100000, 0, Ac);
subplot(4, 1, 4);
plot(t(1:10000), z(1:10000));
title('Demodulated Signal');
xlabel('time(t)');
ylabel('Amplitude');
ylim([-10, 10]);
OUTPUT
THEORY:
Balanced modulator is used for generating DSB-SC signal. A balanced modulator consists
of two standard amplitude modulators arranged in a balanced configuration so as to
suppress the carrier wave. The two modulators are identical except the reversal of sign
of the modulating signal applied to them.
CIRCUIT DIAGRAM:
SOURCE CODE
clc;
clear all;
Message_Signal_Amplitude = input ('Enter the message signal
amplitude = ');
Carrier_Signal_Amplitude = input ('Enter the carrier signal
amplitude = ');
fm = input ('Enter the message frequency = ');
fc = input ('Enter the carrier frequency = ');
m = Message_Signal_Amplitude/Carrier_Signal_Amplitude;
% Representation of the Message Signal
t = 0:0.001:1;
Message_Signal = Message_Signal_Amplitude*sin (2*pi*fm*t);
subplot (4,1,1);
plot (t,Message_Signal,'b');
xlabel ('Time ---->');
ylabel ('Amplitude ---->');
title ('Message Signal ---->');
legend ('Message Signal ---->');
% Representation of the Carrier Signal
Carrier_Signal = sin (2*pi*fc*t);
subplot (4,1,2);
plot (t,Carrier_Signal,'r');
xlabel ('Time ---->');
ylabel ('Amplitude ---->');
title ('Carrier Signal ---->');
legend ('Carrier Signal ---->');
% Representation of the DSBSC Signal
DSBSC_Signal=Carrier_Signal_Amplitude*m.*sin
(2*pi*fm*t).*sin (2*pi*fc*t)
subplot (4,1,3);
plot (t,DSBSC_Signal,'black');
xlabel ('Time ---->');
ylabel ('Amplitude ---->');
title ('Double Sideband Suppressed Carrier Wave ---->');
legend ('DSB-SC Signal ---->');
% Add title to the Overall Plot
ha = axes ('Position',[0 0 1 1],'Xlim',[0 1],'Ylim',[0
1],'Box','off','Visible','off','Units','normalized',
'clipping' , 'off');
text (0.5, 1,'\bf Analog Modulation Technique: Double
Sideband Suppressed-Carrier Transmission (DSB-
SC)','HorizontalAlignment','center','VerticalAlignment',
'top')
% Representation of the DE- modulated DSBSC Signal
DE_mod_signal= DSBSC_Signal*Carrier_Signal
subplot (4,1,4);
plot (t, DE_mod_signal,'red');
xlabel ('Time ---->');
ylabel ('Amplitude ---->');
title ('DEMODULATED OR RECOVERED MESSAGE SIGNAL---->');
OUTPUT
RESULT
To successfully obtain wave form of DSB-SC AM Modulation Demodulation.
EXPERIMENT 5
THEORY
1. The modulating signal which contains no carrier wave and only one side
band (either lower side band or upper side band) is called SSB-SC.
2. Generation of SSB-SC modulated AM wave: In this type of modulating
process, a single band is produced with a suppressed carrier waveform.
For generating SSB-SC signal, firstly a DSB-SC signal is generated using a
balanced modulator and then one side band is filtered out using band pass
filter.
SOURCE CODE
close all;
clear all;
tmin=0;
tmax=10^-3;
step=(tmax-tmin)/1000;
t=tmin:step:tmax;
Am=1;
fm=2*10^3;
m1=Am*sin(2*pi*fm*t+0);
figure(1);
subplot(4,1,1);
plot(t,m1);
xlabel('time');
ylabel('amplitude');
title('message signal');
grid on;
tmin=0;
tmax=10^-3;
step=(tmax-tmin)/1000;
t=tmin:step:tmax; Ac=1;
fc=10^4;
c1=Ac*sin(2*pi*fc*t+0);
subplot(4,1,2);
plot(t,c1);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
grid on;
m2=Am*sin(2*pi*fm*t+90);
c2=Ac*sin(2*pi*fc*t+90);
subplot(4,1,3);
plot(t,m2);
xlabel('time');
ylabel('amplitude');
title('message signal with 90 degree phase shift');
grid on;
subplot(4,1,4);
plot(t,c2);
xlabel('time');
ylabel('amplitude');
title('carrier signal with 90 degree phase shift');
grid on;
s=m1.*c2+m2.*c1;
plot(t,s);
xlabel('time');
ylabel('amplitude');
title('SSB-SC signal');
grid on;
OUTPUT
THEORY
1. The modulating signal which contains no carrier wave and only one side
band (either lower side band or upper side band) is called SSB-SC.
2. Demodulation of SSB-SC demodulated AM wave: For recovery, a
modulating signal and an SSB-SC signal is multiplied by a locally generated
carrier wave which is then passed through a owe pass filter. The original
modulating signal is ten recovered.
SOURCE CODE
fs = 270000; % SAMPLING FREQUENCY
t = (0:1/fs:0.01)'; % TIME AXIS
signal = sin(2*pi*300.*t)+2*sin(2*pi*600.*t); %MESSAGE
SIGNAL WITH DOUBLE TONE(300, 600)
fc = 12000; %CARRIER FREQUENCY
initialPhase = 0;
lowerSidebandSignal = ssbmod(signal,fc,fs,initialPhase);
%LSB
upperSidebandSignal =
ssbmod(signal,fc,fs,initialPhase,'upper'); %USB
s1 = ssbdemod(lowerSidebandSignal,fc,fs);
s2 = ssbdemod(upperSidebandSignal,fc,fs);
plot(t,signal,'k',t,s1,'r:',t,s2,'g-.');
legend('Original Signal','Demodulation of Lower
Sideband','Demodulation of Upper Sideband');
OUTPUT
RESULT: SSB-SC demodulation has been studied using MATLAB.
EXPERIMENT 7
THEORY
Frequency Modulation is the type of Modulation where the instantaneous frequency
deviation is varied according to the instantaneous magnitude of the message signal. The
process of detection provides a means of recovering the modulating signal from the
demodulating signal.
SOURCE CODE
Ac = input('Carrier Signal Amplitude: ');
Am = input('Message Signal Amplitude: ');
fc = input('Carrier Signal Frequency: ');
fm = input('Message Signal Frequency: ');
while fm>fc
disp('Message Signal Frequency is Incorrect.');
fm = input('Message Signal Frequency: ');
end
T = input('Time Period: ');
t = 0:0.001:T;
Ym = Am.*sin(2*pi*fm*t);
subplot(3, 1, 1);
plot(t, Ym);
title('Message Signal');
Yc = Ac.*sin(2*pi*fc*t);
subplot(3, 1, 2);
plot(t, Yc);
title('Carrier Signal');
Z = Ac.*sin(2*pi*fc*t+((Am/Ac).*(2*pi*fm*t)));
subplot(3, 1, 3);
plot(t, Z, 'r');
title('Modulated Signal');
OUTPUT
EXPERIMENT 8
AIM: To study Frequency Demodulation by using MATLAB.
THEORY
Frequency demodulation is a key process in the reception of a frequency modulated
signal once the signal has been received, filtered and amplified it is necessary to recover
the original modulation from the carrier .it is this process that is called demodulation or
detection.
SOURCE CODE
% FM demodulation
fc = 1e4;
fs = 1e5;
f1 = 2e3;
t = 0 : (1/fs) : ((2/f1) - (1/fs));
x1 = cos(2*pi*f1*t); %message signal
kf = 2*pi*(fc/fs)*(1/max(max(x1)));
kf = kf*(f1/fc);
opt = 10*kf;
y1 = modulate(x1, fc, fs, `fm`,opt);
figure;
subplot(311);
plot(t,x1);
title(“MESSAGE SIGNAL”);
subplot(312);
plot(t,y1);
title(“FREQUENCY MODULATED SIGNAL”);
x1_recover = demod(y1,fc,fs,`fm`,opt);
subplot(313);
plot(t,x1_recover);
title(“DEMODULATED FM SIGNAL”);
OUTPUT
RESULT: Frequency demodulation has been studied using MATLAB.
EXPERIMENT 9
AIM: To study Phase Modulation by using MATLAB.
THEORY
The process of getting a modulating signal from a frequency modulated signal from a
frequency modulated is called demodulation. It converts the FM signal into a
corresponding AM signal with the help of frequency dependent circuits i.e.; the circuits
whose output voltage depends on the input frequency. A Phase locked loop is used in
tracking the phase and frequency of the carrier component of an FM signal.
SOURCE CODE
clc;
clear all;
t = 0:0.001:1;
vm = input('Enter the amplitude of message signal = ');
vc = input('Enter the amplitude of carrier signal = ');
fm = input('Enter the message frequency = ');
fc = input('Enter the carrier frequency = ');
m = input('Enter modulation index = ');
sm = vm*sin(2*pi*fm*t);
subplot(3,1,1);
plot(t,sm);
xlabel('Time ---->');
ylabel('Amplitude ---->');
title('Message Signal');
grid on;
sc = vc*sin(2*pi*fc*t);
subplot(3,1,2);
plot(t,sc);
xlabel('Time ---->');
ylabel('Amplitude ---->');
title('Carrier Signal');
grid on;
y = vc*sin(2*pi*fc*t+m.*sin(2*pi*fm*t));
subplot(3,1,3);
plot(t,y);
xlabel('Time ---->');
ylabel('Amplitude ---->');
title('PM Wave');
grid on;
INPUT
Enter the amplitude of message signal = 1
Enter the amplitude of carrier signal = 1
Enter the message frequency = 2
Enter the carrier frequency = 4
Enter modulation index = 1
OUTPUT
EXPERIMENT 10
AIM: To study Sampling Theorem.
THEORY
Sampling is the process of converting analog signal into a discrete signal or making an
analog or continuous signal to occur at an interval of time, this phenomenon is known
as sampling.
SAMPLING THEOREM: Sampling theorem states that a band limited signal having no
frequency components higher than f m hertz can be sampled if its sampling frequency is
equal to or greater than Nyquist rate.
Sampling Techniques
1. Natural Sampling
3. Ideal Sampling
1. Natural Sampling
Natural Sampling is a practical method of sampling in which pulse have finite width
equal to τ. Sampling is done in accordance with the carrier signal which is digital in
nature.
With the help of functional diagram of a Natural sampler, a sampled signal g(t) is
obtained by multiplication of sampling function c(t) and the input signal x(t).
Spectrum of Natural Sampled Signal is given by:
Flat top sampling is like natural sampling i.e.; practical in nature. In comparison to
natural sampling flat top sampling can be easily obtained. In this sampling techniques,
the top of the samples remains constant and is equal to the instantaneous value of the
message signal x(t) at the start of sampling process. Sample and hold circuit are used in
this type of sampling.
3. Ideal Sampling
NYQUIST RATE: Nyquist rate is the rate at which sampling of a signal is done so that
overlapping of frequency does not take place. When the sampling rate become exactly
equal to 2fm samples per second, then the specific rate is known as Nyquist rate. It is
also known as the minimum sampling rate and is given by f s=2 f m .
SOURCE CODE
%sampling
clear all;
close all;
clc;
t=-10:0.01:10;
T= 4;
fm=1/T; % analog signal freq
x=cos(2*pi*fm*t); %analog signal
subplot(2,2,1);
plot(t,x,'linewidth',3); %Continuous amp signal
xlabel('time');ylabel('amplitude');
grid;
title('input signal');
n1=-4:1:4; %discrete time axis
fs1=1.6*fm;
fs2=2*fm;
fs3=8*fm;
x1=cos(2*pi*fm/fs1*n1);
subplot(2,2,2);
stem(n1,x1,'linewidth',3); %discrete signal
xlabel('number of samples');
ylabel('amplitude');
hold on;
subplot(2,2,2);
plot(n1,x1,'linewidth',3);
xlabel('time');
ylabel('amplitude');
grid;
title('under sampling');
n2=-5:1:5;
x2=cos(2*pi*fm/fs2*n2);
subplot(2,2,3);
stem(n2,x2,'linewidth',3);
xlabel('number of samples');
ylabel('amplitude');
hold on;
subplot(2,2,3);
plot(n2,x2,'linewidth',3);
xlabel('time');
ylabel('amplitude');
grid;
title('uniform sampling');
n3=-20:1:20;
x3=cos(2*pi*fm/fs3*n3);
subplot(2,2,4);
stem(n3,x3,'linewidth',3);
hold on;
subplot(2,2,4);
plot(n3,x3,'linewidth',3);
xlabel('number of samples');
ylabel('amplitude');
xlabel('time');
ylabel('amplitude');
grid;
title('over sampling');
OUTPUT
EXPERIMENT 11
AIM: To study the types of sampling.
THEORY
1. Natural Sampling
3. Ideal Sampling
1. Natural Sampling
Natural sampling is practical method of sampling in which pulse have finite width equal
to T. Sampling is done in accordance with the carrier signal which is digital in nature.
During transmission, niche is introduced at top of the transmission pulse which can be
easily removed if the pulse is in the form of flat top. Here l. The top of the samples is
flat i.e., they have constant amplitude. Hence, it is called as flat top sampling or
practical sampling.
3. Ideal Sampling
Impulse sampling can be performed by multiplying input signal x(t) with impulse train of
period 'T'. Here the amplitude of impulse changes with respect to amplitude of input
signal x(t).
SOURCE CODE
xlabel('Time');
ylabel('Amplitude');
title('Impulse Signal');
subplot(3,1,2); %for sine wave plot
title('Sinusoidal Signal');
plot(t,x2);
ylim([-a-0.2 a+0.2])
xlabel('Time');
ylabel('Amplitude');
subplot(3,1,3); %for PAM wave plot
title('Instantaneous Sampled Waveform');
stem(t,y);
xlabel('Time');
ylabel('Amplitude');
ylim([-a-0.2 a+0.2])
INPUT
A. For Natural Sampling
Enter the Frequency of Carrier Signal(square wave) = 100
Enter the Frequency of Message Signal(sine wave) = 20
Enter the Amplitude of Message Signal = 5
B. For Ideal Sampling
Enter the amplitude = 4
Enter the frequency = 3
OUTPUT
A. For Natural Sampling
B. For Flat Top Sampling
EXPERIMENT 12
AIM: To study Pulse Amplitude Modulation, Pulse Phase Modulation, Pulse Width
Modulation.
THEORY
In PAM, amplitude of pulses of carrier pulse train is varied in accordance with the
modulating signal. Fig. explains the principle of PAM. A signal i.e. baseband is shown in
fig. and carrier pulse train f (t) is also shown. The frequency of carrier train is decided by
sampling theorem. A pulse amplitude modulated signal fc(t) is shown. It can be seen
that the amplitude of pulse depends upon the value of f(t) during the time of pulse.
SOURCE CODE
clc;
fc = 20; % PULSE OR CARRIER SINGAL FREQUENCY
fm =2; % ANALOG SIGNAL
fs = 1000; % SAMPLING FREQ
t=1;
n = [0:1/fs:t];
n = n(1:end-1);
dutycycle = 50; %on-time
s = square (2*pi*fc*n, dutycycle); % PULSE CARRIER
SIGNAL OR SAMPLING SIGNAL.
s(find(s<0))=0; %to make it unipolar pulse signal
%plot(s);
m = sin (2*pi*fm*n); %ANAOG SIGNAL
period_sam = length(n)/fc; %to find the number of
samples in one period
ind = 1:period_sam:length(n); %to find the starting
sample index
on_samp = ceil(period_sam * dutycycle/100); %no. of
samples in on period of time
pam = zeros(1,length(n));
for i =1:length(ind)
pam(ind(i):ind(i)+on_samp) = m(ind(i));
end
subplot(3,1,1);
plot(n,s);
ylim([-0.2 1.2]);
subplot(3,1,2);
plot(n,m);
ylim([-1.2 1.2]);
subplot(3,1,3);
plot(n,pam);
ylim([-1.2 1.2]);
OUTPUT:
RESULT: PAM has been successfully studied using MATLAB.
EXPERIMENT 13
BLOCK DIAGRAM:
THEORY
In time division multiplexing, we use the fact that narrow pulses with wide spaces
between them are generated in any of the pulse modulation system, so that spaces
can be used by the signal from other sources. Moreover, although the spaces are
relatively fixed in width, pulse may be as narrow as desired, thus permitting the
generation of high-level hierarchies. There are two types of time division
multiplexing. One is slow speed TDM and other is high speed TDM. Slow speed
TDM is often used in radio telemetry and is produced simply with rotating
mechanical switches. The high speed TDM uses electronic switching and delay lines
to accomplish the same result.
PROCEDURE
OBSERVATION
RESULT: Time Division Multiplexing and De-multiplexing has been studied.
PRECAUTIONS
1. Switch off the experimental kit during making connections.
2. Use the CRO carefully.
EXPERIMENT 14
THEORY
Amplitude-shift keying (ASK) is a form of amplitude modulation that represents digital
data as variations in the amplitude of a carrier wave. In an ASK system, the binary
symbol d-amplitude carrier wave and fixed frequency for a bit duration of T seconds. If
the signal value is 1 then the carrier signal will be transmitted; otherwise, a signal value
of 0 will be transmitted.
PROGRAM CODE
% b is the input binary bit stream
% f is the frequency of the Carrier
b = input('Enter the Bit stream % n = ')
fc = input('carrier frequency = * ');
n = length(b) ; % determine the length of bit stream
t = 0: 0.01 : n; % time axis
x = 1 : 1 : (( n+1 )*100);
for 1 = 1 : n
for j = 1: .1 : i + 1
bw (x (1 * 100 : ( i+ 1) * 100 = b
(i) ; loop
end
end
bw = bw (100 : end) ; % Binary Bit stream
carrier = cos (2 * p1 * fc * t); % carrier signal
modulated = bw * carrier ; % modulated signal
subplot(3 , 1 , 1 )
plot(t , bw)
grid on;
ylabel(‘amplitude’)
xlabel(‘time’)
title(‘message signal’)
subplot(3, 1 , 2 )
plot(t, Carrier)
grid on;
ylabel(‘amplitude’)
xlabel(‘time’)
title = (‘carrier signal’)
subplot(3 , 1 , 3)
plot(t, modulated)
grid on;
ylabel(‘amplitude’)
xlabel(‘time’)
title(‘modulated signal’)
OUTPUT
RESULT: ASK has been studied.
EXPERIMENT 15
THEORY
AWGN is a basic noise model used in information theory to mimic the effect of many
random processes that occur in nature. Additive because it is added to any noise that
might be intrinsic to information system. White refers to the idea that it has uniform
power across the frequency band for the information system. Gaussian because it has a
normal distribution in the time domain with an average time of zero.
SOURCE CODE
OUTPUT
<communication toolbox was not present in the installation because of which the
source code could not be executed correctly>