Amplitude Modulation
Short Description
Download Amplitude Modulation...
Description
Lab02: Data communications course Amplitude Modulation (AM) and demodulation Fall 2003 Name: Section:
OBJECTIVES: To verify the principles of amplitude modulation (AM) and demodulation.
EQUIPMENT: Laptop Matlab 6.xx
BACKGROUND: Things you should know... You should understand what is meant by the following terms before undertaking this lab. Some of the terms are explained below but others you will need to look up for yourself. • bandwidth • bandpass • baseband • modulation • envelope Why do we modulate signals for transmission? In general, we use modulation to give the transmitted signal properties which are best suited to the transmission channel or environment. Specifically, modulation is the process of imparting the source information onto a bandpass signal with a carrier frequency, fc, by the introduction of amplitude or phase perturbations or both. This bandpass signal is called the modulated signal and the baseband source signal is called the modulating signal. At the receiver a means to translate the higher frequencies back to the audio range is implemented and this is demodulation.
• Amplitude Modulation (AM) Audio signals at most occupy the frequency range 0-20kHz (minimum 15km wavelength). This range of frequencies is too low to transmit directly as electromagnetic radiation, particularly due to the prohibitive sizes of the transmitter and receiver antennas which would be required. (Antennas must have lengths of the order of the wavelength of the EM radiation of interest.) Higher frequencies permit much more effective and practical transmission, however these lie outside the audio range. For example, AM radio broadcasting occurs at frequencies of the order of 1MHz (e.g. frequency of 1053kHz = 1.053MHz). In standard AM the audio signal is shifted in amplitude by adding a DC component and then multiplied by a sinusoid at the carrier frequency, fc. The carrier frequency is much higher than the audio frequency band.
• Amplitude Demodulation There are a number of available techniques for demodulating AM signals. We will be using two techniques in this laboratory. The first technique we shall use in this laboratory is envelope detection. The advantage of an envelope detector is its simplicity. In terms of hardware the envelope detector consists of a diode and a low pass filter. The second technique is synchronous or coherent detection (also called product detection, and depends crucially on the carrier sinusoid in the receiver being as close as possible in frequency (within 10Hz or so) to the original carrier. If the two sinusoids are too different distortion will be heard in the demodulated signal. In this technique the message signal is recovered in two stages. In the first stage intermediary signal with a baseband component and a high frequency component is obtained by multiplying the received signal by a sinusoid of the same frequency as the original carrier (see the trigonometric identities). In the second stage a low pass filter is used to remove the non-audio (high frequency) component of the intermediary signal. Thus the resulting output signal is a reconstruction of the audio frequency message signal.
Creating M-files What is an m-file? An m-file, or script file, is a simple text file where you can place Matlab commands. When the file is run, Matlab reads the commands and executes them exactly as it would if you had typed each command sequentially at the Matlab prompt. All m-file names must end with the extension '.m' (e.g. plot.m). If you create a new m-file with the same name as an existing m-file, Matlab will choose the one which appears first in the path order (help path for more information). To make life easier, choose a name for your m-file which doesn't already exist. To see if a filename.m exists, type help filename at the Matlab prompt.
Why use m-files? For simple problems, entering your requests at the Matlab prompt is fast and efficient. However, as the number of commands increases or trial and error is done by changing certain variables or values, typing the commands over and over at the Matlab prompt becomes tedious. M-files will be helpful and almost necessary in these cases.
How to create, save or open an m-file? To create an m-file, choose New from the File menu and select m-file. This procedure brings up a text editor window in which you can enter Matlab commands. To save the m-file, simply go to the File menu and choose Save (remember to save it with the '.m' extension). To open an existing m-file, go to the File menu and choose Open .
How to run the m-file? After the m-file is saved with the name filename.m in the Matlab folder or directory, you can execute the commands in the m-file by simply typing filename at the Matlab prompt.
Exercise 1: 1- Create a new M-file. 2- Enter the following clear [y,fs,n]=wavread('hugo'); fs n disp('paused. Press any key to play the wave file'); pause; sound(y); 3- Save the file as Test.m. 4- At Matlab command prompt enter 'test'.
PROCEDURE: Amplitude Modulation In Amplitude modulation the following complex envelope is used. g (t ) = Ac [1 + m(t )]
Where Ac is a constant and m(t) is our signal. The carrier is:
c(t ) = cos( 2πf c t )
ωc = 2πf c
fc is the carrier frequency. The AM signal will be: g (t )c(t ) = Ac [1 + m(t )] cos( wc )
Create an M-file name it ‘AM.m’. Type the following. fs = 2000; d = 0.05; n = fs * d; t = (1:n) / fs;
% this is the sampling frequency % the duration of the signal. % total number of samples %time vector
First we create our signal. It will be a sinusoidal signal with frequency mf= 100hz mf = 100; m = cos(2 * pi * mf * t); plot(t,m); Save you file and type ‘AM’ at Matlab commend prompt Now create the carrier. Create another sinusoidal signal c(t) with cf =1000hz. Call it ‘c’ And plot it. What are the peak values (min and max) for m(t)?
What would be the % modulation, %positive modulation and %negative modulation for this m(t) given Ac=1? Now it is time for the modulation. Ac=1; s = Ac*(1+m) .* c; plot(s);
use ‘.*’ to multiply vector’s elements
now, plot the AM signal. What happen if you multiply m by 0.5.. what is the %modulation in this case?
What happen if you multiply m by 1.5.. what is the %modulation in this case? Create a M-file and plot 4 figures, one for your signal m(t), one for carrier c(t), one for the modulated signal s(t), and the last one for the spectrum for s(t). Hint: use subplot to divide your figure.
Amplitude Modulation DSB-SC (Double sideband suppressed carrier) Make a copy of the AM modulation M-file "DSBSC.m" from Blackboard Make the following changes. m = cos( 2 * pi * mf * t ) + 2 * cos( 2 * pi * 2 * mf * t + pi / 4)
s = Ac * m. * m. * c
type DSBSC at Matlab command prompt.
Using Simulink Simulink is an extension to Matlab. It allows us to use icons and block to represent our processes. Instead of writing codes for our process we can use a graphical interface where we drag and drop out block into the working space. And link the blocks to gather. Then we run it. This is a simple example of Simulink to multiply two numbers. You got a big library from which you can select your input.
To start Simulink, first start Matlab then type 'simulink' you will got two windows one for the library of blocks
Amplitude Modulation with Simulink First start new model. We need to build the following function. s (t ) = Ac [1 + m( t )] cos( wc )
Where m(t) is a sinusoidal function. So we got four inputs. AC and 1 which are constants, and two sinusoidals for our message and carrier. 1- From our library browser we go to Simulink > Sources, we drag two constants and two sine waves. And name them with appropriate names.
2- Double click on the Signal wave. Change the Frequency to 5 (rad/sec) and change sample time to 1/100. 3- Do the same for the carrier but with Frequency =1000. Now we are done with the input. Let's link them to gather. We will need some math operation so from the library browser. 4- Go to Simulink > Math Operations. Drag one Product block and one Sum block.
5- Now link the Signal and the Constant 1 to the Sum operation inputs. 6- Double click in the Product block. Make the number of inputs 3 instead of two so we can multiply 3 blocks in one process. 7- Now link the Carrier, the AC constant and the output of Sum to the input of the Product block. Now wee need to add a block to show the output 8- Go to Simulink > Sinks. Drag one Scope.
9- Link the output of the Product to the Scope. 10Now run your model and double click one the scope. You will see your modulated signal.
This is a modified version of our system I've added a scope to see our original signal and spectrum scope to see the spectrum of our modulated signal.
Assignment i.
Simulation 1
1. Double Side-Band Suppressed Carrier Modulation
The below Figure, shows the implementation of a DSB-SC signal. The Signals are at 1kHz and 10kHz. Implement and simulate this modulation.
1. Visualize the spectrum output (BFFT). It can be seen that the output consists of just two side bands at 9 kHz and 11 kHz why?
2. Effect of Variations in Modulating and Carrier frequencies on DSB – SC signal a. Vary the 10 KHz carrier frequency. What is the expected result? b. Vary the modulating frequency. What is the expected result?
ii.
Simulation 2
The figure below show the experiment of an amplitude modulation for modulation index a = 1 and 0.5. The equation of this AM is given by:
s (t ) = k m [1 + a.m(t )] cos( wc )
m(t ) = cos( 2π 1000 t )
ωc = 2π (10000 ) Represent the signal s(t) in both time-domain and frequency domain when k m=1 for a=1 and a=0.5. and
View more...
Comments