LabSheet DSBAM and DSBSC 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Brac University

Department of Electrical and Electronic engineering


EEE342/ECE342: Introduction to Communication Engineering Laboratory

Experiment Name: Double Sideband Amplitude Modulation & Demodulation

Objective:
1. To perform the DSBAM and DSBSC signal Generation and Detection.

Introduction:
Figure: AM Modulator
Figure: AM Demodulator

Lab Work:

➢ Draw all the models one-by-one in the MATLAB Simulink window.


➢ Set the simulation time from the model window as below:
Simulation→Simulation parameters: Start time = 0.0 & Stop time = 10.0.
➢ Then simulate all the models and observe all the wave shapes at different points of the
model.

Instructions:

➢ You can take the blocks from the Simulink Library Browser.
➢ The blocks that you will use in this experiment can be taken from the following mentioned
library:
✓ Bernoulli Binary Generator: Communication Blockset→ Comm sources→ Data
Sources→ Bernoulli Binary Generator
✓ Sine Wave: Simulink→ Sources→Sine wave
✓ Product: Simulink→Math operations→Product
✓ AWGN Channel: Communication Block Set→Channels→AWGN Channel
✓ Digital Filter Design: Communication Blockset→Comm Filters→Filter Designs
Library Link→Digital Filter Design
✓ Analog/Digital Filter Design: Signal Processing Blockset→Filtering→Filter
Implementations →Analog/Digital Filter Design
✓ Spectrum Scope: Signal Processing Blockset→ Signal Processing Sinks→Spectrum
Scope
✓ Compare to Constant: Simulink→Logic & Bit Operations→Compare to Constant
✓ Scope: Simulink→Sinks→Scope
✓ Constant: Simulinks→Sources→Constants
✓ Abs: Simulink→Math operations→Abs
✓ Sum: Simulink→Math Operations→Sum

Parameters to be used for different blocks:

Spectrum Scope:
Check ‘Show Scope Properties’ & ‘Buffer input’. Set: Buffer size: 128, Buffer
overlap: 64 & Number of spectral averages: 2.
Check ‘Show axis properties’. Set: Frequency unit: Hertz & Frequency range: [-
Fs/2…Fs/2].
After Simulation you will observed a window for each spectrum scope. To view the
spectrum more clearly, set Axes→Autoscale from the spectrum window.
Sine wave:
Both modulator &
demodulator: Sine type: Time
based Amplitude: 1.0
Frequency: 2*pi*1 rad/sec
Sample time: 1/1000

For carrier signal: Sine


type: Time based
Amplitude: 2.0 Frequency:
2*pi*20 rad/sec Sample
time: 1/1000

Product: Number of inputs: 2 & Multiplication: Element wise

AWGN Channel: Initial seed: 67, Mode: Variance from mask & variance: 1.
Note: You can vary the noise power by varying variance

Digital Filter Design:


Filter type: Lowpass
Design method: FIR→Equiripple
Filter order: Minimum order
Frequency Specifications: Units: Hz, FS: 5000, Fpass=5, Fstop=8.
Magnitude Specifications: Units: dB, Apass=1, Astop=80.
Then click Design Filter. The magnitude response of the filter will be changed according to
your specifications.
Note: You should choose your Fpass and Fstop frequencies depending on the frequency of
your modulating signal.

Compare to constant: Operator: >=. Constant: Depends on your system. This is


the threshold value of the detector.

Scope: Data History: Uncheck the ‘Limit data points to last’.

Constant: Constant value: 1

Abs: Check the ‘saturate on integer overflow’ & ‘Enable zero crossing detection’.

Sum: List of signs: |+- (subtraction will be done).

Note: To sum up two inputs, list of signs: |++


Simulation Models

Example 1: AM-DSB Modulation & Demodulation

Report:

1. Add AWGN channel (to see the effect of noise) in between your modulator and
demodulator and observe the output. Include your model diagram and output waveforms
(choose different modulation index value for under, over & perfect modulation) in the report.
2. Build the following block of Balanced Modulator to generate DSBSC waveform in
MATLAB Simulink. Observe the modulated output.
Also demodulate (Synchronous Demodulation) the DSBSC output to extract the message
signal.

You might also like