Adv Comm-22-08-24
Adv Comm-22-08-24
Index Page
List of experiments:
 1. Study the features of spectrum analyzer
 2. Obtain the Radiation pattern for different antennas using Antenna advanced Trainer kit.
          i. Dipole Antenna
         ii. Yagi Uda Antenna
         iii.Horn Antenna, etc.
 3. Time division multiplexing and de-multiplexing.
 4. Plotting eye diagram for baseband signal using MATLAB and verify using hardware.
 5. Plotting Constellation Diagram of QAM using MATLAB and verify using hardware.
 6. Generation of different types of signals using MATLAB.
 7. Modulation analysis on digital modulated single carrier signals using MATLAB.
 8. Simulation of CDMA system using MATLAB and verify using hardware.
 9. DQPSK Modulation and demodulation technique
 10. OFDM generation and detection.
                                  MAHATMA GANDHI INSTITUTE OF TECHNOLOGY
                                                           3
Course Outcomes: Upon completing this course the students will be able to:
      1. Simulate and analyze Digital signals.
      2. Simulate and analyze the M-ary modulation techniques.
      3. Simulate and study radiation pattern of different antennas.
      4. Analyze the multiple access techniques.
      5. Analyze the wireless standards for cellular networks like 3G (CDMA), 4G (OFDM)
                                                      4
1
                           5
5    CONTROL
6    MEASURE
                                              Meas Setup
                                           Meas Control  Restart
7 SYSTEM
                                                        System
               Preset
        File
                                        Save                       Save
     Now                        File
        Print Setup                                       Print
8 MARKER
10
                                6
                          GHz MHz kHz         Hz
                  +dBm   dBm mV V         A
NOTE
 11    VOLUME        VOLUME
                                        Speaker On Off         Det/Demod
 12    EXT KEYBOARD.          EXT KEYBOARD
NOTE
13 PROBE POWER
14 LO OUTPUT
 15    IF INPUT
 16    Return      Return
            Return
19 INPUT 50 INPUT 75
                                   7
CAUTION
20 Next Window
Zoom
21 Help Help
22 RF OUT 50 RF OUT 75
CAUTION
 23
                                             Auto Align
NOTE
                             8
    Detector
Ref Level
Change Title
Time/Date On Off
Marker
Marker
9
     Sweep (Single)      View/Trace
Freq Offset
Esc
Auto Align
Correction On Off
Trig Sweep
10
     Trace
Average On Off
11
Factory Preset
User Preset
Mode Preset
Preset User
                                Catalog
Factory    Mode
                                        System Power On/Preset             Preset Type
                             Y Axis Units
                                     dBm
                                  CF Step
                           13.2550000 GHz
                                               12
        Preset            Factory Preset    User Preset        Factory Preset
NOTE
NOTE
10 MHz
                                       13
Setting Frequency Span
                                    SPAN 5 0 MHz
10 MHz
Peak Search
Esc
                                       14
Active function   Marker
 15
Making a Basic Measurement
Viewing a Signal
are
                              Freq Count
                   Marker Count On Off     Off
NOTE
Marker Mkr CF to move the 10 MHz peak to the center of the display
NOTE
BW/Avg Res BW
Marker Off
NOTE
                                                 System Power On/Preset Save User Preset
                                                  16
     Frequency Count
     increases accuracy
17
      2. MEASUREMENT OF RADIATION PATTERN FOR
          DIPOLE, YAGI UDA AND HORN ANTENNA
OBJECTIVE :-
      To measure the radiation pattern of given microwave antenna
         EQUIPMENT REQUIRED:-
      Gunn oscillator with Power supply ,Pin modulator, Isolator, Frequency Meter, Variable
      Attenuator, Slotted Section, Tunable Probe VSWR Meter, Wave guide Stand, Horn
      antenna, Parabolic antenna, Movable Short/Matched Termination. and BNC cables etc.
BLOCK DIAGRAM:
PROCEDURE:
  1. Connect the blocks as shown above.
  2. Fire the Gunn diode and turn it for maximum output.
  3. Measure length and breadth of horn antenna.
   4. Set the transmitting and receiving horn antenna separated by a distance R=2D 2      0   .
      Where D is the maximum dimension of horn antenna.
   5. Adjust the height and azimuth of the receiving antenna for the maximum output. Set
      the pointer to zero degree.
   6. Note the transmitted and received powers.
   7. Move the receiving antenna orientation in steps of 10 degrees in one plane and note the
      corresponding power readings from VSWR meter or RF Power meter. Tabulate the
      readings
   8. Move the receiving antenna orientation in steps of 10 degrees in the other plane and
      note the corresponding power readings from VSWR meter or RF Power meter. Tabulate
      the readings
   9. Plot the radiation pattern in both the planes.
                                              18
Operating Conditions:
Observations:
Gain (G) =
                                       19
 Result:
                                  20
Dipole Antenna:
Objective: Plotting the Polar graph/ radiation pattern of an Antenna manually
Connection diagram:
Initial setup:
Main unit:
           Place the main unit on the table and connect power cord.
           RF Generator: Adjust Level Potentiometer to Maximum position.
           Modulation Generator: Select switch to                     and adjust Level
           Potentiometer to maximum position.
           Directional Coupler: Select the switch to         position and adjust FS
           ADJ Potentiometer to middle position.
1.   Install Transmitting mast, place it beside the main unit and connect it to the
2.   Install Receiving mast and keep it at some distance (around 1 meter) from the
     Transmitter mast.
3.   Place RF detector Unit beside the Receiving mast and connect it to the
4.   Connect an Adapter +9V to the RF Detector unit, Switch it on and keep the
     Level knob at middle position.
                                          21
5.
      Goniometer should be directed towards the RF Detector and also align the marker
                         degree position.
6.    Install Detector Antenna on the Receiving mast. Keep its direction towards the
      Transmitting mast by rotating it in counter clockwise direction.
7.
      towards the Receiving mast by rotating it in counter clockwise direction.
8.    Switch on the main unit and check the display in DPM of Directional Coupler. It
      will show some reading according to its level knob at starting.
9.    RF detector will also show some reading according to its level knob at starting.
      (In case of over loading, reduce it by level Potentiometer of RF detector)
10.   Now vary the FS Adjust Potentiometer of Directional Coupler to make the display
      reading 100 micro Amp and then adjust the Level of RF detector to show the ¾
Important Adjustments:
      Adjustment for
      Sometimes adjustment for antenna match is required to tune the antenna for
      maximum forward power to transmit and receive optimum/ maximum radiations
      for different Antennas. This is done by tuning the trimmer with the help of aligner.
      The trimmer is given on the top surface of the main unit.
      Adjustment of distance:
      For low gain antennas, the distance between Transmitting mast and Receiving
      mast may be decreased to get the sufficient signal level/readings at RF Detector.
      FS adjustment of Directional coupler reading:
      In case of low reading (for Low gain antennas), set the reading of DPM of
      Directional Coupler to 50 Micro Amp for these antennas and then adjust the Level
      of RF detector to show the ¾
11.   Rotate the transmitting Antenna between 0-360 degrees and observe the display
      at RF Detector. The variation in reading indicates that the transmitter and receiver
      are working and radiation pattern is formed.
12.   Observe the demodulated signal at the output socket of RF detector on
      oscilloscope. Vary the level of Modulation generator at transmitting unit and
      observe the variations in the demodulate signal. If requires, reduce the power
      using RF Level potentiometer to improve the shape of demodulated sine wave.
13.   Now the setup is ready for further experiments.
                                            22
Procedure:
1.   Get the setup ready.
2.   Ensure the following settings;
          Transmitting mast marker is           degree position.
          Both, transmitting and receiving antennas are facing each other in
          horizontal plane.
          Transmitter is tuned for maximum forward power to transmit and receive
          optimum/ maximum radiations for the antenna under test,
          DPM for FS adjust at transmitting unit is set for 100uA reading and DPM
          at RF detector unit is set for 70uA.
3.   Now to plot the Polar Graph/Radiation pattern of the transmitting antenna under
     test, start taking the readings at the interval 10 degrees and tabulate the degree v/s
     uA readings of RF detector unit display.
4.   Convert the noted micro Amp readings into dBuA with the help of the conversion
     chart given below. Following formula is used to convert the uA reading in to dB;
5.   Now plot the polar graph on the supplied polar graph paper as per the converted
     dBuA readings against degrees of rotation as shown in next figure. A typical polar
     graph for Folded
                                           23
                         Polar Graph/ Radiation pattern
6.   Calculate Beam width, Front / Back ratio, Directive gain of antenna. To
     calculate the above from the graph, please refer next figure and proceed as
     follows.
                                       24
 Beam width:
 Look for main lobe. Draw bore sight maxima line AA' Mark -3 dB from maximum on
 the bore sight line point B. Draw an arc of radius AB This arc will intersect main lobe
 at C & D. Measure angle CAD This angle is - 3 dB beam width. Similarly calculate
 -10 dB beam width.
 Front to back ratio:
 Look for the main lobe. Draw bore sight maxima line AA' Look for back lobe if any
 (At 180 ) If no back lobe, then,
                                                     AA'
                               Front to back ratio =     dB
                                                      1
 If back lobe is present then, measure AE, where E is the maximum of back lobe.
                                                     AA'
                               Front to back ratio =     dB
                                                     AE
 Gain of antenna:
 Since, we cannot have an ideal isotropic antenna we presume here that its maximum
 radiation intensity is 1dB and is 100% efficient. Under this assumption Gain of antenna
 (or Directional Gain of antenna) is
                                              AA' dB
                                         G=
                                                1
                                               25
Plotting the Polar Graph for Normalized reading:
7.   One can also plot the polar graph against normalized readings of RF Detector.
     The procedure to convert the Micro Amp in to normalize reading is given as
     follows:
     Consider the maximum reading say N (When the RF Detector receives maximum
     radiations) as 0 dB.
                             Let say it is N=50 Micro Amp,
     Convert next reading taken at the interval (10 degrees) say N1 by the following
     formula:
                               ln N1 / N = reading in dB
     Let take N1=40 Micro Amp,
     ln (40/50) = -0.22 dB
     Follow the same procedure for the further readings thus the generalized formula
     will be:
ln Nx / N = readings in dB
     Plot the radiation pattern of antenna with the new dB readings as usual.
8.   Now plot the polar graph on the supplied polar graph paper for normalized
     readings as per the converted dBuA readings against degrees of rotation.
                                          26
        3. Time Division Multiplexing & Demultiplexing
AIM:
 To study the time division multiplexing and Demultiplexing
EQUIPMENT REQUIRED:
   1. TDM Multiplexer trainer
   2. TDM De-Multiplexer trainer
   3. Storage Oscilloscope
   (Note: Storage oscilloscope is desired for satisfactory observation of TDM wave forms)
   4. Digital Multimeter.
   5.            -axial cables (standard accessories with trainer)
EXPERIMENTAL PROCEDURE:
MULTIPLEXER:
      1.   Observe the AF generator -1 output and note down the amplitude and frequency,
      2.   Observe the AF generator-2 output and note down the amplitude and frequency
      3.   Connect the AF generator -1 and -2 outputs to CH1 and CH2 OF TDM multiplexer.
      4.   Observe and connect the clock generator output to the control input to the TDM multiplexer (it acts
           like selection line for MUX)
      5.   Observer the TDM output in storage oscilloscope.
DE-MULTIPLEXER:
      6. Using coaxial cable, connect the TDM de-multiplexer.
      7. Connect the clock generator output in de-multiplexer trainer to the control input of the TDM de-
         multiplexer.
      8. Observe the de-multiplexed signals at CH1 and CH2.
      9. Connect the CH1 and CH2 outputs to low pass filter and amplifier and note down the outputs.
      CIRCUIT DIAGRAM:
      MULTIPLEXER:
                                                      27
Waveforms:
             28
Demultiplexed Outputs:
VIVA QUESTIONS:
                                                        29
4. Generation of different types of signals
using MATLAB
4. Exponential Signal
     n = 10; % Length of the signal
     a = 0.5; % Exponential rate
     t = 0:n-1;
     y = exp(a * t);
     stem(t, y);
     title('Exponential Signal');
     xlabel('Time');
     ylabel('Amplitude');
5. Sine Wave
     fs = 1000; % Sampling frequency
     t = 0:1/fs:1; % Time vector
     f = 5; % Frequency of the sine wave
     y = sin(2 * pi * f * t);
     plot(t, y);
     title('Sine Wave');
                            30
     xlabel('Time');
     ylabel('Amplitude');
                          32
Input signal:
                33
De-multiplexed Signal:
Tb = 1; % Bit duration
% ASK modulation
t = 0:1/Fs:Tb-1/Fs;
ask_signal = [];
if bit == 1
  else
                                     34
      ask_signal = [ask_signal zeros(size(t))];
end
end
figure;
plot(ask_signal);
xlabel('Time');
ylabel('Amplitude');
Tb = 1; % Bit duration
                                       35
% Generate random bits
% FSK modulation
t = 0:1/Fs:Tb-1/Fs;
fsk_signal = [];
if bit == 0
else
end
end
figure;
plot(fsk_signal);
xlabel('Time');
ylabel('Amplitude');
                                      36
37
             5. Plotting Eye Diagram for Baseband Signal
             using MATLAB and verify using Hardware.
% Parameters
bitRate = 1e6;     % Bit rate in bits per second
symbolRate = 1e6;    % Symbol rate in symbols per second
numBits = 1000;     % Number of bits in the signal
rolloff = 0.5;    % Rolloff factor for the raised cosine filter
snr = 20;       % Signal-to-noise ratio in dB
% Upsample the data and filter with the raised cosine filter
txSignal = upfirdn(data, txFilter, symbolRate/bitRate);
% Display grid
grid on;
                                                  38
39
         6. Plotting Constellation Diagram of QAM using
         MATLAB and verify using Hardware.
Aim
To generate a bit error rate versus Eb/No curve for a link that uses 8-QAM modulation and
demodulation in AWGN.
Algorithm Steps
  i.   Generate binary data and convert to 64-ary symbols.
Program
clear all; clc; close all;
M = 8; % Modulation order
rxSig = awgn(txSig,25);
scatterplot(rxSig);
berEst = zeros(size(EbNoVec));
for n = 1:length(EbNoVec)
numErrs = 0;                                  38
numBits = 0;
dataSym = bi2de(dataIn);
txSig = qammod(dataSym,M);
end
berEst(n) = numErrs/numBits;
end
                                             39
% Determine the theoretical BER curve by using the berawgn function.
%The estimated BER data points are well aligned with the theoretical curve. figure;
semilogy(EbN
hold on
semilogy(EbNoVec,berTheory)
grid
legend(
Scatter plot 10 0
10 -2
0.5
0 10 -4
          -0.5
                                                      10 -6
-1
                                                      10 -8
                 -1   -0.5         0        0.5   1
                                                              5       10       15
                               In-Phase                           Eb/No (dB)
Observation Table
Result
The above MATLAB code is executed and the constellation diagram generated by the QAM
system isanalyzed.
                                                        40
        5. QAM Modulation and Demodulation Techniques
AIM:-
To plot the wave form for 8 quadrature amplitude modulated signal (QAM) using MATLAB for a
stream of bits.
THEORY:-
Quadrature amplitude modulation (QAM) is both an analog and a digital modulation scheme. It
conveys two analog message signals, or two digital bit streams, by changing (modulating) the
amplitudes of two carrier waves, using the amplitude-shift keying (ASK) digital modulation scheme
or amplitude modulation (AM) analog modulation scheme. The two carrier waves, usually
sinusoids, are out of phase with each other by 90° and are thus called quadrature carriersor
quadrature components      hence the name of the scheme. The modulated waves are summed,and
the resulting waveform is a combination of both phase-shift keying (PSK) and amplitude-shift keying
(ASK), or (in the analog case) of phase modulation (PM) and amplitude modulation. In the digital
QAM case, a finite number of at least two phases and at least two amplitudes are used.PSK
modulators are often designed using the QAM principle, but are not considered as QAMsince
the amplitude of the modulated carrier signal is constant. QAM is used extensively as a modulation
scheme for digital telecommunication systems. Spectral efficiencies of 6 bits/s/Hz can be achieved
with QAM.
The 4-QAM and 8-QAM constellations
                                              41
42
Time domain for an 8-QAM signal
RESULT: Hence the output is verified for 8-QAMmodulation and demodulation techniques.
                                          43
6. Generation of different types of signals using MATLAB.
AIM: To Check the waveforms of Binary Phase Shift Keying Modulation using MATLAB
Software.
EQUIPMENTS:
PC with MATLAB software
PROGRAM:
clc;
clear all;
close all;
data=[0 1 0 1 1 1 0 0 1 1]; % information
%Number_of_bit=1024;
%data=randint(Number_of_bit,1);
figure(1)
stem(data, 'linewidth',3), grid on;
title(' Information before Transmiting ');
axis([ 0 11 0 1.5]);
% QPSK modulation
y=[];
y_in=[];
y_qd=[];
for(i=1:length(data)/2)
   y1=s_p_data(1,i)*cos(2*pi*f*t); % inphase component
   y2=s_p_data(2,i)*sin(2*pi*f*t) ;% Quadrature component
   y_in=[y_in y1]; % inphase signal vector
   y_qd=[y_qd y2]; %quadrature signal vector
   y=[y y1+y2]; % modulated signal vector
end
Tx_sig=y; % transmitting signal after modulation
tt=T/99:T/99:(T*length(data))/2;
figure(2)
subplot(3,1,1);
plot(tt,y_in,'linewidth',3), grid on;
title(' wave form for inphase component in QPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude(volt0');
subplot(3,1,2);
plot(tt,y_qd,'linewidth',3), grid on;
title(' wave form for Quadrature component in QPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude(volt0');
subplot(3,1,3);
plot(tt,Tx_sig,'r','linewidth',3), grid on;
title('QPSK modulated signal (sum of inphase and Quadrature phase signal)');
xlabel('time(sec)');
ylabel(' amplitude(volt0');
% QPSK demodulation
Rx_data=[];
Rx_sig=Tx_sig; % Received signal
for(i=1:1:length(data)/2)
figure(3)
stem(Rx_data,'linewidth',3)
title('Information after Receiveing ');
axis([ 0 11 0 1.5]), grid on
OUTPUT WAVEFORMS:
7. Modulation analysis on digital modulated single carrier signals using MATLAB.
FSK Modulation and Demodulation technique
Aim
To generate and pass a FSK signal through an AWGN channel and estimate the resulting
bit errorrate (BER).
Algorithm Steps
  i.   Generate binary data.
Program
% Pass an FSK signal through an AWGN channel and estimate the resulting bit error rate
(BER).
% Compare the estimated BER to the theoretical value.
for n = 1:length(EbNoVec)
    % Convert Eb/No to SNR
    snrdB = EbNoVec(n) + 10*log10(k) -10*log10(nsamp);
  hold on
semilogy(EbNoVec,berTheor
y) grid
Error
10 -1
10 -2
10 -3
                           10 -4
                                   5   6   7   8        9   10   11   12
                                               Eb/No (dB)
                                                   48
     Observation Table
                     SNR in        BER(simulated)
                     dB
                        5
12
     Result
The above matlab code is executed and the estimated BER is compared with the theoretical value.
                                            49
8.Simulation of RAKE Receiver for CDMA
    communication using MATLAB software
Aim
To implement the transmission of packets using 16QAM and pseudo-random sequences over
Rayleighchannel and a rake receiver to de-spread the signal.
Algorithm Steps
  i. QAM-modulate the data symbols.
  ii. Spread the modulated symbols using spreading sequence
 iii. Pass the modulated signal through an AWGN channel.
 iv. Despread the received symbols using spreading sequence
  v. Demodulate the received signal.
 vi. Convert the demodulated symbols into binary data.
vii. Calculate the number of bit errors.
Program
clear all; clc; close all;
% For spreading
sequence=[1 1 1 1 1 -1 -1 1 1 -1 1 -1 1]’;
seqLen=length(sequence);
for n = 1:length(EbNoVec)
    % Convert Eb/No to SNR
    snrdB = EbNoVec(n);
     % Reset the error and bit
     countersnumErrs = 0;
     numBits = 0;
          % Spreading
          txSigSS_aux = sequence*txSig’;
          txSigSS=reshape(txSigSS_aux,1,seqLen*numSymPerFrame);
          % Despreading
          rxSigSS=reshape(rxSigSS_aux,seqLen,numSymPerFrame);
          rxSig=(rxSigSS’ * sequence)/seqLen;
Scatter plot
               0.8                                                                 10 -1
                                                                                                                            E timated BER
               0.6
               0.4
                                                                                   10 -2
               0.2
  Quadrature
0 10 -3
               -0.4
                                                                                   10 -4
               -0.6
               -0.8
                                                                                   10 -5
                 -1
                      -1   -0.5         0            0.5   1                       10 -6
                                    In-Phase                                               0   1   2   3    4      5    6   7       8       9
                                                                                                           Eb/No (dB)
Observation Table
                                       SNR in dB           BER(simulated) BER(Theoretical)
                                                 5
                                                  .
                                                 15
Result
The transmitter and receiver of packets using 16QAM and pseudo-random sequences over an
AWGNchannel is simulated and tested.
 9. DQPSK MODULATION AND DEMODULATION TECHNIQUE
AIM: To analyze bit pattern generation of DQPSK and observe the QPSK waveform at different
at different data rates 2KHZ, 4KHZ, 8KHZ, and 16KHZ
      EQUIPMENTS:
      1 Power Supply
3. Test probe
     PROCEDURE:
 1. Connect and switch on the Power Supply.
 2. Select Differential Quadrature Phase Shift Keying Modulator using push button and
    LEDs of corresponding technique will glow.
 3. Select bit pattern using push button i.e. 8 bit, 16 bit, 32 bit and 64 bit and respective LED
    will glow. Observe the bit pattern on test point (TP2).
 4. Select data rate using push button i.e. 2 KHz, 4 KHz, 8 KHz and 16 KHz. Observe the
    change in frequency on test point (TP1).
 5. Observe the 2-bit encoding i.e., I-Channel (TP38) and Q-Channel (TP39).
 6. Observe Carrier Signal i.e., Sine (TP43) and Cosine (TP42), Frequency of Carrier
    signal will change wrt data rate
OBSERVATION:
   1. Observe the input bit pattern at TP2 by varying bit pattern using respective push
      button.
   2. Observe the data rate at TP1 by varying data rate using push button
   3. Observe the I-Channel (TP38) and Q-Channel (TP39).
   4. Observe the Differential encoded output of I-Channel at TP40 and Q-Channel TP41.
   5. Observe Carrier Signal i.e., Sine (TP43) and Cosine (TP42).
   6. Observe I-Channel (TP44) and Q-Channel (TP45) Modulated Signal.
   7. Observe DQPSK Modulated Signal at TP46.
                                                54
 EXPECTED WAVEFORMS:
8.
OBSERVATION:
 1. Observe the input bit pattern at TP2 by varying bit pattern using respective push
    button.
 2. Observe the data rate at TP1 by varying data rate using push button
 3. Observe the I-Channel (TP38) and Q-Channel (TP39).
 4. Observe the Differential encoded output of I-Channel at TP40 and Q-Channel TP41.
 5. Observe Carrier Signal i.e., Sine (TP43) and Cosine (TP42).
 6. Observe I-Channel (TP44) and Q-Channel (TP45) Modulated Signal.
                                          55
  7. Observe DQPSK Modulated Signal at TP46.
  8. Observe the multiplied Signal of DQPSK modulated signal and carrier signal Cosine at
      49 & DQPSK modulated signal and carrier signal Sine at TP50.
  9. Observe the integrated output of I-Channel TP51 and Q-Channel TP52
  10. Observe the comparator output of I-Channel at TP53 and Q-Channel TP54 that is
  same as at input with delay.
EXPECTED WAVEFORMS:
                                           56
CONCLUSION: Hence the DQPSK modulation demodulation waveforms are analyzed
andobserved
                                       57