Advanced Communication Lab
Advanced Communication Lab
SEVENTH SEMESTER
PUDUKKOTTAI (Dt)
MOOKAMBIGAI COLLEGE OF ENGINEERING
SRINIVASA NAGAR, KALAMAVUR – 622502.
BONAFIDE CERTIFICATE
This is to certify that the bonafide record of practical done in
Register Number:
STAFF IN – CHARGE
OPTICAL EXPERIMENTS
1 DC Characteristics of LED and PIN Photo diode
MICROWAVE EXPERIMENTS
13 VSWR Measurement
14 Impedance Measurement
15 Impedance Matching
16 Gunn Diode Characteristics
18 Characterization of Isolators.
19 Characterization of Circulators
AIM
To find the DC characteristics of LED source and PIN photo diode
APPARATUS REQUIRED
S.No APPARATUS QUANTITY
1. OFT Power Supply 1
2. Digital Multimeter 1
3. LED Module 1
4. Power Meter 1
PROCEDURE
FOR LED characteristics
1. Connect the OFT power supply to the module
2. Measure the voltage V1 across the resistor R1 and calculate the current through LED If
which is If =V1/180 for 850nm PF
3. Now measure the voltage VLED across the LED and note down
4. Measure the optical power output of LED
5. Calculate the power output in mW
6. Turn the potentiometer in clockwise direction slightly towards the maximum till you get
the convenient reading
7. Draw the graph
For Photo Diode Characteristics
1. Put 1M ohm resistor across VL.
2. Connector ST Connector end of the patch cord supplied with the module to the power
source.
3. Set the power source in CW mode and to give maximum output power.
4. Slightly unscrew the black colored cap of the PD to loosen it.
5. Vary the optical power P from -18 dBm approx in steps of 5dBm.
Tabulate the readings as shown Iz=VL/1x106
6. Plot the graph P vs L.
Forward Bias and Reverse Bias
1. Put 10K ohm resistor across VL.
2. Adjust the potentiometer and fix the bias voltage at 10V
3. Connector ST connector end of the patch cord supplied with the module to the power
source
4. Set the power source in CW mode and to give maximum output power
5. Slightly unscrew the black colored cap of the PD to loosen it.
6. Slightly unscrew the black colored cap of the PD to loosen it.
7. Vary the optical power P from -18 dBm approx in steps of 5dBm.
Tabulate the readings as shown Iz=VL/1x106
8. Plot the graph P vs L.
TABULATION [LED & PIN DIODE Module]
RESULT:
MODE CHARACTERISTICS OF FIBERS
AIM
To find the mode characteristics of single mode fiber.
APPARATUS REQUIRED
PROCEDURE
1. Arrange the set up as per the diagram using XYZ positioner set up for coupling laser
beam into fiber.
2. Mount the LD unit on to mounting post
3. Refer the LD module manual for LD driver setup.
4. Insert the SST-ST-PC-3-A patch cord fully to connector holder mounted in XYZ
positioned
5. Keep the LD driver multi turn potentiometer at minimum position and turn ON the
module.
6. Increase the LD power to maximum by turning the multi turn potentiometer in clockwise
direction
7. Adjust the collimating lens of the LD unit such that bright spot turns to very small
focused spot
TABULATION
4. Calculate θe=(θe1+θe2)/2
5. Calculate MFD=2*λ/π*tanθe
RESULT:
MEASUREMENT OF CONNECTOR AND BENDING LOSSES
AIM
To measure the connector and bending losses in optical fiber using communication link.
APPARATUS REQUIRED
2. 20 MHz Oscilloscope.
3. Function Generator.
PROCEDURE
PROPAGATION LOSS
BENDING LOSS
2 2
RESULT
FIBER OPTIC ANALOG LINK
AIM
To study the relationship between input signal and output signal through setting up of a
APPARATUS REQUIRED
TABULATION
Gain (dB)
Frequency (Hz)
RESULT
FIBER OPTIC DIGITAL LINK
AIM
To measure the maximum bit rate through setting up of a 850nm optical fiber digital link.
APPARATUS REQUIRED
TABULATION
Amplitude (V)
RESULT
NUMERICAL APERTURE
AIM
To measure the Numerical Aperture of the optical fiber provided with OFT using 650 nm
LED.
APPARATUS REQUIRED
2. 20 MHz Oscilloscope.
4. 1m fiber cable.
PROCEDURE
1. Connect the one end of the 1 meter fiber cable at the LED 650 nm SFH75V connector.
2. Connect the other end of the fiber cable to the NA stand.
3. Vary the height of the fiber cable tip in the NA stand and note the corresponding
diameter of light circle.
4. Find the NA calculation using formula.
TABULATION
RESULT
EYE DIAGRAM
AIM:
To analyse the eye diagram using fiber optic link.
APPARATUS REQUIRED:
THEORY:
The eye-pattern technique is a simple but powerful measurement method for assessing
the data-handling ability of a digital transmission system. This method has been used
extensively for evaluating the performance of wire systems and can also be applied to optical
fiber data links. The eye-pattern measurements are made in the time domain and allow the
because this is the characteristic of data streams found in practice. This type of signal
generates ones and zeros at a uniform rate but in a random manner. A variety of
pseudorandom pattern generators are available for this purpose. A pseudorandom bit
TABULATION
PROCEDURE:
1. Make connections as shown in figure. Connect the power supply cables with proper polarity
to Link – B Kit. While connecting this, ensure that the power supply is OFF.
2. Keep switch SW7 as shown in figure to generate PRBS signal.
6. Select PRBS generator clock at 32 KHz by keeping jumper JP4 at 32K position.
11. Connect the post DATA OUT of PRBS Generator to the IN post of digital buffer.
13. Slightly unscrew the cap of SFH 756V (660) nm. Do not remove the cap from the
connector. Once the cap is loosened, insert the one Meter Fiber into the cap. Now tighten the
cap by screwing it back.
14. Slightly unscrew the cap of RX1 Photo Transistor with TTL logic output SFH 551V. Do not
remove the cap from the connector. Once the cap is loosened, insert the other end of fiber
into the cap. Now tighten the cap by screwing it back.
16. Connect detected signal TTL OUT to vertical channel Y input of oscilloscope. Then
observe EYE PATTERN by selecting EXT.TRG. KNOB on oscilloscope as shown in figure.
Observe the Eye Pattern for different clock frequencies. As clock frequency increases the EYE
opening becomes smaller.
RESULT:
WIRELESS
COMMUNICATION
EXPERIMENTS
WIRELESS CHANNEL SIMULATION INCLUDING FADING AND DOPPLER
AIM:
To simulate the wireless channel including Rayleigh and Rician multipath fading channel
system objects and Doppler shifts.
COMPONENTS REQUIRED:
Personal computer
MATLAB software
THEORY:
Fading:
Fading is used to describe the rapid fluctuations of the amplitudes, phases or multipath
delays of a radio signal over a short period of time or travel distance, so that large-scale path
loss effects may be ignored. Fading is caused by interference between two or more versions of
the transmitted signal which arrive at the receiver at slightly different times. These waves called
multipath waves, combine at the receiver antenna to give a resultant signal which can vary
widely in amplitude and phase, depending on the distribution of the intensity and relative
propagation time of the waves and the bandwidth of the transmitted signal.
Doppler Effects:
Due to the relative motion between the mobile and base station each multipath wave
experiences an apparent shift in frequency. The shift in received signal frequency due to
motion is called Doppler Effect, and it is directly proportional to the velocity and direction of
motion of the mobile with respect to the direction of arrival of the received multipath wave.
PROCEDURE:
Processing a signal using a fading channel involves the following steps:
1. Create a channel System object that describes the channel that you want to use. A channel
object is a type of MATLAB variable that contains information about the channel, such as the
maximum Doppler shift.
2. Adjust properties of the System object, if necessary, to tailor it to your needs. For example,
you can change the path delays or average path gains.
3. Apply the channel System object to your signal using the step method, which generates
random discrete path gains and filters the input signal. The characteristics of a channel can be
shown with the built-in visualization support of the System object.
PROGRAM:
RESULT:
SIMULATION OF CHANNEL ESTIMATION, SYNCHRONIZATION AND
EQUALIZATION TECHNIQUES
AIM:
Apparatus Required:
MATLAB 7 software.
Computer.
Theory:
A linear equalizer is a linear filter that is designed to reduce the noise and ISI according
to some criterion of optimality. An Equalizer is a compensator for Channel Distortion. For
communication channels in which the channel characteristics are unknown or time-varying,
optimum transmit and receive filters cannot be designed directly. For such channels, an
equalizer is needed to compensate for the ISI created by the distortion in the channel. There
are three types of equalization methods commonly used:
• Maximum Likelihood (ML) Sequence Detection - Optimal, but Impractical.
• Linear Equalization - Suboptimal, but simple.
• Non-Linear Equalization (DFE) - for severe ISI channels.
Linear Equalizers are simple to implement and are highly effective in channels where is
the ISI is not severe (like the wire line telephone channel). Most linear equalizers are
implemented as a linear transversal filter.
Adaptive equalizer is an essential component of communication systems. Traditionally,
ISI problem is resolved by channel equalization in which the aim is to construct an equalizer
such that the impulse response of the channel/equalizer combination is as close to z-d as
possible, where d is a delay. Frequently the channel parameters are not known in advance and
moreover they may vary with time, in some applications significantly. Hence, it is necessary to
use the adaptive equalizers, which provide the means of tracking the channel characteristics.
The Normalized LMS Linear Equalizer block uses a linear equalizer and the normalized
LMS algorithm to equalize a linearly modulated baseband signal through a dispersive channel.
During the simulation, the block uses the normalized LMS algorithm to update the weights,
once per symbol. When you set the Number of samples per symbol parameter to 1, the block
implements a symbol-spaced (i.e. T-spaced) equalizer and update the filter weights once for
each symbol. When you set the Number of samples per symbol parameter to a value greater
than 1, the weights are updated once every Nth sample, for a T/N-spaced equalizer
Algorithm:
1. Reset randomizers.
2. Represent channel order.
3. Represent iteration step size.
4. Assume input as Gaussian.
5. Plot iteration Vs error
Program:
clear all;
close all;
clc;
hold off
sysorder=5;
N=2000;
inp=randn(N,1);
n=randn(N,1);
[b,a]=butter(2,0.25);
h=[0.0976;0.2873;0.3360;0.2210;0.0960];
Gz=tf(b,a,-1);
y=lsim(Gz,inp);
n=n*std(y)/(10*std(n));
d=y+n;
totallength=size(d,1);
N=60;
w=zeros(sysorder,1);
for n=sysorder:N
u=inp(n:-1:n-sysorder+1);
y(n)=w'*u;
e(n)=d(n)-y(n);
if n<20
mu=0.32;
else
mu=0.15;
end
w=w+mu*u*e(n);
end
for n=N+1:totallength
u=inp(n:-1:n-sysorder+1);
y(n)=w'*u;
e(n)=d(n)-y(n);
end
hold on
plot(d)
plot(y,'r-');
legend('Actual weights','estimated weights')
title('system output');
xlabel('samples');
ylabel('True and estimated output');
figure
semilogy((abs(e)));
title('error curve');
xlabel('samples');
ylabel('error value');
figure
plot(h,'k+')
hold on
plot(w,'r*')
legend('Actual weights','estimated weights')
title('comparison of Actual weights and the estimated weights');
axis([0 6 0.05 0.35]);
Program:
clc; close all; clear all; hold off;
N = 2000;
inp= randn(N,1);
n= randn(N,1);
[b,a]= butter(2, 0.25);
Gz= tf(b,a,-1);
sysorder = 10;
imp = [1;zeros(49,1)];
h= filter(b,a,imp);
h= h(1: sysorder);
y= lsim(Gz,inp);
n= n* std (y) | (10*std (n));
d = y+n;
totallength = size(d,1);
N = 80;
lamda = 0.9995;
delta = 1e10;
p = delta*eye(sysorder);
w = zeros(sysorder, 1);
for n = sysorder : N
u= inp(n:-1:n-sysorder+1);
phi = u'*p;
k = phi' | (lamda+phi*u);
y(n) = w'*u;
e(n) = d(n)-y(n);
w = w+k*e(n);
p = (p-k*phi) | lamda;
recordedw(1:sysorder,n) = w;
end
for n = N+1:totallength
u = inp(n:-1:n-sysorder+1);
y(n) = w'*u;
e(n) = d(n) - y(n);
end
plot (d);
hold on;
plot (y,'v-');
title ('system output'); xlabel ('samples'); ylabel ('True and estimated output');
figure;
semilogy (abs(e));
title ('Error Curve'); xlabel ('samples'); ylabel ('error value');
Result:
ANALYSING IMPACT OF PULSE SHAPING AND MATCHED FILTERING USING
SOFTWARE DEFINED RADIOS
AIM:
To analyse the impact of pulse shaping and matched filtering by using SDR.
COMPONENTS REQUIRED:
Personal computer
MATLAB software
SDR hardware
THEORY:
Pulse shaping:
Pulse shaping is the process of changing the waveform of transmitted pulses. Its purpose is to
make the transmitted signal better suited to its purpose or the communication channel, typically
by limiting the effective bandwidth of the transmission. By filtering the transmitted pulses this
way, the intersymbol interference caused by the channel can be kept in control. In RF
communication, pulse shaping is essential for making the signal fit in its frequency band.
Typically pulse shaping occurs after line coding and modulation.
Examples of pulse shaping filters that are commonly found in communication systems are:
Sinc shaped filter
Raised-cosine filter
Gaussian filter
Matched Filter:
A matched filter is obtained by correlating a known delayed signal, or template, with an
unknown signal to detect the presence of the template in the unknown signal. This is
equivalent to convolving the unknown signal with a conjugated time-reversed version of the
template. The matched filter is the optimal linear filter for maximizing the signal-to-noise ratio
(SNR) in the presence of additive stochastic noise.
Matched filters are commonly used in radar, in which a known signal is sent out, and the
reflected signal is examined for common elements of the out-going signal. Pulse compression
is an example of matched filtering. It is so called because impulse response is matched to input
pulse signals. Two-dimensional matched filters are commonly used in image processing, e.g.,
to improve SNR for X-ray. Matched filtering is a demodulation technique with LTI (linear time
invariant) filters to maximize SNR. It was originally also known as a North filter.
Software Defined Radio:
Software-defined radio (SDR) is a radio communication system where components that
have been traditionally implemented in hardware (e.g. mixers, filters, amplifiers,
modulators/demodulators, detectors, etc.) are instead implemented by means of software on a
personal computer or embedded system. While the concept of SDR is not new, the rapidly
evolving capabilities of digital electronics render practical many processes which were once
only theoretically possible.
A basic SDR system may consist of a personal computer equipped with a sound card,
or other analog-to-digital converter, preceded by some form of RF front end. Significant
amounts of signal processing are handed over to the general-purpose processor, rather than
being done in special-purpose hardware (electronic circuits). Such a design produces a radio
which can receive and transmit widely different radio protocols (sometimes referred to as
waveforms) based solely on the software used.
Software radios have significant utility for the military and cell phone services, both of
which must serve a wide variety of changing radio protocols in real time.
In the long term, software-defined radios are expected by proponents like the SDR Forum (now
The Wireless Innovation Forum) to become the dominant technology in radio communications.
SDRs, along with software defined antennas are the enablers of the cognitive radio.
A software-defined radio can be flexible enough to avoid the "limited spectrum"
assumptions of designers of previous kinds of radios, in one or more ways including.
Spread spectrum and ultrawideband techniques allow several transmitters to transmit in
the same place on the same frequency with very little interference, typically combined with one
or more error detection and correction techniques to fix all the errors caused by that
interference.
Software defined antennas adaptively "lock onto" a directional signal, so that receivers
can better reject interference from other directions, allowing it to detect fainter transmissions.
dio techniques: each radio measures the spectrum in use and communicates
that information to other cooperating radios, so that transmitters can avoid mutual interference
by selecting unused frequencies. Alternatively, each radio connects to a geolocation database
to obtain information about the spectrum occupancy in its location and, flexibly, adjusts its
operating frequency and/or transmit power not to cause interference to other wireless services.
PROGRAM:
M = 16; % Modulation order
k = log2(M); % Number of bits per symbol
numBits = 3e5; % Number of bits to process
sps = 4; % Number of samples per symbol (oversampling factor)
filtlen = 10; % Filter length in symbols
rolloff = 0.25; % Filter rolloff factor
rrcFilter = rcosdesign(rolloff,filtlen,sps);
fvtool(rrcFilter,'Analysis','Impulse')
rng default; % Use default random number generator
dataIn = randi([0 1],numBits,1); % Generate vector of binary data
dataInMatrix = reshape(dataIn,length(dataIn)/k,k); % Reshape data into binary 4-tuples
dataSymbolsIn = bi2de(dataInMatrix); % Convert to integers
dataMod = qammod(dataSymbolsIn,M);
txFiltSignal = upfirdn(dataMod,rrcFilter,sps,1);
EbNo = 10;
snr = EbNo + 10*log10(k) - 10*log10(sps);
rxSignal = awgn(txFiltSignal,snr,'measured');
rxFiltSignal = upfirdn(rxSignal,rrcFilter,1,sps); % Downsample and filter
rxFiltSignal = rxFiltSignal(filtlen + 1:end - filtlen); % Account for delay
dataSymbolsOut = qamdemod(rxFiltSignal,M);
dataOutMatrix = de2bi(dataSymbolsOut,k);
dataOut = dataOutMatrix(:); % Return data in column vector
[numErrors,ber] = biterr(dataIn,dataOut);
fprintf('\nFor an EbNo setting of %3.1f dB, the bit error rate is %5.2e, based on %d errors.\n', ...
EbNo,ber,numErrors)
Visualize Filter Effects
EbNo = 20;
snr = EbNo + 10*log10(k) - 10*log10(sps);
rxSignal = awgn(txFiltSignal,snr,'measured');
rxFiltSignal = upfirdn(rxSignal,rrcFilter,1,sps); % Downsample and filter
rxFiltSignal = rxFiltSignal(filtlen + 1:end - filtlen); % Account for delay
eyediagram(txFiltSignal(1:2000),sps*2);
eyediagram(rxSignal(1:2000),sps*2);
eyediagram(rxFiltSignal(1:2000),2);
scatplot = scatterplot(sqrt(sps)*...
rxSignal(1:sps*5e3),...
sps,0,'g.');
hold on;
scatterplot(rxFiltSignal(1:5e3),1,0,'kx',scatplot);
title('Received Signal, Before and After Filtering');
legend('Before Filtering','After Filtering');
axis([-5 5 -5 5]); % Set axis ranges
hold off;
RESULT:
OFDM SIGNAL TRANSMISSION AND RECEPTION USING SDR
AIM:
To transmit and receive the OFDM signal using SDR.
COMPONENTS REQUIRED
Personal computer
MATLAB software
SDR
THEORY:
Frequency division multiplexing (FDM) is a technology that transmits multiple signals
simultaneously over a single transmission path, such as a cable or wireless system. Each
signal travels within its own unique frequency range (carrier), which is modulated by the data
(text, voice, video, etc.).
Orthogonal FDM's (OFDM) spread spectrum technique distributes the data over a large
number of carriers that are spaced apart at precise frequencies. This spacing provides the
"orthogonality" in this technique which prevents the demodulators from seeing frequencies
other than their own. The benefits of OFDM are high spectral efficiency, resiliency to RF
interference, and lower multi-path distortion. This is useful because in a typical terrestrial
broadcasting scenario there are multipath-channels (i.e. the transmitted signal arrives at the
receiver using various paths of different length). Since multiple versions of the signal interfere
with each other (inter symbol interference (ISI)) it becomes very hard to extract the original
information. OFDM is sometimes called multi-carrier or discrete multi-tone modulation. It is the
modulation technique used for digital TV.
Algorithm:
1. Represent the number of bits per OFDM symbol
2. Select the number of symbols
3. Select FFT size
4. Select modulation order
5. Introduce symbol to noise ratio
6. SNR to be used by AWGN function
7. Generating data and Modulating data
8. Serial to parallel conversion
9. Pilot insertion
10. Adding cyclic prefix
11. Parallel to serial conversion
12. Passing through the channel
13. Pilot removal and plotting the result.
Program (Using BPSK):
close all;
clear all;
clc;
nbitpersym = 52; % number of bits per OFDM symbol (same as the number of subcarriers for BPSK)
nsym = 10^4; % number of symbols
len_fft = 64; % fft size
sub_car = 52; % number of data subcarriers
EbNo = 0:2:12;
M= 2; % Modulation order
EsNo= EbNo + 10*log10(52/64)+ 10*log10(64/80); % symbol to noise ratio
snr=EsNo - 10*log10(52/64); % snr as to be used by awgn fn.
% Generating data
t_data=randint(nbitpersym*nsym,1);
% modulating data
mod_data = pskmod(t_data, M);
% serial to parallel conversion
par_data = reshape(mod_data,nbitpersym,nsym).';
% pilot insertion
pilot_ins_data=[zeros(nsym,6) par_data(:,[1:nbitpersym/2]) zeros(nsym,1)
par_data(:,[nbitpersym/2+1:nbitpersym]) zeros(nsym,5)] ;
% fourier transform time doamain data and normalizing the data
IFFT_data = (64/sqrt(52))*ifft(fftshift(pilot_ins_data.')).';
% addition cyclic prefix
cylic_add_data = [IFFT_data(:,[49:64]) IFFT_data].';
% parallel to serial coversion
ser_data = reshape(cylic_add_data,80*nsym,1);
% passing thru channel
no_of_error=[];
ratio=[];
for ii=1:length(snr)
chan_awgn = sqrt(80/52)*awgn(ser_data,snr(ii),'measured'); % awgn addition
ser_to_para = reshape(chan_awgn,80,nsym).'; % serial to parallel coversion
cyclic_pre_rem = ser_to_para(:,[17:80]); %cyclic prefix removal
FFT_recdata =(sqrt(52)/64)*fftshift(fft(cyclic_pre_rem.')).'; % freq domain transform
rem_pilot = FFT_recdata (:,[6+[1:nbitpersym/2] 7+[nbitpersym/2+1:nbitpersym] ]); %pilot removal
ser_data_1 = reshape(rem_pilot.',nbitpersym*nsym,1); % serial coversion
demod_Data = pskdemod(ser_data_1, M); %demodulating the data
[no_of_error(ii),ratio(ii)]=biterr(t_data,demod_Data) ; % error rate calculation
end
% plotting the result
semilogy(EbNo,ratio,'--or','linewidth',2);
hold on;
theoryBer = (1/2)*erfc(sqrt(10.^(EbNo/10)));
semilogy (EbNo,theoryBer,'--*b','linewidth',2);
grid on
axis([0 12 10^-5 .1])
xlabel('EbNo');
ylabel('BER')
title('Bit error probability curve for BPSK using OFDM');
Observation:
% Script for computing the BER for BPSK in OFDM modulation in the
% presence of Rayeligh fading channel
% parameters
% FFT size. nFFT 64
% Number of used subcarriers. nDSC 52
% FFT Sampling frequency 20MHz
% Subcarrier spacing 312.5kHz
% Used subcarrier index {-26 to -1, +1 to +26}
% Cylcic prefix duration, Tcp 0.8us
% Data symbol duration, Td 3.2us
% Total Symbol duration, Ts 4us
clear all
nFFT = 64; % fft size
nDSC = 52; % number of data subcarriers
nBitPerSym = 52; % number of bits per OFDM symbol (same as the number of subcarriers for BPSK)
nSym = 10^4; % number of symbols
EbN0dB = [0:35]; % bit to noise ratio
EsN0dB = EbN0dB + 10*log10(nDSC/nFFT) + 10*log10(64/80); % converting to symbol to noise ratio
for ii = 1:length(EbN0dB)
% Transmitter
ipBit = rand(1,nBitPerSym*nSym) > 0.5; % random 1's and 0's
ipMod = 2*ipBit-1; % BPSK modulation 0 --> -1, 1 --> +1
ipMod = reshape(ipMod,nBitPerSym,nSym).'; % grouping into multiple symbolsa
% Assigning modulated symbols to subcarriers from [-26 to -1, +1 to +26]
xF = [zeros(nSym,6) ipMod(:,[1:nBitPerSym/2]) zeros(nSym,1) ipMod(:,[nBitPerSym/2+1:nBitPerSym])
zeros(nSym,5)] ;
% Taking FFT, the term (nFFT/sqrt(nDSC)) is for normalizing the power of transmit symbol to 1
xt = (nFFT/sqrt(nDSC))*ifft(fftshift(xF.')).';
% Appending cylic prefix
xt = [xt(:,[49:64]) xt];
% multipath channel
nTap = 10;
ht = 1/sqrt(2)*1/sqrt(nTap)*(randn(nSym,nTap) + j*randn(nSym,nTap));
% computing and storing the frequency response of the channel, for use at recevier
hF = fftshift(fft(ht,64,2));
% convolution of each symbol with the random channel
for jj = 1:nSym
xht(jj,:) = conv(ht(jj,:),xt(jj,:));
end
xt = xht;
Observation:
Program (Using QAM):
close all;
clear all;
clc;
% Generating and coding data
t_data=randint(9600,1)';
x=1;
si=1; %for BER rows
for d=1:100;
data=t_data(x:x+95);
x=x+96;
k=3;
n=6;
s1=size(data,2); % Size of input matrix
j=s1/k;
% Convolutionally encoding data
constlen=7;
codegen = [171 133]; % Polynomial
trellis = poly2trellis(constlen, codegen);
codedata = convenc(data, trellis);
%Interleaving coded data
s2=size(codedata,2);
j=s2/4;
matrix=reshape(codedata,j,4);
intlvddata = matintrlv(matrix',2,2)'; % Interleave.
intlvddata=intlvddata';
% Binary to decimal conversion
dec=bi2de(intlvddata','left-msb');
%16-QAM Modulation
M=16;
y = qammod(dec,M);
% scatterplot(y);
% Pilot insertion
lendata=length(y);
pilt=3+3j;
nofpits=4;
k=1;
for i=(1:13:52)
pilt_data1(i)=pilt;
for j=(i+1:i+12);
pilt_data1(j)=y(k);
k=k+1;
end
end
% De-Interleaving
deintlvddata = matdeintrlv(bin,2,2); % De-Interleave
deintlvddata=deintlvddata';
deintlvddata=deintlvddata(:)';
%Decoding data
n=6;
k=3;
decodedata =vitdec(deintlvddata,trellis,5,'trunc','hard'); % decoding datausing veterbi decoder
rxed_data=decodedata;
% Calculating BER
rxed_data=rxed_data(:)';
errors=0;
c=xor(data,rxed_data);
errors=nnz(c);
% for i=1:length(data)
%
%
% if rxed_data(i)~=data(i);
% errors=errors+1;
%
% end
% end
BER(si,o)=errors/length(data);
o=o+1;
end % SNR loop ends here
si=si+1;
end % main data loop
% Time averaging for optimum results
for col=1:25; %%%change if SNR loop Changed
ber(1,col)=0;
for row=1:100;
ber(1,col)=ber(1,col)+BER(row,col);
end
end
ber=ber./100;
%%
figure
i=0:2:48;
semilogy(i,ber);
title('BER vs SNR');
ylabel('BER');
xlabel('SNR (dB)');
grid on
Observation:
RESULT:
MICROWAVE
EXPERIMENTS
DETERMINATION OF FREQUENCY AND WAVELENGTH MEASUREMENT
AIM
To measure the frequency and wavelength of microwave oscillator and to demonstrate the
relationship between frequency guide and space wavelength.
APPARATUS REQUIRED:
THEORY
It uses only a single re-entrant microwave cavity as a resonator. The electron beam
emitted from the cathode is accelerated by the grid and passes through the cavity anode to the
repeller space between the cavity anode and the repeller electrode. The electrons in the beam
are velocity modulated before the beam passes through the cavity second time and will give up
the energy to cavity to maintain oscillations. This type of klystron oscillator is called as a reflex
klystron because of the reflex action of the electron beam. The physical design of the tube
controls the no. of modes possible in practical applications. The bunched electrons in a reflex
klystron can deliver maximum power to the cavity at any instant which corresponds to the
positive peak of the RF cycle of the cavity oscillation. The power output of a reflex klystron is
maximum, if the bunched electrons on return cross the cavity gap when the gap field is positive
maximum.
PRECAUTIONS
1. Before switch ON the power supply, ensure that all the knob are kept in minimum
position.
2. Switch ON the power supply, set the beam voltage between 230V to 270V.
3. Set the beam current in the range of 17mAmps to 20 mAmps. Always the repller voltage
having negative value it should be in the range of 160V to 200V.
BLOCK DIAGRAM
Slotted
Movable Matched section with Frequency
Termination
carriage
Short meter
CRO
TABULATION
Frequency 1st 2nd λg = 2(d2-d1) λc =2a Inner f= C √1/ (λg)2 +1/ (λc) 2
(GHz) Minimum Minimum cm cm dimension
(d1) cm (d2) cm of waveguide (GHz)
(a) cm
CALCULATIONS
FORMULAE
PROCEDURE
GENERAL
FREQUENCY MEASUREMENT
1. Tune the frequency meter until a dip is observed in the CRO or SWR meter
2. Note the frequency meter reading.
WAVELENGTH MEASUREMENT
1. Replace the matched Termination with movable short and detune the frequency meter.
2. Move the slotted section movable carriage probe along the line to get a minimum
deflection point.
3. Record the probe position as first voltage minimum (d1)
4. Move the probe in same direction along the line to get another minimum deflection point
.
5. Record the probe position as second voltage minimum (d2)
6. Calculate the λg =2(d2-d1)
7. Measure the waveguide inner dimension ’a’.
8. Calculate the frequency f= C √1/ (λg)2 +1/ (λc) 2 .
RESULT
Thus the frequency and guide wavelength of the microwave signal passing through rectangular
3. Guide wavelength = m
AIM
To measure low and medium VSWR using SWR meter method and high VSWR using
APPARATUS REQUIRED
PROCEDURE
GENERAL
1. Set up the equipment as shown in block diagram.
2. Energize the klystron and obtain the deflection on the CRO.
3. Move the probe on the slotted section. It is seen that deflection changes very little.
(i.e.) The transmission line is well matched.
BLOCK DIAGRAM
Slotted section
Movable short
CRO/VSWR
meter
PROCEDURE:
1. Setup the equipment as shown in block diagram.
2. Keep the control knobs of Gunn power supply (GPS) as below.
TABULATION
SWR method
Probe depth 0 3 5 7 9
SWR
CALCULATIONS
AIM
APPARATUS REQUIRED
PROCEDURE
BLOCK DIAGRAM
I (mA)
TABULATION
RESULT
DIRECTIONAL COUPLER
AIM
To measure the coupling factor and directivity of four port directional coupler.
APPARATUS REQUIRED
PROCEDURE
1. Connections are given as per the block diagram. measure the power at the input P1
2. Connect the matched termination at port 2 and detector mount is connected to port 4 of
DC.
3. Carefully remove the detector mount and put it in the place of load on port 2 to get P2
and then port 3 to get P3. The ratio are S21 = √P2/P1, S31 = √P3/P1.
4. Repeat step 4 with source at port 2 and port 3 to obtain the parameters
5. Calculate the coupling factor and directivity using formula.
FORMULA
Klystron Variable
Klystron power
mount with Attenuator
supply Isolator
tube
Detector
mount
CRO
RESULT
S-PARAMETER MEASUREMENT OF MICROWAVE COMPONENTS
AIM
APPARATUS REQUIRED
FORMULA USED
Gain (db) =20log (V0/Vin)
PROCEDURE
GENERAL
POWER MEASUREMENT
1. Connect the side arm of the H-plane or E-plane tee in the set up and measure the
voltage at two collinear arms.(port1 & port 2)
2. Find the both the signals are in-phase for H-plane and out of phase for E-plane tee.
3. Find the power using the formula
BLOCK DIAGRAM
Klystron
Variable
Klystron power
mount with Isolator
Attenuator
supply
tube
Waveguide Isolator/
Matched Slotted section Frequency
Circulator
termination with movable meter
carriage
Detector Mount
CRO
ISOLATOR
Input Output Input Output Scattering
voltage (v) voltage (v) voltage (v) voltage (v) Matrix
CIRCULATOR
Input voltage Output voltage Output voltage Scattering Matrix
(v) (v) (v)
CALCULATIONS
RESULT: