Analog Communication Lab New Final 30sep2021
Analog Communication Lab New Final 30sep2021
0
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
1
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-1
Aim: - Basic commands and understanding of MATLAB.
Software: - MATLAB (R2015a)
Working environment
2
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
COMMANDS: -
Command Purpose
Clc Clears command window.
clear Removes variables from memory.
exist Checks for existence of file or variable.
global Declares variables to be global.
help Searches for a help topic.
lookfor Searches help entries for a keyword.
quit Stops MATLAB.
who Lists current variables.
whos Lists current variables (long display).
Command Purpose
disp Displays contents of an array or string.
fscanf Read formatted data from a file.
; Supress screen printing
fprintf Performs formatted writes to screen or file.
input Displays prompts and waits for input.
3
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Array commands
Plotting commands
Command Purpose
axis Sets axis limits.
fplot Intelligent plotting of functions.
grid Displays gridlines.
plot Generates xy plot.
print Prints plot or saves plot to a file.
title Puts text at top of plot.
Xla`bel Adds text label to x-axis.
ylabel Adds text label to y-axis.
axes Creates axes objects.
close Closes the current plot.
close all Closes all plots.
figure Opens a new figure window.
4
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
5
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Trigonometric functions
6
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
7
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Applications: -
• Statistics and machine learning (ML)
This toolbox in MATLAB can be very handy for the programmers. Statistical
methods such as descriptive or inferential can be easily implemented.
• Curve fitting
The curve fitting toolbox helps to analyse the pattern of occurrence of data. After a
particular trend which can be a curve or surface is obtained, its future trends can be
predicted.
• Control systems
Systems nature can be obtained. Factors such as closed-loop, open-loop, its
controllability and observability, Bode plot, Nyquist plot, etc can be obtained.
• Signal Processing
Signals and systems and digital signal processing are taught in various engineering
streams. But MATLAB provides the opportunity for proper visualization of this.
• Deep learning
Its a subclass of machine learning which can be used for speech recognition,
financial fraud detection, medical image analysis.
• Image processing
The most common application that we observe almost every day are bar code
scanners, selfie (face beauty, blurring the background, face detection), image
enhancement, etc.
Conclusion: -
MATLAB helps you take your ideas beyond the desktop. You can run your analyses on
larger data sets, and scale up to clusters and clouds. MATLAB code can be integrated
with other languages, enabling you to deploy algorithms and applications within web,
enterprise, and production systems. Experiment 1
8
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-2
Aim: - To perform amplitude modulation using MATLAB.
Apparatus Used: - MATLAB software.
Theory: - Modulation is a process by which some characteristics of a carrier is varied
accordance with a modulating wave signal. It causes a shift in a range of frequencies in a
signal.
Amplitude modulation: -
It is defined as a process in which the amplitude of the carrier wave c(t) is varied about a
mean value, linearly with the baseband signal m(t). Baseband signal is also called message
signal and modulating wave.
m(t)=Am.cos(2.π.fm.t)
Consider a sinusoidal carrier wave c(t) defined by
c(t)=Ac. cos(2.π.fc.t)
here Ac is the carrier amplitude and fc is the carrier frequency.
Let m(t) denote the baseband signal that carries the specification of the message. An
amplitude modulated AM wave may thus be described, in its most general form as function
of time as:
s(t)=[Ac+m(t)] cos(2.π.fc.t)
s(t)=[Ac+Am. cos(2.π.fm.t)] cos(2.π.fc.t)
s(t)=Ac.[1+µ cos(2.π.fm.t)] cos(2.π.fc.t)
µ=Am/Ac;
s(t)=Ac.[1+ka.m(t)] cos(2.π.fc.t);
µ=Am.ka
( Amax− Amin)
μ=
( Amax + Amin)
9
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Figure of merit:
MATLAB code: -
clc
clear all
close all
fm=5;
fc=100;
10
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Am=5;
t=-0.20:0.001:0.20;
plot(t,c,'r');
title('carrier signal wave');
xlabel('time');
ylabel('amplitude');
legend('carrier wave');
grid on;
11
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
xlabel('time');
ylabel('amplitude');
legend('signal wave');
grid on;
12
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
n=2^(nextpow2(nfft))
f=(0:n -1)*(1000/n)
C=abs(fft(s3,n));
plot(C);
Calculations: -
s/n. Modulation Modulation index
1 Critical μ=50-0/50+0 =1
Conclusion: -
An amplitude modulated signal s(t) has been generated whose amplitude describes the
characteristics of message signal. Also required condition for 0o phase shift in s(t) is Ac> Am(t)
, with carrier frequency much larger than message frequency.
13
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-3
Theory: -
Frequency modulation (FM) is a type of modulation where the frequency of the carrier is
varied in accordance with the modulating signal. The amplitude of the carrier remains constant.
The information-bearing signal (the modulating signal) changes the instantaneous frequency
of the carrier. Since the amplitude is kept constant, FM modulation is a low noise process and
provides a high-quality modulation technique that is used for music and speech in high-fidelity
broadcasts.
The classic definition of FM is that the instantaneous output frequency of a transmitter is varied
in accordance with the modulating signal. Recall that we can write an equation for a sine wave
as follows: e(t) = Ep sin (ωt + φ)
The constant is the modulation index for FM. It is defined as follows: m= δ/fm
The Greek letter δ represents the frequency deviation and f m represents the modulating
frequency that causes the deviation. As in the case of AM, this time domain representation of
the FM signal can be converted to an equivalent frequency-domain expression that
includes the carrier and sidebands. Because the mathematics required for this
conversion are quite complex, we will only consider the result:
14
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
The Jn(x) functions are known as Bessel Functions of First kind. Graphs of J n(x) look like
slowly decreasing sine and cosine functions. The Jn(x) functions are a closely related family of
functions in the same way that sin(nx) and cos(nx) for a family of similar functions.
The zeroth-order Bessel Functions, J0(m) determines the amplitude of the carrier. The nth
Bessel function Jn(m) determines the amplitude of the nth pair of sidebands. There are two
important concepts contained in the expression shown above.
The amplitude of the carrier depends on m. the modulation index. This is quite different from
AM, where the amplitude of the carrier was independent of the value of m. There is an infinite
number of sidebands. Thus, the theoretical bandwidth of FM is infinite.
An infinite bandwidth signal would be very difficult to transmit. Fortunately, the higher-order
sidebands in FM have extremely low amplitude and may be ignored. For example: if the
modulation index is 5, only the first 7 sidebands are significant in value.
There is a rule of thumb, known as Carson’s Rule, that predicts the bandwidth occupied by the
significant sidebands of an FM signal, based on the maximum modulation frequency and its
corresponding modulation index:
B = 2 fm(m+1) = 2( δmax+ fm)
Parameter fm is the frequency of the modulating signal, δmax is the maximum deviation, and m
is the corresponding modulation index. If a range of frequencies is used to modulate the carrier,
the maximum modulating frequency and its corresponding modulation index are used.
Commercial FM broadcasting uses a maximum deviation of 75 KHz and a maximum
modulating frequency of 15 KHz. Substituting these values into Carson’s Rule gives:
B = 2*(75+15) = 180 KHz.
15
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Applications:
FM applications are divided into two broad categories:
Wideband FM (WFM)
Narrowband FM (NBFM)
The primary difference between the two types of FM is the number of sidebands in the
modulated signal. Wideband FM has a large number (theoretically infinite) number of
sidebands. Narrowband FM has only a single pair of significant sidebands.
16
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
clc
clear all
close all
Am=1;
fm=25;
fc=200;
A=10;
b=4;
t=0:0.00001:0.25;
m=Am*cos(2*pi*fm*t);
subplot(3,1,1);
plot(t,m);
title('message signal wave');
xlabel('time');
ylabel('amplitude');
17
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
c=A*cos(2*pi*fc*t);
subplot(3,1,2);
plot(t,c);
s= A*cos((2*pi*fc*t)+b*sin(2*pi*fm*t));
subplot(3,1,3);
plot(t,s);
title('Frequency Modulated signal wave');
xlabel('time');
ylabel('amplitude');
legend('wave');
grid on;
18
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Result: -
We have successfully studied and obtained the frequency modulated (FM) waveforms on
MATLAB
19
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-4
AIM: - To perform DSB-SC amplitude modulation using MATLAB
Theory: -
Double-sideband suppressed-carrier transmission (DSB-SC) is the transmission in which
frequencies produced by Amplitude Modulation (AM) are symmetrically spaced above and
below the carrier frequency and the carrier level is reduced to the lowest practical level, ideally
being completely suppressed.
Mathematical Expression: –
Let consider the mathematical expression for message signal is
m(t) = Am*cos(2πfmt) and
carrier signal
c(t) = Ac*cos(2πfct)
Mathematically, we can represent the equation of DSBSC wave as the product of
modulating and carrier signals. s(t)=m(t)c(t)
s(t)=AmAc*cos(2πfmt) cos(2πfct)
𝐴𝑚𝐴𝑐 𝐴𝑚𝐴𝑐
s(t) = cos [2π(fc + fm)t] + cos[2π(fc − fm)t]
2 2
20
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
fmax=fc + fm
fmin=fc−fm
BW=2fm
Similarly, we will get the lower sideband power same as that of upper sideband power.
𝐴𝑚 2 𝐴𝑐 2
PLSB= 8𝑅
MATLAB Code: -
clc
clear all
close all
fm=10;
fc=100;
t=-0.2:0.001:0.2;
21
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
xlabel('time---->');
ylabel('amplitude---->');
x=fft(m);
subplot(3,2,2);
plot(abs(x));
title('message signal');
xlabel('frequency----->');
ylabel('amplitude----->');
Ac=10;
c=Ac*cos(2*pi*fc*t);
subplot(3,2,3);
plot(t,c,'r');
title('carrier signal');
xlabel('time ----->');
ylabel('amplitude ----->');
y=fft(c);
subplot(3,2,4);
plot(abs(y));
title('carrier signal');
xlabel('frequency ----->');
ylabel('amplitude ----->');
s=m.*c;
z=fft(s);
subplot(3,2,5);
plot(t,s,'r');
title('modulated signal');
xlabel('time---->');
ylabel('amplitude---->');
subplot(3,2,6);
plot(abs(z));
title('modulated signal');
xlabel('frequency----->');
ylabel('amplitude----->');
22
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Conclusion: -
We have successfully performed and obtained the waveforms for Double Side Band
Suppressed carrier (DSB-SC) modulated signal.
23
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-5
AIM: - To perform Single Side Band Suppressed Carrier (SSB-SC) modulation.
Apparatus Required: -MATLAB R2018b
Theory:
SSB-SC Modulation: The process of suppressing one of the sidebands along with the carrier
and transmitting a single sideband is called as Single Sideband Suppressed Carrier.
An SSB signal is produced by passing the DSB signal through a highly selective band pass
filter. This filter selects either the upper or the lower sideband. Hence transmission bandwidth
can be cut by half if one sideband is entirely suppressed. This leads to single-sideband
modulation (SSB). In SSB modulation bandwidth saving is accompanied by a considerable
increase in equipment complexity.
This SSBSC system, which transmits a single sideband, has high power, as the power allotted
for both the carrier and the other sideband is utilized in transmitting this Single Sideband.
Modulating signal: m(t)= Am*cos (2 π*fm* t)
Carrier signal: c(t)=Ac*cos(2π*fc*t)
The resulting DSB-SC modulated wave is:
Sdsb(t)= c(t)* m(t) = Ac*Am*cos[2π*fc*t]* cos(2 π*fm* t)
24
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Introductio
Block Diagram: -
25
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
close all;
clear all;
clc;
t=0:0.001:1;
fm=20;
fc=50;
am=1;
ac=1;
m1=am*cos(2*pi*fm*t); %message signal
subplot(5,1,1);
plot(t,m1);
title('Message Signal');
m2=am*sin(2*pi*fm*t) ; %quadrature of message
c1=ac*cos(2*pi*fc*t); %carrier signal
subplot(5,1,2);
plot(t,c1);
title('Carrier Signal');
c2=ac*sin(2*pi*fc*t); %quadrature of carrier
m=1;
g = ac*(1+m.*m1).*c1 %amplitude modulated signal
amf=fft(g);
subplot(5,1,3);
plot(t,abs(amf));
title('AM Signal in frequency domain');
ussb=m1.*c1-m2.*c2;
lssb=m1.*c1+m2.*c2;
fussb=fft(ussb);
flssb=fft(lssb);
26
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
subplot(5,1,4);
plot(t,abs(fussb));
plot(t,abs(flssb));
title('LSB Signal in frequency domain');
Output: -
Result: -
Single Sideband Modulation was studied and plots obtained for both Upper Sideband and
Lower Sideband modulation waves in the frequency domain using MATLAB.
27
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-6
Objective: - Theoretical study of receiver.
Theory: -
Receiver: It is an electronic equipment which pickups the desired signal, reject the unwanted
signal and demodulate the carrier signal to get back the original modulating signal.
Function of Receiver:
Design of Receiver:
28
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Tuned RF receiver:
TRF receiver is a receiver where the tuning, i.e., selectivity is provided by the radio frequency
stages.
In essence the simplest tuned radio frequency receiver is a simple crystal set. Tuning is
provided by a tuned coil / capacitor combination, and then the signal is presented to a simple
crystal or diode detector where the amplitude modulated signal is recovered.
• Signal detector:
The detector enabled the audio from the amplitude
modulation signal to be extracted. It used a form of detection
called envelope detection and used a diode to rectify the
signal.
• Audio amplifier:
Audio stages to provide audio amplification.
Amplify the recovered signal.
29
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
BLOCK DIAGRAM
Advantages:
• TRF receivers are simple to design and allow the broadcast frequency 535KHz
to 1640KHz.
• High sensitivity.
Disadvantages:
• At the higher frequency, it produces difficulty in design.
• It has poor audio quality.
• Instability
• Poor in BW
• Poor selectivity.
30
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
BLOCK DIAGRAM
• RF section
• Consists of a pre-selector and an amplifier.
• Pre-selector is a broad-tuned band pass filter with an adjustable center
frequency used to reject unwanted radio frequency and to reduce the
noise bandwidth.
• RF amplifier determines the sensitivity of the receiver and a predominant
factor in determining the noise figure for the receiver.
▪ Mixer/converter section
• Consists of a radio-frequency oscillator and a
mixer.
• Choice of oscillator depends on the stability and
accuracy desired.
• Mixer is a nonlinear device to convert radio
frequency to intermediate frequencies (IF).
The shape of the envelope, the bandwidth and the original information contained in the
envelope remains unchanged although the carrier and sideband frequencies are translated
from RF to IF.
• IF section
• Consists of a series of IF amplifiers and band pass filters to achieve most of the
receiver gain and selectivity.
• The IF is always lower than the RF because it is easier and less expensive to construct
high-gain, stable amplifiers for low frequency signals.
31
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
• Detector section:
• To convert the IF signals back to the original source information
(demodulation).
• Can be as simple as a single diode or as complex as a balanced
demodulator.
DRAWBACKS OVERCOMED
• Stability- as high frequency is down converted to IF the reactance of stray
capacitances will not decrease as it was at high frequencies resulting in increased
feedback.
• No variation in BW- as IF range is 438 to 465KHz (in case of AM receivers) mostly
455KHz, appropriate for Q limit (120).
• Better selectivity- as no adjacent channels are picked due to variation in BW.
32
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-7
Objective: To study and analyze the Electromagnetic Spectrum.
Theory:
The electromagnetic spectrum is a continuum of all electromagnetic waves arranged
according to frequency and wavelength. The electromagnetic waves travel at the same speed,
that is, the speed of light – 3 x 108 metres/second.
Waves in the electromagnetic spectrum can be broadly classified as follows:
1) GAMMA-RAYS:
Gamma rays have the smallest wavelengths (< 10-12 metres) and the most energy of
any wave in the electromagnetic spectrum. They are produced by the hottest and most
energetic objects in the universe, such as neutron stars and pulsars. On Earth, gamma
waves are generated by nuclear explosions, lightning, and radioactive decays.
Unlike optical light and x-rays, gamma rays cannot be captured and reflected by
mirrors. Gamma-ray wavelengths are so short that they can pass through the space
within the atoms of a detector. Gamma-ray detectors typically contain densely packed
crystal blocks. As gamma rays pass through, they collide with electrons in the crystal.
This process is called Compton scattering, wherein a gamma ray strikes an electron
and loses energy. These collisions create charged particles that can be detected by the
sensor.
33
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
2) X-RAYS:
X-Rays are produced when high-velocity electrons collide with the metal plates,
thereby giving the energy as the X-Rays and themselves absorbed by the metal plate.
Working of X-Rays
Like Gamma Rays, X-Rays also have a high penetrating power, but less than that of
Gamma Rays. They are used for medical purposes to detect breakage in human bones.
3) Ultraviolet Radiation:
34
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Unlike X-rays, ultraviolet radiation has a low power of penetration; hence, its direct
effects on the human body are limited to the surface skin. The direct effects include
reddening of the skin (sunburn), pigmentation development (suntan), aging, and
carcinogenic changes.
4) Visible Rays:
The visible Rays spectrum is the section of the electromagnetic radiation spectrum that
is visible to the human eye. Essentially, that equates to the colors the human eye can
see. It ranges in wavelength from approximately 400 nanometers (4 x 10 -7 m, which is
violet) to 700 nm (7 x 10-7 m, which is red). The edges of the visible ray spectrum blend
into the ultraviolet and infrared levels of radiation.
Uses and Applications:
The main benefit of visible ray is that it allows us to see objects, thereby leading to
35
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
The infrared spectrum is the invisible light with frequencies below that of the red
light. The infrared spectrum is between 700 nm to 0.1 mm in wavelength, which can
be divided into near, mid, and far-infrared spectrum. The longer the wavelength, the
lower the frequency.
Much of the energy from the sun reaches the Earth in the form of infrared
radiation. Different ranges of infrared frequency have different applications:
1) Near-infrared light, with wavelengths between 700 – 1400 nm, generates the
most heat but does not penetrate deep into human tissues. Near-infrared rays
are used in electronic applications like TV remote sensors and photography.
Their applications can be somewhat similar to visible light applications since
their wavelength ranges are close.
3) Far-infrared light, with wavelengths between 3000 nm – 0.1 mm. Far infrared
penetrates deepest into the tissues. Its health benefits come from both generating
heat and other properties. Far-infrared light can potently reduce inflammation
and oxidative stress. It increases circulation, improves blood vessel and heart
functions, reduces pain and fatigue, and normalizes blood pressure.
36
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
The attenuation of glass optical fiber is caused by two factors, absorption and scattering.
Absorption occurs in several specific wavelengths called water bands due to the absorption
by minute amounts of water vapor in the glass. Fiber optic transmission wavelengths are
determined by two factors: longer wavelengths in the infrared for lower loss in the glass
fiber and at wavelengths which are between the absorption bands. The infrared
wavelengths transition between light and heat, like we can see the dull red glow of an
electric heating element and feel the heat. At longer wavelengths, ambient temperature
becomes background noise, disturbing signals. And there are significant water bands in the
infrared. Hence, we don't use any other higher wavelength.
6) Microwaves:
Microwaves are defined as electromagnetic radiations with a frequency ranging between
300 MHz to 300 GHz while the wavelength ranges from 1 mm to around 30 cm. The
microwave radiation is commonly referred to as microwaves. They fall between the
infrared radiation and radio waves in the electromagnetic spectrum. Microwaves are used
in Long distance telephone communication, cellular phones, television networks, satellites,
wireless LANs, etc.
Features of Microwaves:
1. Microwaves travel in straight lines, and so the transmitter and receiver stations should
be accurately aligned to each other.
2. Microwave propagation is line-of-sight propagation. So, towers hoisting the stations
should be placed so that the curvature of the earth or any other obstacle does not interfere
with the communication.
3. Since it is unidirectional, it allows multiple receivers in a row to receive the signals
without interference.
4. Microwaves do not pass-through buildings. So, indoor receivers cannot be used
effectively.
37
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
5. Microwaves are often refracted by the atmospheric layers. The refracted rays take longer
time to reach the destination than the direct rays. This causes out of phase transmission,
called multipath fading.
Microwaves propagate through microwave circuits, components, and devices, which act
as a part of Microwave transmission lines, broadly called as Waveguides.
Types of Waveguides:
There are five types of waveguides:
• Rectangular waveguide
• Circular waveguide
• Elliptical waveguide
• Single-ridged waveguide
• Double-ridged waveguide
These waveguides are one conductor structures, that can support a TE or a TM wave, but
not a TEM wave.
7) Radio Waves:
Radio waves are the waves having the longest wavelength in the electromagnetic spectrum.
These waves are a kind of electromagnetic radiation and have a frequency from high 300
GHz to low as 3 kHz though somewhere it is defined as above 3 GHz as microwaves. At
300 GHz, the wavelength is 1 mm and at 3 kHz is 100 km. They travel at the speed of light
just like all other electromagnetic waves do.
Radio waves are usually produced by radio transmitters and can be received by radio
receivers. Radio waves having different frequencies contains various characteristics of
propagation in the Earth’s atmosphere. The long waves get diffracted around different
obstacles and follow the outline whereas the short waves reflect the ionosphere and get
38
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
back over the horizon of sky waves. The propagation distance of both the waves is limited
to the visual horizon as short wavelengths bend or diffract little and travel in a line of sight.
We use radio waves in almost every aspect of our daily lives. Artificially formed radio
waves are used in radio communication, radar, computer networks, broadcasting,
different navigation systems, and different applications.
39
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Conclusion:
The electromagnetic spectrum is the organization of seven different wavelengths and each
of them is having their own use. An electromagnetic wave is any disturbance in the electric
and magnetic fields that propagates. All electromagnetic waves propagate at the speed of
light in a vacuum. The seemingly disparate phenomena of electricity, magnetism, and
optics are all related aspects of the larger phenomenon of electromagnetism.
40
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-8
Objective: - To design different types of Analog filters and implement the design using
MATLAB.
Theory: -
It is sometimes desirable to have circuits capable of selectively filtering one frequency or range
of frequencies out of a mix of different frequencies in a circuit. A circuit designed to perform
this frequency selection is called a filter circuit, or simply a filter. In the field of electronics,
there are many practical applications for filters. Examples include: -
• Radio communications: Filters enable radio receivers to only "see" the desired signal
while rejecting all other signals (assuming that the other signals have different
frequency content).
• DC power supplies: Filters are used to eliminate undesired high frequencies (i.e., noise)
that are present on AC input lines. Additionally, filters are used on a power supply's
output to reduce ripple.
• Audio electronics: A crossover network is a network of filters used to channel low-
frequency audio to woofers, mid-range frequencies to mid-range speakers, and high-
frequency sounds to tweeters.
• Analog-to-digital conversion: Filters are placed in front of an ADC input to
minimize aliasing.
The four primary types of filters include the low-pass filter, the high-pass filter, the band-pass
filter and the notch filter (or the band-reject or band-stop filter). Take note, however, that the
terms "low" and "high" do not refer to any absolute values of frequency, but rather they are
relative values with respect to the cut-off frequency.
41
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Low-Pass Filter: -
A low pass filter is a filter which passes low-frequency signals and blocks, or impedes, high-
frequency signals. In other words, low-frequency signals go through much easier and with
less resistance and high-frequency signals have a much harder getting through, which is why
it's a low pass filter.
A Low pass RC filter, again, is a filter circuit composed of a resistor and capacitor which
passes through low-frequency signals, while blocking high frequency signals. To create a low
pass RC filter, the resistor is placed in series to the input signal and the capacitor is placed in
parallel to the input signal, such as shown in the circuit below:
42
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
clc;
clear all;
close all;
R2=1e+3;
c2=1e-8;
fh=1/(2*pi*R2*c2);%for low pass filter
f=0:1e+6;
g1=1./(1+1j*f./fh);
semilogx(f,g1);
title('Low-pass filter')
grid on;
xlabel('Frequency');
ylabel('Gain');
43
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
High-Pass Filter: -
A High Pass Filter is the exact opposite to the low pass filter circuit as the two components
have been interchanged with the filters output signal now being taken from across the resistor
Whereas the low pass filter only allowed signals to pass below its cut-off frequency point, ƒc,
the passive high pass filter circuit as its name implies, only passes signals above the selected
cut-off point, ƒc eliminating any low frequency signals from the waveform. Consider the
circuit below.
44
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
45
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
clc;
clear all;
close all;
R1=1e+4;
c1=1e-6;
fh=1/(2*pi*R1*c1);%for high pass filter
f=0:1e+6;
g1=1./(1-1j.*fh./f);
semilogx(f,g1);
title('High-pass filter')
grid on;
xlabel('Frequency');
ylabel('Gain');
46
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Band-Pass Filter: -
By connecting or “cascading” together a single Low Pass Filter circuit with a High Pass
Filter circuit, we can produce another type of passive RC filter that passes a selected range or
“band” of frequencies that can be either narrow or wide while attenuating all those outside of
this range. This new type of passive filter arrangement produces a frequency selective filter
known commonly as a Band Pass Filter or BPF for short.
47
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
%for low pass filter
R2=1e+3;
c2=1e-8;
fh=1/(2*pi*R2*c2);
f=0:1e+6;
g2=1./(1+j*f./fh);
subplot(3,1,1);
semilogx(f,g2);
title('Low-pass filter')
grid on;
xlabel('Frequency');
ylabel('Gain');
48
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
49
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Band-Stop Filter: -
By combining a basic RC low-pass filter with a RC high-pass filter we can form a simple
band-pass filter that will pass a range or band of frequencies either side of two cut-off
frequency points. But we can also combine these low and high pass filter sections to produce
another kind of RC filter network called a band stop filter that can block or at least severely
attenuate a band of frequencies within these two cut-off frequency points.
The Band Stop Filter, (BSF) is another type of frequency selective circuit that functions in
exactly the opposite way to the Band Pass Filter we looked at before. The band stop filter,
also known as a band reject filter, passes all frequencies with the exception of those within a
specified stop band which are greatly attenuated.
50
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB Code: -
%for low pass filter
R2=1e+4;
c2=1e-6;
fh=1/(2*pi*R2*c2);
f=0:1e+6;
g2=1./(1+j*f./fh);
subplot(3,1,1);
semilogx(f,g2);
title('Low-pass filter')
grid on;
xlabel('Frequency');
ylabel('Gain');
51
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Conclusion: -
An introduction to analog RC filters has been presented. The main utility of the analysis
methods presented is in ascertaining how a given filter will affect the spectrum of a signal
passing through it. Some of the concepts introduced were transfer functions, amplitude
response, phase response, poles and zeros, filter stability, and the general use of complex
numbers to represent signals, spectra, and filters. Additionally, practical filtering in
MATLAB has been discussed.
52
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-9
Theory: -
Modulation:
Modulation is a very important step in the transmission of signal. Our message signal is
generally a low frequency signal and path loss of signal is proportional to the square of the
wavelength (and hence inversely proportional to the square of the frequency).
So, we have to find a method to devise a way to encode our message signal to higher
frequency signals. We can tinker with different properties of carrier signals like frequency,
phase, amplitude to encode our message signal on the carrier signal.
Block diagram for modulation
53
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Types of Modulation: -
54
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
55
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Advantages of modulation: -
The antenna used for transmission, had to be very large, if modulation was not introduced.
The range of communication gets limited as the wave cannot travel to a distance without
getting distorted.
Following are some of the advantages for implementing modulation in the communication
systems.
● Antenna size gets reduced.
● No signal mixing occurs.
● Communication range increases.
● Multiplexing of signals occurs.
● Adjustments in the bandwidth is allowed.
● Reception quality improves.
56
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Demodulation:
Demodulation is a technique to obtain message signal from the receive signal. Modulation
and demodulation go hand in hand.
57
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-10
Aim: - To study the different communication channels and signals.
Theory: -
Communication channel is a connection between transmitter and receiver through
which data can be transmitted. Communication channel also called as communication
media or transmission media.
58
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Types of Channels:
• Guided
• Unguided
Transmission media that confine the signal physically to a cable of some kind are called
guided media.
Media that broadcast the signal openly using radio waves, light, or sound are called
unguided media.
59
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
• Twisted pair
• Coaxial
• Optical Fiber
Twisted pair:
The most common electrical transmission medium is twisted pair. Twisted pair is used for
standard telephone and most local area network wiring.
Twisted pair consists of two wires twisted together. One wire act as the signal carrier, the
other is the ground return. Twisting the two wires together reduces noise interference
somewhat because the same noise presumably occurs in both wires, which cancels the noise
to some extent. Groups of twisted pairs are frequently bundled together in a larger cable.
There are several standardized types of twisted pair wiring.
There are also some wire pairs that are untwisted.
Coaxial cable:
Coaxial cable consists of a wire surrounded by insulation.
The second ‘’wire’’ consists of acopper shield that surrounds the insulation. The shield acts as a
signal return, but also prevents external noise signals from interfering with the signal carried by
60
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Optical Fiber:
Fiber-optic cables carry signals in the form of light. Optical signals are produced by using
the electrical data signal to turn a light on and off very rapidly. A laser or light-emitting
diode is used as the light source. It is not possible to use a conventional light bulb, because
a light bulb cannot be switched on and
off rapidly enough. An optical detector at the other
end
61
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
of the cable converts the light signal back to electrical form. The cable itself consists of one
or more strands of glass fiber specially designed to carry waves of light.
Each strand is thinner than a human hair and may be tens or hundreds of miles long. The
bundle of fibers is surrounded by a plastic sheath, called cladding, to protect the fibers.
Fiber-optic cables are often grouped together in bundles, which are further protected by an
additional tough plastic jacket. Light is confined to the fibers, and attenuation is
exceptionally low. Fiber-optic cable is nearly invulnerable to most forms of noise, since the
signal is optical, not electrical. It is also difficult to tap into a fiber-optic cable, which offers
some measure of security.
The Unguided media is also of three different types: Terrestrial Microwave, Satellite
Microwave, Broadcast Radio
Terrestrial Microwave:
Requires fewer repeaters. Use a parabolic dish to focus a narrow beam 1-40GHz frequencies.
Satellite Microwave:
Receives on one frequency, & transmits on another frequency e.g., uplink 5.925-6.425 GHz
& downlink 3.7-4.2 GHz Height 35,784km Spaced at least 3-4° apar
Broadcast Radio:
Radio frequency range is 3kHz to 300GHz.Use broadcast radio of 30MHz - 1GHz, for FM
radio, UHF and VHF television Is unidirectional. Suffers from multipath interference
Reflections from land, water, other objects. Are used for multicasts communications, such as
radio and television, and paging system.
Fundamentals of Signaling:
Signals are the means used to communicate data. A signal is carried on a communication
channel as an electrical voltage, an electromagnetic radio wave, or a switched light. Data is
represented by changes in the signal as a function of time. The signal may take on a
continuous range of values, in which case it is known as an analog signal, or it can take on
62
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
only discrete values, in which case it is known as a discrete signal. A binary discrete signal
is usually called a digital signal. A representation of a signal shown as a function of time is
called a waveform.
Analog Signaling:
Although digital transmission is favored for most use these days, analog transmission
methods are required for wireless media, such as radio and sound, for wireless networking,
and for other forms of wireless data communication. Radio transmission methods include
satellite, cellular phone, wireless networking, and microwave communications. Radio
waves can also be converted to equivalent electrical signals and used with wire media and
may be preferred when a mixture of digital and analog data is being transmitted through
the cable, such as cable TV with a digital Internet feed, though most cable TV is now
digitally distributed and converted, if necessary, to analog at the customer’s site. Both wired
and wireless analog signals are particularly susceptible to noise and attenuation and other forms
of distortion in a channel because the distortion created cannot be detected and reversed.
There is also interference from other signals operating nearby in the same spectrum. In
addition, analog signals are susceptible to distortion of the waveform that results from
variations in attenuation and phase shifts that occur across the channel spectrum.
Digital Signaling:
Digital data being carried by a digital communication channel is already in correct format,
so theoretically no conversion is necessary. In practice, the situation is somewhat different.
Since there is no carrier present on the channel, there may be no way to detect a string of
bits at the receiving end of the channel for some signals. The signal in Figure 14.14, for
example, consists of a string of twelve zeros, but there’s no way to tell. A ‘‘0’’ is represented by a
value of 0 volts, and the state of the line when no signal is present is also 0 volts. Obviously,
there is no way to determine the presence of this signal.
Conclusion: -
• Communication channel is essential for communication systems.
• The transmission characteristics are important in selecting channel
because they directly affect the communication quality.
• Different types of communication channels have different transmission
characteristics and costs, they are used in different applications.
63
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Experiment-11
Objective: - To perform Frequency Division multiplexing (FDM).
Theory: -
64
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
Advantages of FDM: -
• A large number of signals (channels) can be transmittedsimultaneously.
• FDM does not need synchronization between its transmitter andreceiver for proper
operation.
• Demodulation of FDM is easy.
• Due to slow narrow band fading only a single channel gets affected.
Disadvantages of FDM: -
Applications of FDM: -
1. FDM is used for FM & AM radio broadcasting. Each AM and FM radio station uses a
different carrier frequency. In AM broadcasting, these frequencies use a special band from
530 to 1700 KHz. All these signals/frequencies are multiplexed and are transmitted in air.
A receiver receives all these signals but tunes only one which is required. Similarly, FM
broadcasting uses a bandwidth of 88 to 108 MHz
2. FDM is used in television broadcasting.
3. First generation cellular telephone also uses FDM.
MATLAB CODE
close all;
clear all;
clc;
x1 = sin(2*pi*2*t); % signal 1
z1 = fft(x1);
z1=abs(z1);
x2 = sin(2*pi*10*t); % signal 2
z2 = fft(x2);
z2=abs(z2);
subplot(4,1,2); plot(x2);
title('signal 2'); xlabel('time');
ylabel('amplitude');
subplot(4,1,3);
plot(z1);
title('Spectrum of
signal 1');
66
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
xlabel('freqency');
ylabel('magnitude');
subplot(4,1,4);
plot(z2);
title('Spectrum of signal 2');
xlabel('freqency');
ylabel('magnitude');
z=z1+z2;
% freqency multiplexingfigure;
plot(z);
title('frequency multiplexed signals');
% freqency demultiplexingfigure;
f1=[ones(10,1);
zeros(182,1);
ones(10,1)];
%applying filter for signal 1dz1=z.*f1;
d1 = ifft(dz1);
subplot(2,1,1) plot(t*100,d1);
title('recovered signal 1');
xlabel('time');
ylabel('amplitude');
f2=[zeros(10,1);
ones(182,1);
zeros(10,1)];
% applying filter for signal 2dz2=z.*f2;
d2 = ifft(dz2);
subplot(2,1,2) plot(t*100,d2);
title('recovered signal 2');
xlabel('time');
ylabel('amplitude');
67
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
MATLAB OUTPUT: -
68
Lab Manual for Analog communication Lab (ECP 212 B Tech IV Semester)
69
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
Conclusion: -
We successfully Multiplexed two monotone signal and obtained theOriginal Signal
through Demultiplexing.
70
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
Experiment-12
Objective: -
To study and generate pulse amplitude modulation (PAM), pulse width modulation (PWM),
pulse position modulation (PPM) using MATLAB, take input (amplitude of modulating
wave, amplitude of carrier wave, frequency of modulating wave, frequency of carrier wave,
sampling frequency) from the user.
Theory: -
PAM: -
Pulse Amplitude Modulation (PAM) is an analog modulation scheme in which the amplitude
of the pulse carrier varies proportional to the instantaneous amplitude of the message signal.
The pulse amplitude modulated signal, will follow the amplitude of the original signal, as the
signal traces out the path of the whole wave. In natural PAM, a signal sampled at the Nyquist
rate is reconstructed, by passing it through an efficient Low Pass Frequency (LPF) with exact
cutoff frequency.
PWM: -
Pulse Width Modulation (PWM) or Pulse Duration Modulation (PDM) or Pulse Time
Modulation (PTM) is an analog modulating scheme in which the duration or width or time of
the pulse carrier varies proportional to the instantaneous amplitude of the message signal. The
width of the pulse varies in this method, but the amplitude of the signal remains constant.
Amplitude limiters are used to make the amplitude of the signal constant. These circuits clip
off the amplitude, to a desired level and hence the noise is limited.
PPM: -
Pulse Position Modulation (PPM) is an analog modulating scheme in which the amplitude
and width of the pulses are kept constant, while the position of each pulse, with reference to
the position of a reference pulse varies according to the instantaneous sampled value of the
message signal. The transmitter must send synchronizing pulses (or simply sync pulses) to
keep the transmitter and receiver in synchronism. These sync pulses help maintain the
position of the pulses.
71
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
Code: -
PAM: -
close all
clear all
clc
t = 0: 1/1e3: 5;
d = 0: 1/5: 10;
x = 1+sin(2*pi*t);
subplot(3,1,1);
plot(x);
title('message');
xlabel('time');
ylabel('amplitude');
y = pulstran(t, d,'rectpuls',0.1);
subplot (3,1,2)
plot(y);
title ('Pulse Input ');
xlabel('time');
ylabel('amplitude');
z=x.*y; % PAM output
subplot (3,1,3)
plot(z);
title('PAM modulation ');
xlabel('time');
ylabel('amplitude');
PWM: -
clc;
close all;
clear all;
t=0:0.0001:1;
s=sawtooth(2*pi*10*t+pi);
plot(s);
m=0.75*sin(2*pi*1*t);
n=length(s);
72
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
for i=1:n
if (m(i)>=s(i)) pwm(i)=1;
elseif (m(i)<=s(i)) pwm(i)=0;
end
end
plot(t,pwm,'g',t,m,'r',t,s,'b');
xlabel('time index');
ylabel('amplitide');
grid on;
axis([0 1 -1.5 1.5]);
title('PWM Wave')
Graph: -
PPM: -
clc;
close all;
clear all;
fc=1000;
fs=10000;
fm=200;
t=0:1/fs:((2/fm)-(1/fs));
x=0.5*cos(2*pi*fm*t)+0.5;
y=modulate(x,fc,fs,'PPM');
subplot(2,1,1);
plot(x);
title('msg signal');
subplot(2,1,2);
73
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
plot(y);
axis([0 500 -0.2 1.2]);
title('PPM');
Graph: -
Conclusion: -
The main advantage of PAM is better noise immunity and possibility of use of repeaters
which makes communication more reliable and error free. PWM converts an audio signal into
a sequence of pulses having constant amplitude, but the width is proportional to the
amplitude of an audio signal.PPM pulses having the same amplitude and width. The
information is conveyed via changing position of pulses.
74
Lab Manual for Analog Communication Lab (ECP 212 B Tech IV Semester)
Appendix
75