Communicatin System 1 Lab Manual 2011
Communicatin System 1 Lab Manual 2011
Reviewed By: Ms. Saba Ahmed, Assistant Professor and Ms. Uzma Butt, Lecturer, Telecommunications Engineering
INTRODUCTION
Communication Systems - I Practical Workbook covers a wide range of Laboratory Sessions that can prove highly helpful in allowing the students to grasp the core objective of this subject. These labs will assist in solidifying the practical concepts that are very essential for the engineering students.
This L a b work book comprises of the following portions: 1. Lab Sessions related to Signals Time and Frequency Domain Analysis using MATLAB 2. Lab Sessions related to linear modulation techniques (AM, SSB and FM), performed on modern trainer board 3. Small Lab Projects, involving hands-on
Each Lab session also contains a brief account of relevant theory about the topic being covered in the said session.
Credits: Lab Manual on Analog Communication (EC-205), Department of Electronics and Communication Engineering, School of Engineering, Udaipur, India.
Date
Experiment
Remarks
MATLAB
1 Introduction to MATLAB, basic Mathematical operations, variables, vectors, matrices basic plotting and MATLAB Programming Continuous Time Scaling And Shifting Transformation Techniques Study and check the linearity and time invariance of a system Generation of an algorithm that gives the output obtained by convolution of two signals Generation of an algorithm that gives the output obtained by correlation between two signals To explore the application of correlation for identifying a periodic signals corrupted by/buried in noise 18
13
2 3
MODULATION
4 To understand the concepts of Fourier Transform To carryout Fourier Synthesis of a square wave 5 6. To examine the main parameters of amplitude modulated signal Demodulation of AM signal using Envelope Detector LAB PROJECT (1) To observe the operation of Product detector To check the operation of the balanced amplitude modulator with suppressed carrier. 25 33 22
34
8.
42
Lab No.
Date
Experiment
To examine the main parameters of the single sideband modulation To Check the use of filters to generate the SSB
Page No.
Remarks
43
10
To examine the operation of RF (Radio Frequency) receiver To examine the operation of RF (Radio Frequency) receiver 49
11 12
LAB PROJECT (3) To examine the operation of AM-RF (Radio Frequency) transmitter To examine the operation of SSB-RF (Radio Frequency) transmitter
53
54
14
Lab Manual
Starting MATLAB
After logging into your account, you can enter MATLAB by double-clicking on the MATLAB shortcut icon on the Window. After starting MATLAB, the MATLAB Desktop will appear. The default three-part window looks similar to the figure below. The Desktop is also known as an Integrated Development Environment (IDE). Clicking the Start button in the lower left-hand corner will display a list of MATLAB tools, shortcuts, and documentation.
Lab Manual
Lab Task:
Try the following and record your observations: >>3+7.5 >>18/4 >>3*7
Lab Manual
Mathematical Functions:
The following table lists some commonly used standard MATLAB functions:
Function ex x Ln x Log10 (x) Cos x Sin x Tan x Cos-1 x Sin-1 x Tan-1 x exp(x) sqrt (x) log(x) log10(x) cos(x) sin(x) tan(x) acos(x) asin(x) atan(x)
MATLAB Syntax
Example 2:
To calculate sin (pi/4) and e10 >>sin(pi/4) ans= 0.7071 >>exp(10) ans=
Lab Manual
2.2026e+004
Rules of Precedence:
Expressions are evaluated from left to right with exponential operation having the highest precedence, followed by multiplication and division having equal precedence, followed by addition and subtracting having equal precedence. Parentheses can be used to alter this ordering in which case these rules of precedence are applied within each set of parentheses starting with the innermost set and proceeding outward. The most recent values assigned to the variables you used in the current session are available. For example, if you type a at the prompt you get the output as: >> a a= 7 The display of numerical values can have different format as we see below: >> e= 1/3 e= 0.3333 >> format long (long decimal format) >> e e= 0.33333333333333 >> format short e (short exponential format) >> e e= 3.3333 e-01 >>format long e (long exponential format) e= 3.33333333333333 e-04
Lab Manual
Entering Matrices:
You can enter matrices in various different ways: Enter an explicit list of elements. Load matrices from external data files. Generate matrices using built-in functions. Create matrices with your own functions and save them in files. MATLAB works with essentially only one kind of objects, i.e. a rectangular numerical matrix with possibly complex entries. All variables represent matrices. If you want to store a matrix variable a in the MATLABs current memory, you type the following: 456 789 >> a = [1 2 3; 4 5 6; 7 8 9] a= 123 456 789 The rows are separated by semicolons and elements are separated by space or by comma. That is, the above matrix can also be stored by the following command. >> a = [1,2,3;4,5,6;7,8,9]; or by the statement >> a = [ 123 456 789] The semicolon at the end of a command suppresses the output. The matrix a is transposed and is stored in b by the following command >> b = a b= 147 258 369 The following matrix operations are available in MATLAB: 1 2 3 in a
Lab Manual
Table 1.2 Matrix Operations Matrix Initialisation and Addressing: >>A=[1 2 3 4;5 6 7 A= 1 5 >>A( : , : ) Ans= 1 5 >>A(1,2) Ans= 2 >>A(1, :) Ans= 1 >>A(: ,[1,3]) Ans= 1 5 >>A=(: ,end) Ans= 3 7 Selected portion of one matrix can be assigned to a new matrix >>B= A(: , 3 :end) B= 6 3 7 2 3 4 2 6 3 7 4 8 2 6 3 7 4 8 8]
Lab Manual
3 7
4 8
To select the elements along main diagonal, >>Diag(B) Ans= 3 8 Changing and deleting matrix elements: >>A=1:5 A= 1 >>A(2) = 6 A= 1 6 3 4 5 2 3 4 5
>>A([1 3]) = 0 A= 0 6 0 4 5
Manipulating Matrix: >>A=[1 A= 1 5 For transpose, >>A Ans= 1 3 4 >>fliplr (A) Ans= 4 8 3 7 1 5 5 7 8 3 7 4 8 3 4; 5 7 8]
Lab Manual
>>flipud(A) Ans= 5 1 7 3 8 4
Element-by-element operations vs. Matrix Operations: Matrix multiplication has a special procedure, and it is different from simple element-to-element multiplication. This is unlike addition operation, where two matrices cab be added by simple element-byelement addition, this is adding corresponding elements of the two matrices in question. Thus, we have a special set of operators that distinguish Matriz operations from element-by-element operations. When you intend to perform matrix operation, you simply use, * for multiplication, / for division, ^ for exponentiation and so on. But if you intend to perform element-by-element operations, you have to use, .* for multiplication, ./ for division and .^ for exponentiation. Example, >>A=[2 >>B=[1 >>A*B Ans= 17 40 7 >>A.*B Ans= 2 25 6 42 12 12 8 22 52 10 32 59 8 3 2 4;5 3;5 6 6 7;2 2;0 1 0 0]; 5];
Lab Manual
Basic Plotting:
MATLAB has an excellent set of graphics tools. Plotting a given data set or results of computation is possible with a very few commands. Trying to understand mathematical functions with graphics is an enjoyable and very ancient way of learning mathematics. Being able to plot mathematical functions and data freely is the most important step, and this section is written to assist you to do just that. The MATLAB command used to plot the graph is plot(x,y). For example, if the vector x= (1; 2; 3; 4; 5; 6) and y= (3; -1; 2; 4; 5; 1) >> x= [1 2 3 4 5 6]; >> y= [3 -1 2 4 5 1]; >>plot(x,y)
Adding titles and axis labels: MATLAB enables you to add axis labels and titles. For example, using the graph from the previous example, add x- and y-axis labels. >> xlabel (x = 0:2\pi); >>ylabel (sine of x); >>title (Plot of the Sine Function) 9
Lab Manual
10
Lab Manual
Save this file as rkg.m. Then in order to execute this file, type >> rkg <ENTER> Write the output: _______________________________________________________________________________________ _______________________________________________________________________________________ _______________________________________________________________________________________ _______________________________________________________________________________________ _______________________________________________________________________________________
The % symbol indicates that the rest of the line is a comment. MATLAB will ignore the rest of the line. However, the first comment lines which document the m-file are available to the online help facility and will be displayed. An M-file can also reference other M-files, including referencing itself recursively.
Function Files:
Function files provide extensibility to MATLAB. You can create new functions specific to your problem which will then have the same status as other MATLAB functions. Variables in a function file are by default local. However, you can declare a variable to be global if you wish.
Example:
Function y = a*b; Save this file with filename prod.m then type on the MATLAB prompt >> prod (3,4) ans = 12 In MATLAB to get input from user the syntax rule is: >>variable name = input (variable); Example: >>a=input ( Enter a number ); And on command prompt if we run this program it will be displayed like: >> Enter a number If we type 2 at the cursor then we get the output as a=2 y = prod (a,b)
Control Flow:
MATLAB offers the following decision making or control flow structures: 1. If- Else End Construction 2. For loops
11
Lab Manual
Script Files:
A script file consists of a sequence of normal MATLAB statements. If the file has the filename, say, rkg.m, then the MATLAB command >> rkg will cause the statements in the file to be executed. Variables in a script file are global and will change the value of variables of the same name in the environment of the current MATLAB session. Script files are often used to enter data into a large matrix; in such a file, entry errors can be easily edited out.
EXERCISE:
1. Given that x=-5+9i and y=6-2i, use MATLAB to show that x-y=1+7i, xy= -12+64i and x/y= -1.2 + 1.1i 2. Use MATLAB to compute: 6(351.4 )+140.35 3. Use MATLAB to plot the functions y=4(6x+1) and z=5e0.3x 2x over the interval 0<x<1.5 4. Use MATLAB to plot function s= 2 sin (3t+2) + (5t+1) over the interval 0<t<5. 5. Plot exp(-x) sin(8x) for 0 x 2 6. Plot the function y= (4/) [(sin x) + (sin 3x)/3 + (sin 5x)/5 + (sin7x)/7] over the interval <x<. These are the first four terms of the Fourier Series representation of a square wave. 7. Define a 4x3 matrix with zeros everywhere except the first line that is filled with 1. Hint= use ones and zeros command 8. Use MATLAB to solve following set of equations. 6x - 4y + 8z = 112 -5x 3y +7z = 75 14x + 9y 5z = -67 9. Use MATLAB to find roots of 13x3 + 182x2 184x +2503 = 0
12
Lab Manual
LAB SESSION 02 SIGNAL TRANSFORMATION TECHNIQUES, LINEAR AND TIME VARIANT PROPERTIES OF A SYSTEM
OBJECTIVES:
(a) Learn time domain representation of various discrete signals (b) Learn and implement amplitude and continuous time scaling techniques (c) Learn and implement various time shifting techniques
13
Lab Manual
Time Shifting:
Time shifting by t0 corresponds to the transformation: g(t) g(t-t0) where, t0 is the time shift. If t0>0, the waveform g(t) is obtained by shifting towards the right, relative to the time axis. If to<0, g(t) is shifted to the left.
PROCEDURE (a):
Problem 1: Use MATLAB, plot the following function defined by G(t)= 0 -4-2t -4+3t 16-2t 0 t<-2 -2<t<0 0<t<4 4<t<8 t>8
14
Lab Manual
Figure 2.3 Even and Odd Signal Linear and Non-Linear Systems:
We now investigate the linearity property of a causal system of the type described. Consider the system given by: y[n]-0.4y[n-1]+0.75y[n-2]=2.2403x[n]+2.4908x[n-1]+2.2403x[n-2] Eq. (A)
15
Lab Manual
MATLAB program is used to simulate the system to generate three different input sequences x1[n], x2[n] and x[n]= a* x1[n]+b*x2[n], and to compare and plot the corresponding output sequences y1[n], y2[n] and y[n].
PROCEDURE (b):
Problem 1: 1. Generate following signals: a. x1= cos (2pi(0.1n)) b. x2= cos (2pi(0.4n)) for n=0 to 40
2. Now, apply operation: x=a*x1+b*x2 such that a= 2 and b= -3 3. Assume y1 and y2 to be the outputs of the system when x1 and x2 are applied as inputs respectively. The system has following response (refering to eq A): y[n]-0.4y[n-1]+0.75y[n-2]=2.2403x[n]+2.4908x[n-1]+2.2403x[n-2] Mathematically, y1=h convolved with x1 y2=h convolved with x2
4. Also compute y such that, y=h convolves with x where x was computed in point 2. 5. Now compute, yt such that yt=a*y1+b*y2 where a and b are defined in point 2.
6. Now, find out d, the difference signal by subtracting yt from y. 7. Plot the outputs and difference signal.
Time and Time-Invariant Systems: We next investigate the time-invariance property of a causal system. Consider again the system given in Eq (A). MATLAB program is used to simulate the system of Eq (A), to generate two different input sequences x[n] and x[n-D], and to compute and plot the corresponding and plot the corresponding output sequences y1[n], y2[n] and the difference y1[n] y2[n+D]
16
Lab Manual
3. 4. 5.
Compute x= a*x1+b*x2 Compute y= system convolves with x. Compute yd such that yd=system convolves with xd, where xd is a delayed version of x byD. (Hint: xd=[zeros(1,D) x])
6. 7.
Compute the difference signal d= y-yd Plot the outputs y[n] and yd[n] and difference signals
Exercise:
1. Generate a code which uses input to shift unit-sample right or left using function. 2. Using MATLAB, graph the following discrete-time function: g[n]= 10 e-/4 sin(3n/16) u[n] then graph the following functions: a. g[2n] b. g[n/3]
3. Using MATLAB, find the energy or power of the following signals: a. x(t) = tri ((t-3)/10) b. X[n] = e-[n/10] sin (2n/4) 4. find and sketch the even and odd parts of these signals: g[n]= u[n]- u[n-4] g[n]= cos (2n/4) g[n]= sin(2n/4) g[n]= e-(n/4)u[n] 5. Compute and plot the impulse response of the system described below: y[n] - 0.4[n-1]+0.75y[n-2]= 2.2403x[n]+2.24908x[n-1]+2.2403x[n-2]
17
Lab Manual
signals
(c) To explore the application of correlation for identifying a periodic signals corrupted by/buried in
noise
PROCEDURE (a):
Problem 1: Two signals are provided below. Apply convolution on the two signals and plot the output. N h(n) x(n) 0 4 -4 1 2 1 2 -1 3 3 3 7 4 -2 4 5 -6 -2 6 -5 -8 7 4 -2 8 5 -1
Problem 2:
1. Given a discrete-time sine wave (frequency and amplitude of your choice). Plot the waveform. 2. Generate AWGN signal. Plot the waveform. 3. Add White Gaussian Noise (random in nature) to the sine signal in order to have it corrupted. 4. Plot the corrupted signal. 5. Generate a moving average FIR filter (number of taps should be user-defined). Plot the response of the
filter.
6. Now, convolve the corrupted signal (noise + sine) with the FIR filter. Plot the output and provide the
conclusion.
18
Lab Manual
Figure 3.1 Projected output of the convolution problem CORRELATION: Correlation is the process that qualifies the degree of inter-dependence of one process upon another or measures the similarity between one set of data and other. Correlation is of two types: Cross-correlation and Auto Correlation. It is implemented in MATLAB by the command xcorr, provided that two sequences be convolved are of finite length. Problem 3: Two signals are provided below. Apply correlation on the two signals and plot the output. n x1(n) x2(n) 0 -4 4 1 1 2 2 3 -1 3 7 3 4 4 -2 5 -2 -6 6 -8 -5 7 -2 4 8 -1 5
Provided a signal x1= [1 2 3 4] Apply auto-correlation on x1 and plot the output. Apply time shifting (n0=2 or 4) to the signal and save the output in vector x2. Plot the output. Now, apply autocorrelation on x2 and x3 and plot the output graphs. Observe and write down your conclusion.
19
Lab Manual
corrupt signal.
6. Now, apply auto-correlation of the sine + noise signal and plot the output. What do you observe? Write
your conclusion.
20
Lab Manual
LAB ASSIGNMENT: Compute and plot the convolution x(n)*h(n) for the pairs of signals given below:
1.
2.
3.
-2n2, 0 elsewhere
4.
Determine the autocorrelation sequences of the following signals and write your observations: a. X(n)= {1 2 1 1} b. Y(n)= {1 1 2 1}
21
Lab Manual
EQUIPMENT REQUIRED:
Modules T10H. +/- 12Vdc Supply Oscilloscope
PRE-LAB THEORY:
A square wave spectrum is made up of the sum of all the harmonics being odd of the fundamental frequency with decreasing amplitude according to the law of trigonometric Fourier series. In other words, the square wave shown in fig 4.1 can be obtained by summing up the infinite sine waves as per the following relation: S(t) = sin(2Ft)/1 + sin(23Ft)/3 + sin(25Ft)/5 + sin(27Ft)/7 + sin(29Ft)/9 + ..
Figure 4.1 Square wave time and frequency domain representation Frequency spectrum of a square wave can be mathematically represented by: f(t) = a0 + ( an cos nwt + bn sin nwt) n=1 22
Lab Manual
PROCEDURE:
For Odd harmonics (1, 3, 5, 7, 9): set two way switches -/0/+ on + and two way switches sin/cos on sin. Even harmonics (2, 4, 6, 8): two way switches -/0/+ on 0. Connect the oscilloscope with the amplifier output of the fundamental (1st) and adjust the amplitude at 10Vp-p. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Connect the oscilloscope with the output of the third harmonic amplifier (3RD) and adjust the amplitude at 10/3 303Vp-p. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Connect the oscilloscope with the output of the 5TH harmonic amplifier (5TH) and adjust the amplitude at 10/5 = 2Vp-p. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Connect the oscilloscope with the output of the seventh harmonic amplifier (7TH) and adjust the amplitude at 10/7 1.4Vp-p. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Connect the oscilloscope with the output of the 9th harmonic amplifier (9TH) and adjust the amplitude at 10/9 1.1Vp-p---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Connect the oscilloscope with OUT and check that there is the signal corresponding to the components sum. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Remove some harmonics (put the relating two way switch on 0) and check the O/P signal. -----------------------------------------------------------------------------------------------------------23
Lab Manual
24
Lab Manual
EQUIPMENT REQUIRED:
Amplitude Modulation Work board 53-130 which comprises the following blocks: Signal Generation Modulation Filters Demodulation
Lab Manual
Amplitude Modulation:
It is the simplest form of signal processing in which the carrier amplitude is simply changed according to the amplitude of the information signal, hence the name Amplitude Modulation. When the information signals amplitude is increased the carrier signals amplitude is increased and when the information signals amplitude is decreased the carrier signals amplitude is decreased. In other words, the ENVELOPE of the carrier signals amplitude contains the information signal. Modulation index m = Vmax Vmin Vmax + Vmin
Amplitude modulation uses variations in amplitude (Vmax) to convey information. The wave whose amplitude is being varied is called the carrier wave. The signal doing the variation is called the modulating signal. For simplicity, suppose both carrier wave and modulating signal are sinusoidal; i.e., vc = Vc sin c t (c denotes carrier) and vm = Vm sin m t (m denotes modulation) We want the modulating signal to vary the carrier amplitude, Vc , so that: vc = (Vc + Vm sin mt).sin c t where (Vc + Vm sin m t) is the new, varying carrier amplitude. Expanding this equation gives: vc = Vc sin c t + Vm sin c t. sin m t which may be rewritten as:
26
Lab Manual
sin c t.sin m t = (1/2) [cos(c - m) t - cos(c + m) t] so, from the previous equation: vc = Vc [sin c t + m sin c t. sin m t] we can express vc as: vc = Vc sin c t + (mVc/2) [cos(c - m) t] - (mVc/2) [cos(c + m) t] This expression for vc has three terms: 1. The original carrier waveform, at frequency c, containing no variations and thus carrying no information. 2. A component at frequency (c - m) whose amplitude is proportional to the modulation index. This is called the Lower Side Frequency. 3. A component at frequency (c + m) whose amplitude is proportional to the modulation index. This is called the Upper Side Frequency. It is the upper and lower side frequencies which carry the information. This is shown by the fact that only their terms include the modulation index m. Because of this, the amplitudes of the side frequencies vary in proportion to that of the modulation signal.
Sidebands:
If the modulating signal is a more complex waveform, for instance an audio voltage from a speech amplifier, there will be many side frequencies present in the total waveform. This gives rise to components 2 and 3 in the last equation being bands of frequencies, known as sidebands. Hence we have the upper sideband and the lower sideband, together with the carrier. Clearly, for a given carrier amplitude there are limits for the size of the modulating signal; the minimum must give zero carrier, the maximum gives twice the unmodulated carrier amplitude. If these limits are exceeded, the modulated signal cannot be recovered without distortion and the carrier is said to be over-modulated.
27
Lab Manual
PROCEDURE (a):
In this practical the hardware is configured as shown in figure 5.4.
Figure 5.4 Experiment (a) Set the carrier level to maximum. Set modulation level to zero. Observe the signals at all monitoring points. Write your observations. ____________________________________________________________________________________ ____________________________________________________________________________________
28
Lab Manual
____________________________________________________________________________________ ___________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ Now increase the modulation level and observe at monitor point 6
____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ Increase the modulation level until the carrier amplitude just reaches zero on negative modulation peaks. This is 100% modulation. Observe the signals at all the monitoring points both with the oscilloscope and the spectrum analyser at various modulation levels. ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ Also, with a fixed modulation level try adjusting the carrier level.
QUESTIONS (a):
1. The 'envelope' of the modulated carrier wave is a curve joining its peaks. The positive envelope, joining the positive peaks, should follow the shape of the modulating signal in one polarity and the negative envelope, joining the negative peaks, in the opposite polarity. What happens to the positive and negative envelopes when over-modulation occurs? ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ 2. How would you recognise over-modulation on the spectrum analyser display? ____________________________________________________________________________________ ____________________________________________________________________________________
29
Lab Manual
3. What is the amplitude of the two sidebands relative to the carrier expressed in dB for 50 percent modulation with a sine wave? ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________
Figure 5.5 Envelope Detector Circuit The capacitor is charged by the diode almost to the peak value of the carrier cycles and the output therefore follows the envelope of the amplitude modulation. Hence the term envelope detector. The time constant of the RC network is very important because if it is too short the output will contain a large component at carrier frequency. However, if it is too long it will filter out a significant amount of the required demodulated output.
In this practical the output of the AM generator that is fed to an envelope detector. The output can be monitored and compared with the original modulation source. The time constant of the filter following the detector can be adjusted. This filter is often called a post-detection filter. It also introduces a phase shift between the original signal and the output.
PROCEDURE (b):
Power the module and connect it with the PC Obtain an AM modulated signal from an AM modulator and apply it the input of the envelope detector. Here the signal from the amplitude modulator from the AM Signal generator is demodulated using an envelope detector. Confirm that the modulated signal is the same.
30
Lab Manual
Use the oscilloscope to monitor the detector output 16 and adjust the time constant. If its too less and too large what will happen? Also state the reason. _______________________________________________________________________________________ _______________________________________________________________________________________ ____________________________________________________________________________________
___________________________________________________________________________________ ___________________________________________________________________________________
Figure 5.6 Experiment Setup (b) Use the spectrum analyzer to observe the carrier spectral components. Record your observations:
___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________ Compare the original modulating signal with the detector output in both shape and phase at various time constants using the oscilloscope. Record your observations: ___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________
31
Lab Manual
QUESTIONS (b):
1. Is the phase shift caused by the post detection filter a lead or lag?
32
Lab Manual
SUBMISSION DEADLINE:
MARKS OBTAINED:
33
Lab Manual
EQUIPMENT REQUIRED:
Amplitude Modulation Work board 53-130 which comprises the following blocks: Signal Generation Modulator Filters Demodulator
Lab Manual
The output still needs a post-detection filter to remove the residual ripple, but this time the ripple is at twice the carrier frequency and is therefore further away from the modulation and hence easier to remove. In general terms the product detector gives less distortion, partly because it uses both positive and negative peaks of the carrier. Generating the Mixing Frequency: This is produced by an oscillator which is usually referred to as a Beat Frequency Oscillator or BFO. This is because it is not at the same frequency as the carrier the output of the product detector. It works on a frequency equal to the difference between o f the two, which is called a beat frequency. (You will be able to see this when you adjust the BFO for synchronism). As previously described, it is vital that the BFO be synchronised to the carrier. In practice this is achieved with a special recovery circuit but here for simplicity a sample of the carrier is fed directly to the BFO and when the free running frequency of the BFO is near to that of the carrier it locks into synchronism.
PROCEDURE (a):
Follow required procedure to obtain product detector demodulating AM output. The oscilloscope shows its input at monitor point 6, which is the output of the same modulator as before. Monitor the BFO output with the oscilloscope and use the BFO frequency control to lock it to the carrier. This will be indicated by a stationary TRACE.
Figure 7.2 Experiment Setup (a) Use the oscilloscope to look at the output of the detector before the filter and note the frequency of the ripple compared with the carrier. _______________________________________________________________________________ _______________________________________________________________________________ _________________________________________________________________________ Use the spectrum analyzer to confirm this. Examine the output of the filter and compare it with the modulation source. Record your observations: _______________________________________________________________________________
35
Lab Manual
_______________________________________________________________________________ _________________________________________________________________________ Monitor the detector output before the filter with the oscilloscope, then unlock the BFO with the BFO frequency control and observe the result. Repeat whilst observing the filtered output. Record your observations: _______________________________________________________________________________ _______________________________________________________________________________ _______________________________________________________________________________ _______________________________________________________________________________ ______________________________________________________________________________
QUESTIONS (a):
1. Are the design considerations for a post-detection filter different from those for the envelope detector? _____________________________________________________________________________________ _____________________________________________________________________________________ ____________________________________________________________________________________
2. Examine the filtered output, using the spectrum analyser at large size, with the BFO synchronised. The trace should show three points where the level is above the background ripple. What do they represent? _____________________________________________________________________________________ _____________________________________________________________________________________ ____________________________________________________________________________________
3. Again examine the filtered output, using the spectrum analyser at large size. Decrease the amplitude of the modulation signal as far as possible without the instrument trigger failing. Then vary the BFO control. How wide is the available range of beat frequency? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
36
Lab Manual
simply a special case of AM with no carrier. A circuit called balanced modulator generates double sideband suppressed carrier signals.
37
Lab Manual
2 sin A cos B = sin(A + B) + sin (A - B), the first term, (1), becomes:
(1) sin(o + + c - m) t + sin(o + - c + m) t Since o is supposed to be equal to c, (o + c - m) will be a frequency roughly twice of that of the carrier. This does not contribute to the desired signal. The rest of the expression, which does contribute, is: sin(wo + - c + m) t
38
Lab Manual
sin( + m) t, which is the original modulating frequency. Similarly the other term, (2), makes contribution: (2) - sin(o + - c - m) t sin(- + m) t which, for o = c , becomes:
We now have two terms, or components of the output signal, each of the original modulating frequency. However, there is a problem when we combine them. The two terms are: sin( + m) t and sin(- + m) t If the phase is zero, the two terms become identical, so they combine to produce the signal: 2 sin m t i.e. a signal at the original modulating frequency. Now suppose that the phase now changes through /2 radians (90 degrees). The two sinusoids would now be radians (180 degrees) apart in phase and would cancel each other out. We have assumed that o = c. If this were not true, the effect would be the same as if were continually changing, making the two terms alternately reinforce and cancel each other. This may be shown mathematically thus: sin( + m) t + sin(- + m) t = 2 sin m t cos
Since cos 0 = 1, the strongest output is obtained for = 0. With = /2, cos = 0, so no output is obtained.
PROCEDURE (b):
Use the oscilloscope and spectrum analyser to examine the signals at monitor point 4 and monitor point 5.
Figure 7.6 Experiment Setup Set the carrier balance to mid-scale. Note that they are the same as for simple AM. Now examine at monitor point 6 and observe the wave shape.
39
Lab Manual
Use the spectrum analyser to observe that there are two sidebands but no carrier. Record your observations:
____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ Adjust the carrier balance and observe the effect on carrier amplitude
___________________________________________________________________________________ ___________________________________________________________________________________ ___________________________________________________________________________________ Adjust modulation level and carrier level and observe the effects
_____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ Monitor at monitor point 13 and adjust the BFO frequency for a stable trace, so that the
BFO is in phase with the original carrier. Observe the changes __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Unlock the BFO and observe the result
QUESTIONS (b):
1. Why does AM have a low efficiency when the full carrier is transmitted? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
2. How can you tell whether the modulator is balanced when using the oscilloscope? and when using the spectrum analyser? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
40
Lab Manual
3. Measure the carrier suppression ratio for the system in Practical 1 when set for maximum modulation and minimum carrier amplitude. __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
4. Does the term over modulation have any meaning in a DSB system? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
41
Lab Manual
SUBMISSION DEADLINE:
MARKS OBTAINED:
42
Lab Manual
EQUIPMENT REQUIRED:
Amplitude Modulation Work board 53-130 which comprises the following blocks: Signal Generation Modulator Filters Demodulator
43
Lab Manual
Generating SSB:
The generator in the practical is a balanced modulator, producing DSB, followed by a bandpass filter for the required sideband. There are other methods but this filter method is the simplest to understand and is in very common usage in communication systems. It may be necessary for the bandpass filter to have a very good shape factor because, at normal carrier and audio frequencies, the upper and lower sidebands are quite close in frequency. Another consideration is that the sideband filter should offer significant attenuation to the carrier, so that the balanced modulator need not be so accurately balanced. In practice the balanced modulator might provide 30 db of carrier suppression and the filter a further 10db. The other sideband would normally be about 30 to 40 db down on the wanted one. In order to achieve this, the SSB filter has several poles and is, in most cases a ceramic filter or crystal filter. Various filters are commercially available with different specifications depending on the application. In the practical, a high modulating frequency is used, so one can see clearly the relationship between the various frequency components. This means that the filter specification can be relaxed and here a single tuned circuit is used. Separate filters are provided for upper and lower sidebands and the means is provided to monitor the output of both.
44
Lab Manual
PROCEDURE (a):
Use the spectrum analyser and oscilloscope to observe at monitor point 6. Note that the signal is DSB. Adjust the carrier balance as before. __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
Monitor at monitor point 8, and at monitor point 9, and note the observations.
Figure 9.3 Experiment Setup (a) Use the oscilloscope to observe that the SSB output. Use the spectrum analyser to note the sidebands. Write your observations.
QUESTIONS (a):
1. Why is the balance of the modulator less important in a filter method SSB generator than for a DSB generator? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
45
Lab Manual
2. How is the width of the SSB filter related to the maximum and minimum modulating frequencies? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
The main difference is that, for SSB, the BFO need not be in phase with the carrier. It does need to be at the same frequency but even a small error in the frequency results only in a small error in the frequency of the demodulated output. This means that in non-critical applications, such as speech, a small overall frequency error does not make the system useless. The effect on speech is to raise or lower the tone of the voice, which within limits does not reduce intelligibility.
The fact that the BFO need not be locked, greatly simplifies the design of the receiver, and makes SSB one of the most powerful techniques for transmitting audio frequencies over radio links with its narrow bandwidth and efficient use of available transmitter power.
In the practical, you can use both upper and lower sidebands and see that with the BFO set correctly, near to the original carrier frequency, even though the two sidebands are at different frequencies the demodulated output is the same. You can also see that changing the BFO frequency causes the demodulated output to change in frequency by a similar amount.
PROCEDURE (b):
46
Lab Manual
__________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Move to monitor point 10 and note the upper sideband signal
__________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Use the spectrum analyser to confirm the frequency. What do you observe?
__________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Change to lower sideband (by pressing the button) and repeat.
__________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Now monitor at point 14 and compare the output with the modulation input.
__________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________ Use either the oscilloscope or analyser to set the BFO frequency to that of the carrier, by monitoring at monitor point 13 __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
QUESTIONS (b):
1. Why is SSB more efficient than either simple AM or DSB? __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
2. If the BFO frequency rises, what happens to the frequency: a) of the upper sideband? b) of the lower sideband? __________________________________________________________________________________ __________________________________________________________________________________
47
Lab Manual
__________________________________________________________________________________ 3. Calculate the bandwidth of the transmitted signal when the modulation frequency band extends from 500 Hz to 50 kHz for simple AM, DSB and SSB. __________________________________________________________________________________ __________________________________________________________________________________ __________________________________________________________________________________
4. If a SSB channel has no modulating signal, what is the modulated signal like? ___________________________________________________________________________________ ___________________________________________________________________________________ ________________________________________________________________________________
48
Lab Manual
EQUIPMENT REQUIRED:
Power supply mod. PSI-PSU/ EV Experiment Mod MCM24/EV Dual-trace Oscilloscope Function generator
In the past direct modulation was used which guarantee a circuit simplicity to the detriment of the quality in the communication. Today modulation is achieved on a fixed and well stabilized frequency (intermediate frequency) signal that translates at frequency of channel to be used & makes circuit complexity balanced & easily controlled.
49
Lab Manual
signal. The IF frequency is always equal and does not depend on the frequency of the RF channel that is to be used. This enables the optimisation of the modulation and filtering circuits. The IF filter cleans the useful signal from any inter modulation products or noise. As the IF is always the same the filter does not need any regulation or calibration. The frequency converter has the purpose to translate the frequency from IF to RF and so to the frequency of the channel that is to be used. The RF filter or output filter, cleans the useful signal from the inter modulation products that was added during frequency conversion. As the RF can be changed the filter must be calibrated again.
RF RECEIVER:
The purpose of receiver is to convert the modulated radio frequency signal into information that is to be received. Using an antenna RF signal is picked up by the space in which it travelled electromagnetic wave and sent through a transmission line to the electronic circuit of the receiver in order to be demodulated. The reception cannot be only radio but also from other supports like copper & optical fiber. In the past, direct modulation was used which guarantee a circuit simplicity to the detriment of the quality in the communication. Today, demodulation is achieved on a fixed and well stabilised frequency (intermediate frequency) signal that translates at frequency of channel to be used & makes circuit complexity balanced & easily controlled.
50
Lab Manual
PROCEDURE:
Set the SW1 on the modulation selectors section to AM/DSB/FM Turn the trimmer Level completely Clockwise to obtain the maximum amplitude on the signal VCO1 out provided by the local Oscillator VCO1
Set switch SW6 to DC to obtain the manual control of the local Oscillator frequency Adjust trimmer DC source of VCO1 out to obtain a frequency of about 10750 kHz Connect the input AM/DSB/MOD into a sine signal with amplitude of 1Vpp and frequency of 50 kHz using an external generator
Set switch SW4 to Mix out so that the signal of the local oscillator reaches the input CARRIER IN of the mixer
Set switch SW3 to DSB: in this condition the mixer is perfectly balanced and does not show the signal with higher frequency (carrier) across the output
Connect and set the oscilloscope as follows: a. Channel 1 to the input AM/DSB/MOD IN b. Channel 2 to the output of the mixer (TP2)
Check that the signal across TP2 which is the product of the carrier and modulating signal is of DSB shape
With the current setting of SW4, the signal produced by the mixer reaches the section IF filter Set switch SW5 to QUARTZ so that the signal crosses the quartz band pass filter Turn the trimmer LEVEL completely clockwise to obtain the maximum amplitude of the signal across TP3 at the output of the section IF FILTER
Connect the oscilloscope to TP3 & check there is a sine signal. Adjust modulating signal to display max amplitude
Connect the oscilloscope to TP3 and measure the frequency of the present signal which is equal to 10.7MHz
Set switch SW5 to CERAMIC so that the signal crosses the ceramic band pass filter Connect one probe of the Oscilloscope to TP3 of IF filter Following section used for converter2: VCO1&2, modulator, IF filter, RF mixer, RF filter, RF power amplifier
Remove external generator Set the sw1 on the modulation selectors section to AM/DSB/FM Turn the trimmer Level completely Clockwise to obtain the maximum amplitude on the signal VCO1 out provided by the local Oscillator VCO1
Set switch SW6 to PLL to obtain automatic control of the fixed local Oscillator frequency
51
Lab Manual
Set switch SW4 to VCO1 out so that the signal of the local oscillator reaches the IF filter Set switch SW5 to QUARTZ Turn the trimmer LEVEL completely clockwise to obtain the maximum amplitude of the signal across TP3
Connect the oscilloscope to TP3 and measure the frequency of the present signal which is equal to 10.7MHz
Set switch SW7 to PLL to obtain automatic control of the fixed local Oscillator frequency. With these setting choice of ceramic or quartz filter does not change received signal substantially
Connect the oscilloscope to VCO2 OUT and measure the frequency which is equal to 11.7MHz
Set switch SW10 to LPF that corresponds to the low pass filter with cut-off frequency of 1.5MHz
Set switch SW11 to OFF in order to turn off antenna amplifier Connect one probe of the oscilloscope to the out put CABLE OUT and check there is the signal of frequency equal to 1MHz
Adjust the LEVEL of the section RF FILTER for the best display Now Set switch SW7 to DC to obtain the manual control of the local Oscillator frequency Connect oscilloscope to VCO2 out & adjust DC source to get freq of 12MHz. Check frequency of output signal
52
Lab Manual
SUBMISSION DEADLINE:
MARKS OBTAINED:
53
Lab Manual
EQUIPMENT REQUIRED:
Power supply mod. PSI-PSU/ EV Experiment Mod MCM24/EV 1 Dual-trace Oscilloscope 1 Function generator
54
Lab Manual
PROCEDURE (a):
Following sections are used: VCO1, Low frequency, and modulator blocks Set the SW1 on the modulation selectors section to AM/DSB/FM Turn the trimmer Level completely Clockwise to obtain the maximum amplitude on the signal VCO1 out provided by the local Oscillator VCO1 Set switch SW6 to PLL to obtain automatic control of the fixed local Oscillator frequency Connect output OUT2 to input AM/DSB MOD IN Set switch SW3 to AM to carryout AM modulator with unbalance mixer Set switch SW4 to Mix out to take signal of the mixer & not the one of VCO Set switch SW5 to CERAMIC so that the signal crosses the ceramic band pass filter Connect and set the oscilloscope as follows: Channel 1 to the input AM/DSB/MOD IN Channel 2 to the output of the mixer (TP2) Adjust the trimmer LEVEL of modulating signal for the best display Vary the amplitude of the modulating signal and check the 3 following conditions: a. Modulation percentage lower than the 100%, b. Equal to the 100%, c. Superior to 100% over modulation Remove modulating signal & check presence of carrier signal. Remove carrier signal & check complete absence of signal across output
AM Radio Transmitter:
Set switch SW10 to LPF to use output LPF Set switch SW11 to TX ON to enable antenna power amplifier Adjust the trimmer LEVEL of the section RF MIXER to maximum amplitude & check signal after conversion made by RF MIXER at TP6 Observe signals at output via cable & antenna At TP7 observe signal higher than power supply voltage due to effect of tuned circuits. With sine signal of 1kHz if output is distorted then reduce level of IF signal to reduce saturation of mixer
55
Lab Manual
PRE-LAB THEORY (b): DSB to SSB (Double side Band to Single side band):
The carrier does not carry any information as it has constant amplitude & frequency independently from mo d u la t i n g s i g n a l . The s i g n a l is called s uppressed carrier modulation or DSB modulation. The two side bands are exactly same. It follows that information can be transmitted using single side band: carrier is superfluous & the other sideband redundant. We can generate SSB by using filters. First amplitude modulation with suppressed carrier DSB is generated using balanced modulator then a BPF extracts one of two side bands.
Transmit SSB signal it is necessary to convert SSB signal with IF on RF channel suppression is made through quartz filter. This becomes IF signal that must be converted into RF using conversion stage. To filter o/p signal from RF mixer & take single component use RF BPF with center frequency 3.5MHz. Amplifiers present in signal path (buffer) are used to match output or input impedance of filters. RF power amplifier consist of 2 stages: antenna amplifier tuned on freq of 1MHz to operate with ferrite antenna, cable amplifier gives o/p via coaxial cable. Here o/p via cable is used as it is wide band.
PROCEDURE:
Set the SW1 on the modulation selectors section to AM/DSB/FM Turn the trimmer Level completely Clockwise to obtain the maximum amplitude on the signal VCO1 out provided by the local Oscillator VCO1 Set switch SW6 to PLL to obtain automatic control of the fixed local Oscillator frequency Connect o/p OUT2 to i/p AM/DSB MOD IN Set switch SW3 to DSB to carryout AM modulator with unbalance mixer Set switch SW4 to Mix out to take signal of the mixer & not the one of VCO.1 Connect and set the oscilloscope as follows: a. Channel 1 to the input AM/DSB/MOD IN b.Channel 2 to the output of the mixer (TP2) See waveforms of the signals. Adjust the trimmer LEVEL of modulating signal for the best display.
Move probe from TP2 to TP3 & check the presence of sine signal: we can state filter extracts only one of two components generated by balanced modulator so there is a SSB signal across this
56
Lab Manual
TP Measure the following IF frequencies: a. frequency of carrier (VCO1 OUT) b. frequency of modulating signal (OUT3) c. frequency of SSB signal across filter output (TP3)
Frequency Response to Quartz IF Filter: Set switch SW1 to SSB & SW2 to LSB Set switch SW5 to QUARTZ to use quartz band pass filter Provide a signal of 2kHz-1Vpp to modulating input The frequency of IF signal in these conditions is equal to centre band frequency of quartz filter i.e. 10.7 MHz
57
Lab Manual
SUBMISSION DEADLINE:
MARKS OBTAINED:
58