Amplitude Modulation

  1. What is SIMULINK?
    Simulink is a software package that enables you to model, simulate, and analyze systems
    whose outputs change over time. Such systems are often referred to as dynamic systems.
    Simulink can be used to explore the behavior of a wide range of real-world dynamic
    systems, including electrical circuits, shock absorbers, braking systems, and many other
    electrical, mechanical, and thermodynamic systems.
    Simulating a dynamic system is a two-step process with Simulink. First, a user creates a
    block diagram, using the Simulink model editor, which graphically depicts timedependent mathematical relationships among the system’s inputs, states, and outputs. The
    user then commands Simulink to simulate the system represented by the model from a
    specified start time to a specified stop time.
  2. Getting Started in SIMULINK
    Start up the Matlab (We use Matlab version 6.5.1 in this and the following experiments.),
    type “simulink” (small letters!!) in the command window.
    EE423 Lab #2.
    2
    Fig. 1
    In the “Simulink Library Browser” window, click “File”-> “New” -> “Model”
    EE423 Lab #2.
    3
    Fig. 2
    Example 1:
    Simulate Sine wave
    f (t)  sin(1000*2 *t)
  3. Create a new model window by choosing “File”-> “New” -> “Model”
  4. Drag “Sine Wave” block from “Simulink” -> “Sources” to the model window;
  5. Drag “Scope” block from “Simulink” -> “Sinks” to the model window;
  6. Left-press the mouse when the arrow becomes a single cross by moving the
    mouse near to the right side of “Sine Wave”; keep left button pressed and move
    the single cross to the left side of “Scope” until you see the single cross becomes
    double crosses; release the button and the tow parts are connected. Fig. 3 is the
    finished diagram.
  7. Click “Simulation”-> “Simulation parameters …” and refer to Fig. 4 to set the
    simulation parameters.
  8. Double click the “Sine Wave” and set the parameters as shown in Fig. 5
  9. Press “Start simulation” to run the program
  10. Double click the “Scope” and you should see the wave similar to Fig. 6
  11. Refer to Fig. 7 to set the parameters of “Scope” by press “Parameters” button on
    the display panel.
  12. Right click on the scope; then choose “axes properties…” to set “Y” scales.
  13. Now you should see the picture of Fig. 8
    EE423 Lab #2.
    4
    Fig. 3
    Fig. 4
    EE423 Lab #2.
    5
    Fig. 5
    Fig. 6
    EE423 Lab #2.
    6
    Fig. 7
    Fig. 8
    Example 2:
    Use the “FFT” block as Spectrum Analyzer
  14. Refer to Fig. 9 to set the diagram. To add “B-FFT”, choose “DSP Blockset” ->
    “DSP Sinks” -> “FFT Spectrum Scope”. Use Fig. 10 and Fig. 11 to set “FFT
    Scope”. After you finish setting, the “FFT Scope” becomes “B-FFT Scope”.
  15. To draw a line from an existing line to the spectrum scope, keep pressing “Ctrl”
    button and then use the similar procedure of example1.
  16. Use Fig. 4, Fig. 5 and Fig.7 to set environment and Sine source parameters.
  17. Run the program and you should see the spectrum as shown in Fig. 12
    EE423 Lab #2.
    7
    Fig. 9
    Fig. 10
    EE423 Lab #2.
    8
    Fig. 11
    EE423 Lab #2.
    9
    Fig. 12
    EE423 Lab #2.
    10
    Example 3:
    Product of Two Sine Waves
  18. Refer to Fig. 13 to draw the system diagram. To add “
    ” product, choose
    “Simulink” -> “Math Operations” -> “Product”.
  19. Use Fig. 14 and Fig. 15 to set parameters of “Sine 1” and “Sine 2”
  20. Run the program and you should get picture of Fig. 16 and Fig. 17
    Fig. 13
    EE423 Lab #2.
    11
    Fig. 14
    Fig. 15
    EE423 Lab #2.
    12
    Fig. 16
    Fig. 17
    EE423 Lab #2.
    13
  21. Introduction to Amplitude Modulation (AM) and Demodulation
    An AM signal with a sinusoidal carrier can be represented as:
    v t V ms t t AM c c
    ( )  [1 ( )]cos
    where
    s(t)
    is the normalized message, satisfying
    | s(t) |max 1. The Fourier transform of
    v (t) AM
    is given by:
    ( )
    2
    ( )
    2
    ( )
    2
    ( )
    2
    ( ) c
    c
    c
    c
    c
    c
    c
    c
    AM S
    mV S
    V V mV
    V               
    where
    ( )
    c
    s  
    is the Fourier transform of
    s(t).
    A simple demodulation technique is the envelope detection. To use envelope detection,
    you should make sure that
    m 1. The diagram is as below.
  22. Simulation of AM Modulation and Demodulation
  23. Message signal:
    s(t)  sin(1000*2 *t)
  24. Carrier signal:
    w (t) 2cos(10000*2 *t) c
     
    3.
    m  0.5
  25. Fig. 18 is the system diagram. You should set block parameters yourself
    (including the digital filter which is in “DSP Blockset->Filtering->Filter
    Designs”. Write down these parameters in your lab report.
  26. Print out the waves in Scope1, Scope2, Scope3, Scope4, Spectrum1, Spectrum2,
    and Spectrum3.
    AM modulated
    signal u(t)
    |u(t)| BPF Demodulated
    signal s(t)
    EE423 Lab #2.
    14
    Fig. 18
    EE423 Lab #2.
    15
  27. Another Method of Demodulating AM Signal: Synchronous
    Detection
    There is another method of demodulating AM signal other than the envelope detection
    we used for part 5, called synchronous detection. The demodulation process is
    multiplying
    V (t) AM
    by
    t  c
    cos
    :
    t
    V ms t V ms t
    V t t
    c
    c c
    c
    AM  cos 2
    2
    [1 ( )]
    2
    [1 ( )]
    ( )*cos




    After low pass filtering and DC blocking, we get the output signal
    2
    V ms(t)
    c
    which is
    proportional to the original signal.
    This demodulating scheme can be viewed as:
    Now modify your part 5 system diagram to be as below:
    AM modulated
    signal u(t)
    Multiply by
    t c
    cos
    BPF Demodulated
    signal s(t)
    EE423 Lab #2.
    16
    The 2 carrier signals are the same, as well as the two BPFs. Add a Mux to compare the
    demodulated signals by using 2 methods respectively. Include all scope output plots in
    your lab reports.
  28. Questions:
    Only one question in this experiment, but may be challenging:
    In example3, we choose 1/51200 as the sample time. Change it to 1/50000 to see the
    difference in frequency domain. Print out figures for these two cases and explain why
    this difference happens.