CS - LAB - REPORT Matlab
CS - LAB - REPORT Matlab
Submitted by
BL.EN.U4ECE22070
NAME: D S Raga Vinay
To design an amplitude modulator and demodulator which can be used to transmit message
signal using a high frequency carrier and reconstruct the message signal.
Components Required
Transistor
Function generator
DC power supply
CRO/DSO
Resistors
Capacitor
Inductor
Theory -
Message Signal: It is a low frequency signal which attenuates when transmitted through
baseband transmission. The bandwidth of the message signal is W Hz or Fm Hz.
Carrier Signal: It is a high frequency signal which is modulated with respect to the input
message signal, so that there is no loss in the message signal. The bandwidth of the message
signal is Fc Hz.
Modulation: It is the process of changing the characteristics of the carrier signal with respect
to the message signal. The main purpose of modulation is to generate a modulated signal
suited to the characteristics of a transmission channel.
Demodulation: It is the process of extracting the message signal from a modulated signal.
For AM envelope detector is used, which is a simple circuit consisting of a diode, capacitor
and a resistor. Here the filter is tuned to message frequency.
𝟏
Fm =
𝟐𝝅𝑹𝒄
Where R is the resistance of the envelope detector and C is the capacitance of the envelope
detector. The product of the two, i.e. RC is known as time constant.
Design:
Circuit Diagram:
Modulator-
Demodulator-
Design-
Amplitude Modulation:
1. Carrier Setup:
Use the function generator to produce a high-frequency sinusoidal signal with
Frequency 100 kHz
Set the carrier VP-P to 100 mV
2. Message Signal Setup:
Use another function generator to produce a low-frequency sinusoidal signal with
frequency 10 KHz
Set the message signal amplitude to 6V.
3. Modulation Process:
Use the CRO probes to connect the message as shown in the circuit above
Use the CRO probes to connect the carrier as shown in the circuit above
Use the CRO probes to check the output of the circuit at the point shown above
Amplitude Demodulation:
1. Rectification:
The modulated signal is fed to a diode, which rectifies the signal (Removing negative
cycles of the signal)
2. Envelope Detector:
The rectified signal is fed to a low-pass filter which filters out the unwanted
carrier signal
Use the CRO probes to check the demodulated output at the point shown in the circuit
Procedure:
1. Connect the circuit as shown in design circuit above.
Place the function generators, oscilloscope, breadboard, and all other necessary
components on a stable work surface.
Ensure all equipment is properly connected to power sources and grounded if
necessary
2. Set the first function generator to produce a sinusoidal carrier signal with a frequency
of 100 kHz and Vp-p of 100 mV. Connect this signal to the 0.1µF Capacitor.
3. Set the second function generator to produce a sinusoidal message signal with a
frequency of 10 KHz and Vp-p of 6V.
4. Connect all the remaining components on the breadboard properly. Ensure
the components are connected properly.
Model Graph:
Message Signal
Carrier Signal
Modulated Signal
Demodulated Signal
Observation Table:
Constant Parameter if available =
S No. Signal Frequency Vp-p
1 Carrier
2 Message
3 Modulated Signal
4 Demodulated Signal
Result
Designed and verified the working of amplitude modulation and demodulation in lab and on LTspice
simulation.
Experiment-2
AIM:
To design a modulator in which input voltage is used to control the frequency of oscillation
of the output signal.
Components Required-
555 - timer
Function generator
DC power supply
CRO/DSO
Resistors
Capacitor
Diode
Inductor
Breadboard
Theory:
Frequency modulation (FM) is a widely used technique in communication systems where the
frequency of a carrier signal is varied in accordance with the instantaneous amplitude of the
modulating signal. Unlike amplitude modulation (AM), where the amplitude of the carrier
wave is varied, FM encodes information in the frequency deviations of the carrier signal,
providing greater resistance to signal amplitude variations caused by noise.
Circuit Diagram-
Design-
1.
The 555 Timer IC: The IC is set in Astable Multivibrator mode using resistors R 1 and R2 as
shown in the circuit above.
2.
Modulating Signal: The modulating signal is an input sinusoidal of low-frequency, i.e. 218
Hz with VP-P 136 mV. This signal is fed to the circuit as shown above.
3.
Frequency Modulation: The 555 timer’s frequency vary with respect to the input message
signal, producing a continuous band of high frequency and low frequency square wave.
Procedure:
1. Set up of Circuit Components:
Connect the 555 Timer in Astable multivibrator mode with R1, R2 and C1 as per
the calculated values
Connect the message signal between the two capacitors C1 and C2
2. Testing and Verification:
Check the output of the Astable Multivibrator at the OUT port, without the
message signal input. Ensure the output is a proper square signal
Connect the message signal and check the output
Model Graph:
Modulating Signal
Observation Table:
Constant Parameter if available =
S No. Signal Frequency Vp-p
1 Carrier
2 Message
3 Modulated Signal
Result
Designed and verified the working of frequency modulation in lab and on LTspice simulation.
Experiment 3
AIM:
To study the process of sampling and reconstruction of an Analog signal by building pulse
amplitude modulator and demodulator circuits
Components Required
Transistor
Function generator
DC power supply
CRO/DSO
Resistors
Capacitor
Op-amp
Breadboard
Theory-
Circuit Diagram
Modulator
Demodulator
Design
1. Modulating Signal:
The sine wave generator (V1) provides a continuous Analog signal that represents
the information to be transmitted.
The message configured to produce a 500 Hz sine wave with a 5V amplitude.
2. Carrier Signal:
The pulse generator (V2) produces a square wave that acts as the carrier signal.
It is configured with parameters to generate a pulse with a high amplitude of
5V, a low amplitude of -5V, and specific timings for rise, fall, high time, and
period.
3. Transistor as a Switch:
The transistor Q1 switches on and off according to the carrier signal (V2).
When the pulse signal is high, the transistor conducts, allowing the modulating
signal to pass through R2.
When the pulse signal is low, the transistor turns off, blocking the modulating
signal.
4. Operational Amplifier:
The OP07 amplifies the signal, ensuring that the modulated output has sufficient
strength.
It is powered by dual supplies (V3 and V4) set to ±12V.
5. Filtering:
The RC network (10k resistor and 10µF capacitor) at the output of the op-amp
filters the signal, smoothing out any high-frequency noise and providing a clean
PAM signal.
Procedure
2. Transistor Configuration:
3. Modulating Signal:
Connect the sine wave generator (V1) to the junction between R1 and the base
of Q1
4. Operational Amplifier:
5. Output Filtering:
Observation Table
Constant Parameter if available =
S No. Signal Frequency Vp-p
1 Carrier
2 Message
3 Modulated Signal
4 Demodulated Signal
Result
Designed and verified the working of pulse amplitude modulation and demodulation in lab
and on LTspice simulation.
Experiment 4
Theory:
Matlab Code:
subplot(3,2,1)
hold on
title ('Orignal Signal')
axis([0 11 0 11])
plot(t,y,'r')
subplot(3,2,2)
hold on
title('Signal in Discrete Form')
axis([0 11 0 11])
stem(t,y,'r')
subplot(3,2,3) hold on
title('Sampled Signal')
axis([0 11 0 11])
stem(t,a)
subplot(3,2,4)
hold on
title('Discrete Signal from Sampled Signal')
axis([0 11 0 11])
stem(t,yq,'black')
subplot(3,2,5:6)
hold on
title('Signal from Sampled Signal')
axis([0 11 0 11])
plot(t,yq,'black')
hold off
Output:
Experiment 5
Simulating Gram Schmidt orthogonalization procedure in MATLAB.
Thoery: