AC Lab Manual
AC Lab Manual
All students must observe the Dress Code while in the laboratory.
Sandals or open-toed shoes are NOT allowed.
Foods, drinks and smoking are NOT allowed.
All bags must be left at the indicated place.
The lab timetable must be strictly followed.
Be PUNCTUAL for your laboratory session.
Program must be executed within the given time.
Noise must be kept to a minimum.
Workspace must be kept clean and tidy at all time.
Handle the systems and interfacing kits with care.
All students are liable for any damage to the accessories due to their own negligence.
All interfacing kits connecting cables must be RETURNED if you taken from the lab
supervisor.
Students are strictly PROHIBITED from taking out any items from the laboratory.
Students are NOT allowed to work alone in the laboratory without the Lab Supervisor
USB Ports have been disabled if you want to use USB drive consult lab supervisor.
Report immediately to the Lab Supervisor if any malfunction of the accessories, is there.
Department of ECE 5
Aurora's Technological and Research Institute AC Lab
You should be punctual for your laboratory session and should not leave the lab without the
permission of the teacher.
Each student is expected to have his/her own lab book where they will take notes on the experiments
as they are completed. The lab books will be checked at the end of each lab session. Lab notes are a
primary source from which you will write your lab reports.
It is important that the programs are done according to the timetable and completed within the
scheduled time.
You should complete the prelab work in advance and utilize the laboratory time for verification only.
The aim of these exercises is to develop your ability to understand, analyze and test them in the
laboratory.
A member of staff and a Lab assistant will be available during scheduled laboratory sessions to
provide assistance.
Always attempt program first without seeking help.
When you get into difficulty; ask for assistance.
Assessment
The laboratory work of a student will be evaluated continuously during the semester for 25 marks. Of
the 25 marks, 15 marks will be awarded for day-to-day work. For each program marks are awarded
under three heads:
Lab Reports
Note that, although students are encouraged to collaborate during lab, each must individually prepare a
report and submit.
They must be organized, neat and legible.
Your report should be complete, thorough, understandable and literate.
You should include a well-drawn and labeled engineering schematic for each circuit investigated
Your reports should follow the prescribed format, to give your report structure and to make sure that
you address all of the important points.
Graphics requiring- drawn straight lines should be done with a straight edge. Well drawn free-hand
sketches are permissible for schematics.
Department of ECE 6
Aurora's Technological and Research Institute AC Lab
Space must be provided in the flow of your discussion for any tables or figures. Do not collect figures
and drawings in a single appendix at the end of the report.
Reports should be submitted within one week after completing a scheduled lab session.
Presentation
Experimental facts should always be given in the past tense.
Discussions or remarks about the presentation of data should mainly be in the present tense.
Discussion of results can be in both the present and past tenses, shifting back and forth from
experimental facts to the presentation.
Any specific conclusions or deductions should be expressed in the past tense.
Report Format:
Lab write ups should consist of the following sections:
Aim:
Equipments:
Circuit Diagram:
Theory:
Procedure:
Expected Waveform:
Results:
Conclusions:
.
Note: Diagrams if any must be drawn neatly on left hand side.
Department of ECE 7
Aurora's Technological and Research Institute AC Lab
LIST OF EXPERIMENTS
1. Characteristics of Mixer
3. Coastas Receiver
Department of ECE 8
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO : 1
AMPLITUDE MODULATION & DEMODULATION
OBJECTIVE:
To study
1. Amplitude modulation process
2. Measurement of Modulation Index
3. Effect of 100% Modulation, over modulation, under modulation
4. Demodulation Process
PRE-LAB:
1. Study the theory of Amplitude Modulation and Demodulation
2. Draw the circuit diagram for Modulation and Demodulation
3. Draw the expected wave forms for different values of modulation index
COMPONENTS:
1. Amplitude Modulation and Demodulation Trainer Kit 1 No.
2. CRO Dual Trace 1 No.
3. Connecting Probe and Cords
BRIEF THEORY:
If you connect a long wire to the output terminals of your Hi-Fi amplifier and another
long wire to the input of another amplifier, you can transmit music over a short distance.
DON'T try this. You could blow up your amplifier.
A radio wave can be transmitted long distances. To get our audio signal to travel long
distances we piggyback it onto a radio wave. This process is called MODULATION.
The radio wave is called the CARRIER. The audio signal is called the MODULATION.
At the receiving end the audio is recovered by a process called DEMODULATION.
From the diagram below, it can be seen that when the carrier is modulated, its amplitude
goes above and below its unmodulated amplitude. It is about 50% modulated in the
Department of ECE 9
Aurora's Technological and Research Institute AC Lab
diagram.
The maximum percentage modulation possible is 100%. Going above this causes
distortion.
If you tune across a station in the Medium Wave Band you will find that it takes up space
in the band. This is called the signal BANDWIDTH. This is the space taken by the upper
and lower sidebands. In the the example given above it would be 40 KHz. Since the
Medium Wave is only 500 KHZ wide there would only be space for about 12 stations.
Therefore the bandwidth of stations is limited to 9 KHz, which limits the audio quality. If
there are two stations too close together, their sidebands mix and produce
HETERODYNE whistles. Since both sidebands carry
Department of ECE 10
Aurora's Technological and Research Institute AC Lab
CIRCUIT DIAGRAMS :
AM MODULATION
AM DEMODULATION
CARRIER SIGNAL
A
m
p
l
i
t
u
d
e
Ac
TIME T
Department of ECE 11
Aurora's Technological and Research Institute AC Lab
MODULATING SIGNAL
A
m
p
l
i
t
u
d
e TIME T
Am
AM MODULATED OUTPUT
A
m
p
l
i
t
u
d
e
TIME T
AM DEMODULATION OUTPUT
PROCEDURE
A. MODULATION:
i. Switch ‘ON’ the Trainer Kit.
ii. Generate the carrier and modulating signal such that carrier frequency must be greater
than modulating frequency.
iii. Apply the carrier and modulating signal into AM modulator input,.
vi. Trace the envelope of the modulated waveform.
v. Repeat step(vi) duly adjusting the modulating signal for under modulation and over
modulation
B. DEMODULATION
i. Apply the modulated AM output into Demodulation input.
ii. Trace the demodulated output waveform.
POST- LAB
Department of ECE 12
Aurora's Technological and Research Institute AC Lab
i. Observe the frequency and amplitude of the carrier and modulating signal.
ii. Observe the frequency and maximum peak-peak amplitude(Amax) and minimum peak-
peak amplitude (Amin) of the AM signal in Table:I
iii. Calculate the modulation index Ч=Amax-Amin/Amax+Amin
iv Plot the out put waveforms Time T Vs Voltage Vo
v. Write result and conclusion
Department of ECE 13
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO: 2
OBJECTIVE:
To study the balanced modulator using IC 1496
PRE-LAB:
1. Study the theory of balanced modulator
2. Draw the circuit diagram
3. Draw the expected waveforms
4. Study the datasheet of IC 1496
EQUIPMENT:
1. Function generator
2. Dual trace CRO
3. Balanced modulator trainer kit
THEORY:
In a balanced modulator, a signal is modulated using two carriers that are 180
degrees out of phase. The resulting signals are then combined in such a way that the carrier
components cancel, leaving a DSB-SC (double sideband, suppressed carrier) signal.
CIRCUIT DIAGRAM:
Department of ECE 14
Aurora's Technological and Research Institute AC Lab
Department of ECE 15
Aurora's Technological and Research Institute AC Lab
PROCEDURE:
1. Switch ON the trainer kit
2. Generate the carrier and modulating signal
3. Apply the modulating signal and the carrier signal to the balanced modulator input
4. Observe the balanced modulator output
POST LAB
1 .Observe the frequency and amplitude of the carrier and modulating signal
2. Observe the frequency and amplitude of the balanced modulator output
3. Observe the quadrature null effect
4. Plot the output waveforms Time T VS Voltage V
5. Write result and conclusions
Department of ECE 16
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO: 3
SSB – SC MODULATOR & DEMODULATOR
OBJECTIVE:
To study the Single side band modulation by using Phase shift method and demodulation
using synchronous detector method.
PRE-LAB:
1. Study the theory of SSB
2. Draw the circuit diagram and expected waveforms
EQUIPMENTS:
1. Function generator 2
2. Dual trace CRO 1
3. SSB system modulation and demodulation trainer kit
4. Patch Cards/Connecting wires
5. Frequency counter/Multi meter
THEORY:
Department of ECE 17
Aurora's Technological and Research Institute AC Lab
SSB-DEMODULATOR SYSTEM
EXPECTED WAVEFORMS
Department of ECE 18
Aurora's Technological and Research Institute AC Lab
DSB-SC 0UTPUT
SSB-SC OUTPUT
PROCEDURE:
a. Modulation
1. Switch ON the trainer kit
2. Observe the output of RF generator using CRO.There are two outputs from the RF
generator one is direct output and another is 90 deg phase shift with the direct output
3. Observe the output of AF generator using CRO.There are two outputs from the AF
generator one is direct output and another is 90 deg phase shift with the direct output
4. Set the amplitude of the RF signal to 0.1vpp and connect the 0 deg phase shift signal to
one BM and 90 deg angle phase shift signal to the second BM
5. Set the AF Signal amplitude to 8vpp and connect to the BM
6. Observe the outputs of both balanced modulators simultaneously and adjust the balance
control until get the output waveforms (DSB SC).
7. To get LSB of SSB connect both balanced modulators outputs to SUBTRACTED circuit
8. Measure the frequencies of LSB using multimeter.
9. Calculate the theoretical frequency of the SSB (LSB) and compare it with the practical
value.
LSB=RE Frequency –AF Frequency
10. To get USB of SSB signal, connect both balanced modulators outputs to ADDER circuit
11. Measure the frequencies of USB
12. Calculate the theoretical value of the SSB Upper Side Band (SSB-USB) frequency and
compare it with practical value
USB=RF Frequency+AF Frequency
Department of ECE 19
Aurora's Technological and Research Institute AC Lab
1. Connect the SSB signal from the summer or sub tractor to the SSB signal input of the
synchronous detector and RF signal (0º) to the RF input of the synchronous detector.
2. Observe the Detector output using CRO and compare it with the AF signal (Modulating
Signal).
3. Observe the SSB signal for the different frequencies of the AF signal (modulating signal)
USB LSB
AF.sig Theoretical Practical Theoretical
S.No Practical Freq
Freq(Fm) Freq=Fc+Fm Freq Freq=Fc-Fm
POST LAB
1. Observe the frequency and amplitude of the RF carrier both (900 & 0 0 ) phase , AF
modulating signal (900 & 0 0 ) phase, DSB-SC, SSB-SC, LSB and USB of the SSB
signal
2. Observe the frequency components and bandwidth of SSB
3. Plot the output waveforms above mentioned.
4. Write result and conclusion
QUESTIONS:
1. What are the advantages of SSB over AM?
2. What is the main drawback of SSB?
3. What is meant by VSB?
Department of ECE 20
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO: 4
FREQUENCY MODULATION AND DEMODULATION
OBJECTIVE:
To study
1. Frequency modulation process
2. Measurement of Modulation Index
3. Measurement of Frequency deviation
4. Demodulation Process
PRE-LAB:
1. Study the data sheet of IC LM 2206, LM 565
2. Study the theory of FM modulation and demodulation
3. Draw the circuit diagram for modulation and demodulation
4. Draw the expected wave forms
EQUIPMENT:
1. Frequency modulation and demodulation trainer kit 1 No.
2. Dual trace CRO 1 No.
3. Connecting probe and cords
THEORY:
Department of ECE 21
Aurora's Technological and Research Institute AC Lab
CIRCUIT DIAGRAM :
MODULATION
DEMODULATION
Department of ECE 22
Aurora's Technological and Research Institute AC Lab
Department of ECE 23
Aurora's Technological and Research Institute AC Lab
PROCEDURE:
a. Modulation:
i. Switch ON the trainer kit
ii. Generate the carrier and modulating signal
iii. apply the modulating signal to the frequency modulator
iv. Trace the FM output
b. Demodulation:
i. apply the modulated FM output into Demodulation input
ii. Trace the demodulated output waveform
TABULATION
POST LAB
1. Observe the frequency and amplitude of the carrier and modulating signal
2. Calculate the frequency deviation by observing Fmax and Fmin
δ=Fc-Fmax or δ=Fc-Fmin
3. Calculate modulation index β= δ/Fm
4. Change the amplitude of the modulating signal and repeat steps 1 to 3 for different values of
Am and note down the readings in table-1
5. Plot the output waveforms Time T VS Voltage Vo
6. Write result and conclusion
Department of ECE 24
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO : 5
STUDY OF SPECTRUM ANALIZER AND ANALYSIS OF AM & FM SIGNALS
Department of ECE 25
Aurora's Technological and Research Institute AC Lab
Department of ECE 26
Aurora's Technological and Research Institute AC Lab
Department of ECE 27
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO: 6
PRE EMPHASIS AND DE EMPHASIS
OBJECTIVE:
To study the operation of Pre-emphasis and De-emphasis circuits
PRE-LAB:
1. Study the theory of Pre-emphasis and De-emphasis circuits
2. Draw the circuit diagram
3. Draw the expected waveforms
COMPONENTS:
1. Resistors 100kΩ, 100Ω
2. Capacitors 1μf, 100μf
EQUIPMENT:
1. Function generator 1
2. Dual trace CRO 1
THEORY:
Pre-emphasis
Improving the signal to noise ratio by increasing the magnitude of higher frequency
signals with respect to lower frequency signals
De-emphasis
" Improving the signal to noise ratio by decreasing the magnitude of higher
frequency signals with respect to lower frequency signals"
Transmitters that employ a true FM modulator require a pre emphasis circuit before the
modulator fore the true FM modulator doesn't automatically pre emphasize the audio like
a transmitter that uses a phase modulator. A separate circuit is not necessary for pre
emphasis in a transmitter that has a phase modulator because the phase modulator applies
pre emphasis to the transmitted audio as a function of the phase modulator. The receivers
De emphasis circuitry takes the unnatural sounding pre emphasized audio and turns it
back into its original response. Pre emphasized (discriminator) audio is however available
directly from the audio demodulation (discriminator) circuitry. In linking systems, many
choose to eliminate the emphasis circuitry to allow better representation of retransmitted
Department of ECE 28
Aurora's Technological and Research Institute AC Lab
signals. Since the signal has already been pre emphasized (by the user that is
transmitting,) and since the receiver you are listening to takes care of the de emphasis.
CIRCUIT DIAGRAMS
PRE-EMPHASIS
DE-EMPHASIS
EXPECTED WAVEFORMS:
INPUT
A
m
p
l
i
t
u
d
e
Am
TIME T
Department of ECE 29
Aurora's Technological and Research Institute AC Lab
OUTPUT
A
m
p
l
i
t
u
d
e
Am
TIME T
PRE-EMPHASIS
Freq Vs Gain
Freq f (Hz)
DE-EMPHASIS
Freq Vs Gain
Department of ECE 30
Aurora's Technological and Research Institute AC Lab
TABLE
PRE EMPHASIS
Gain in dB
Input Input Voltage Vi Output Voltage
S.No Gain=Vo/Vi 20log(vo/Vi)
Freq (Volts) Vo (Volts)
DE-EMPHASIS
PROCEDURE:
a. Pre-emphasis
1. Connect the circuit as per the circuit diagram
2. Apply a constant sine wave input across the input terminal of fixed amplitude(V i)
3. By varying the input frequency ,note down the output amplitude (Vo) with respect to
input frequency in Table
4. Calculate the gain using the formula
5. Gain =20log (Vo)/ (Vi) db
b. De-Emphasis
1. Connect the circuit as per the circuit diagram
2. Repeat the steps 2, 3 &4
POST LAB
1. Observe the output amplitude for both the pre-emphasis and De-emphasis circuits
2. Calculate the gain in db
3. Plot the frequency versus gain curves on logarithmic graphs for both the circuits
4. Plot the input and output waveforms Time T VS Voltage Vo
5. Write the result and conclusion
QUESTIONS:
1. Observe the out put signal is disturbed by noise what action has to be taken and measure the
output voltage.
2. Where we use the pre emphasis circuit.
3. Where we use the de emphasis circuit.
4. What are the advantages of pre emphasis and de emphasis circuits?
Department of ECE 31
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO : 7
TIME DIVISION MULTIPLEXING AND DEMULTIPLEXING
EQUIPMENT:
THEORY:
Time Division Multiplexing (TDM) is a technique for transmitting serial messages on a signal
transmission channel by dividing the time division into slots. One slot for each message. The concept
of TDM comes from sampling theorem which enables use to transmit the information contained in the
band limited Signal using sampling of the signal taken uniformly or a rate slightly higher then the
Nyquist rate TDM enables the joint utilization at a common transmission channel by a number of
independent message sources without mutual interference.
The different I/p message signals, all band limited in WHz by the I/P low pass filters, and sequentially
sampled at the transmitters by a rotary switch or a comparator. The switch makes are complete
revolution in Ts ½ W, extracting are sample from each I/P. The commutator O/P is a PAM waveform
containing individual message sample.
It there are N number of I/P the pulse to Pulse spacing will be Ts = 1, while the spacing
N Nfs
b/w successive samples from each I/P is called a frame.
At the receiver a similar rotatory switch, the decommutator separates the samples and distributes them
to a bank of low-pass filters which in turn is usually electronic and synchronization signals are
provided to keep the distribute in step with the commutant.
Department of ECE 32
Aurora's Technological and Research Institute AC Lab
EXPECTED GRAPHS:
PROCUDURE:
1. Connect the O/P of the experimental board to one of the channels on C.R.O.
2. Switch ON the experimental board.
3. Observe the O/P waveforms.
4. Vary the values of the resistors R1, R2 and R3 alternative and observe the O/P on C.R.O.
RESULT:
The process of the Time Division Multiplexing and the waveforms has been studied.
CONCLUSION
Department of ECE 33
Aurora's Technological and Research Institute AC Lab
Department of ECE 34
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO: 9
VERIFICATION OF SAMPLING THEOREM
AIM: To study the effect of sampling on the transmission of information through PWM.
EQUIPMENT:
THEORY:
The principle of sampling can be explained using the switching sampler. The switch periodically shifts
below b/w two constants at the rate of fs = 1 / Ts Hz staying on the I/P constant for each sampling
period. The o/p Xs(t) of the samples consists of segments of x(t) and Xc(t) can be represented as
Where S(t) is sampling or switching function. There are a number of differences b/w the
ideal sampling and reconstruction techniques described in the proceeding sections of the actual signal.
PROCEDURE:
1) Observe the internal clock and measure its frequency and amplitude.
2) Give the clock to the clock I/P terminal.
3) Connect the modulating signal to the I/P.
4) Check the condition fs > 2fm and observe the de-modulated wave.
5) Check the condition fs < 2fm and fs = 2fm and draw the O/P waveforms.
RESULT:
CONCLUSION:
Department of ECE 35
Aurora’s Technological and Research Institute DC Lab
36
Aurora’s Technological and Research Institute DC Lab
EXPERIMENT NO: 10
PULSE AMPLITUDE MODULATION AND DEMODULATION
AIM:
1) To study the PAM modulation and its waveforms
2) To study the de-modular of PAM
3) To study the effect of sampling frequency on de-modulation O/P.
EQUIPMENT:
THEORY:
In PAM, the amplitude of the carrier wave of higher frequency follow the amp of the message signal.
Within this (Modulation Sampling) we have two more types of sampling those are
(1) Natural Sampling
(2) Flat Top Sampling
Basically, in Natural Sampling, the carrier waves are train of pulses of a certain frequency. After
sampling, the top of the Pulse follow the message signal. Due to this following of top of Pulses with the
message signals cause a distortion in De-modulation.
In Flat top sampling also we use train of pulses for sampling, but only the starting point of each pulse
follow the message signal, remaining width of the pulse will (follow) be flat. But here we go for Natural
sampling.
EXPECTED WAVEFORMS:
37
Aurora’s Technological and Research Institute DC Lab
PROCEDURE: (MODULATION):
1. Observe the clock on C.R.O. and measure its frequency and amp. (freq 5KHz)
2. Connect the clock to clock I/P terminals in modulation.
3. Put control switch in a.c. position and set amplitude = OV. This provides DC at Modulating
signal terminal.
4. Connect the modulating signal or I/P to the modulator.
5. Connect one channel of C.R.O. at ‘Ti’ and Gnd. Observe that the pulses are of same height.
Height is adjustable by varying offset. This is PAM signal with DC I/P. Measure amplitude and
frequency of Pulses.
6. Increase the amplitude of modulation signal. Observe the amplitude and frequency of this
sinusoidal modulating signal.
7. Observe PAM signal.
DE-MODULATION:
RESULT:
CONCLUSION:
38
Aurora’s Technological and Research Institute DC Lab
39
Aurora's Technological and Research Institute AC Lab
EXPERIMENT NO : 11
PULSE WIDTH MODULATION AND DEMODULATION
AIM:
EQUIPMENT:
1) Experimental Board
2) Dual trace C.R.O.
3) AF generator
4) Multimeter
THEORY:
In PWM, the samples of the message signal are used to vary the duration of the individual pulses. The
pulse width may be varied by varying the time of occurrence of the leading edge, trailing edge of both
edges of the pulse in accordance with the sampled value of the modulating wave PWM can also be
generated by using emitter follower monostable multivibrator is an excellent voltage to time converter,
since its gate width is dependent on the voltage to which the capacitor is changed. If this voltage can be
varied in accordance with a signal voltage, a series of rectangular pulses can be obtained with width
varying as required.
The demodulated of PWM is quite simple PWM is passed through a low pass filter. The reconstruction is
associated with a certain amount of Distortion caused by the cross modulator products that fall in the
signal band.
EXPECTED WAVEFORM:
Department of ECE 5
Aurora’s Technological and Research Institute DC Lab
PROCEDURE:
STUDY OF MODULATION:
STUDY OF DEMODULATION:
1) Generate the stationary PWM waveform using sin wave modulating signal.
2) Connect the modulator O/P to PWM demodulator.
3) Connect Channel (1) to Modulating Signal and channel (2) to demodulated wave.
RESULT:
CONCLUSION:
41
Aurora’s Technological and Research Institute DC Lab
42
Aurora’s Technological and Research Institute DC Lab
EXPERIMENT NO : 12
PULSE POSITION MODULATION AND DEMODULATION
AIM:
EQUIPMENT:
THEORY:
In PDM, long pulses expand considerable power duration. If the pulse which bearing no additional
information. If this un used power is subtracted from PDM, so that only time transitions are preserved.
We observe a more efficient type of pulse modulation known as pulse position modulation. Here in the
Pulse Position Modulated wave the position of the Pulse relative to its unmodulated time of occurrence is
varied in accordance with the message signal.
We generate a PPM wave from PWM wave by using a Monostable Multivibrator. The device has one
absolutely stable state and one quest – stable state into which it is triggered by an externally applied Pulse.
The monostable multivibrator is designed to trigger on the trailing edges of the duration – modulated pulse
is varied in accordance with the message signal.
The fixed pulse duration of the PPM wave at the monostable multivibrator O/P can be set by appropriately
choosing the resistance – capacitance combination in the timing circuit of the device.
43
Aurora’s Technological and Research Institute DC Lab
EXPECTED WAVEFORM:
PROCEDURE:
STUDY OF MODULATION:
STUDY OF DEMODULATION:
RESULT:
CONCLUSION:
44
Aurora’s Technological and Research Institute DC Lab
45
Aurora’s Technological and Research Institute DC Lab
46
Aurora’s Technological and Research Institute AC Lab
EXPERIMENT NO: 13
FREQUENCY SYNTHESIZER
AIM
To study the operation of frequency synthesizer using PLL
PRE-LAB:
1. Study the data sheet of IC 7404,IC 4017,IC 565 and IC 4046
2. Study the theory of frequency synthesizer
3. Draw the circuit diagram and expected waveforms
EQUIPMENTS
1. Frequency synthesizer trainer AET -26A
2. Dual trace C.R.O (20Mhz)
3. Digital frequency counter or multimeter
4. Patch chords
THEORY:
BLOCK DIAGRAM:
Fout =N.f in
47
Aurora’s Technological and Research Institute AC Lab
CIRCUIT DAIGRAM
PROCEDURE:
1. Switch on the trainer ad verify the output of the regulated power supply i.e. 5V. These
supplied are internally connected to the circuit so no extra connections are required.
2. Observe output of the square wave generator using oscilloscope and measure the range
with the help of frequency counter, frequency range should be around 1KHz to 10KHz.
3. Calculate the free running frequency range of the circuit (VCO output between 4th pin
and ground 1. For different values of timing resistor R1 ( to measure Rt value using
digital multimeter between given test points 1. And record the frequency values in table
1
Fout = 0.3 / (RtCt) where Rt is the timing resistor and Ct is the timing capacitor = 0.01 f.
48
Aurora’s Technological and Research Institute AC Lab
4. Connect 4th pin of LM 565 (Fout) to the driver stage and 5th pin (Phase comparator)
connected to 11th pin of 7404. Output can be taken at the 11th pin of the 7490. It should
be divided by the 2 & 3 times of the fout
TABULATION:
EXPECTED WAVEFORMS:
A
m
p
l
i
T
u
d
e
Ac
TIME T
POST LAB:
CONCLUSIONS:
QUESTIONS:
49
Aurora’s Technological and Research Institute AC Lab
50
Aurora’s Technological and Research Institute AC Lab
EXPERIMENT NO: 14
AGC CHARATERISTICS
AIM
To observe the effect of automatic gain control(AGC)
PRE LAB:
1. To study the theory of AGC.
2. Draw the Block Diagram, circuits diagram and expected waveforms
EQUIPMENTS:
1. AGC Trainer Kit
2. CRO
3. Patch Chords
4. Digital Multimeter
THEORY:
Block Diagram :
51
Aurora’s Technological and Research Institute AC Lab
CIRCUIT DIAGRAM
PROCEDURE:
1. Connect 455 KHz IF Signal Function Generator connect AGC link. Connect CRO
channel-1 at input terminals.
2. Connect CRO channel 2 at collector of Q3. The amplified signal will be observed.
3. Calculate the voltage gain by measuring the amplitude of output signal (V o) waveform,
using formula A=Vo/Vi.
4. Now connect CRO-2 channel at output. The detected audio signal of 455 Khz will be
observed.
5. Now vary input level of 455 KHz IF signal and observe detected 455 KHz audio signal
with and without AGC link. The output will be distorted when AGC link is removed i.e.,
there is no AGC action.
6. This explains AGC effect in Radio circuit.
TABULATION:
52
Aurora’s Technological and Research Institute AC Lab
EXPECTED WAVEFORMS:
AM Modulated RF Input
A
m
p
l
i
T
u
d
e
Ac
TIME T
A
m
Detected Output without AGC
p
l
i
T
u
d
e
Ac TIME T
POST-LAB:
1. Observe the input voltage and output voltage for with AGC and Without AGC in Table 1
2. Calculate Gain a=vo/vi for both cases.
3. Plot the output waveforms Time T Vs Voltage Vo and input voltage Vi Vs Gain A.
4. Write Result and Conclusions
QUESTIONS:
1. what is meant by AGC?
2. What is the difference between simple AGC and delayed AGC?
3. From which part of receiver AGC is obtained?
53
Aurora’s Technological and Research Institute AC Lab
EXPERIMENT NO: 15
PHASE LOCKED LOOP
OBJECTIVE:
To study the Phase locked loop using 565 IC and to take input frequency given by an
external signal source
PRE-LAB:
To Study
1. The data sheet of IC 565
2. The theory of Phase locked loop
3. About free running frequency locking range and capture range
4. Draw the circuit diagram and expected waveforms
EQUIPMENT:
1. Function generator 2
2. Dual trace CRO 1
3. Phase locked loop trainer kit
THEORY:
A phase-locked loop or phase lock loop (PLL) is a control system that generates a signal
that has a fixed relation to the phase of a "reference" signal. A phase-locked loop circuit
responds to both the frequency and the phase of the input signals, automatically raising or
lowering the frequency of a controlled oscillator until it is matched to the reference in both
frequency and phase. A phase-locked loop is an example of a control system using negative
feedback Phase-locked loops are widely used in radio, telecommunications, computers and
other electronic applications. They may generate stable frequencies, recover a signal from a
noisy communication channel, or distribute clock timing pulses in digital logic designs
such as microprocessors. Since a single integrated circuit can provide a complete phase-
locked-loop building block, the technique is widely used in modern electronic devices,
with output frequencies from a fraction of a cycle per second up to many gigahertz.
BLOCK DIAGRAM
54
Aurora’s Technological and Research Institute AC Lab
CIRCUIT DIAGRAM:
PROCEDURE:
1. Switch ON the trainer kit
2. Check the VCO output at pin 4 of IC 565 that is a square wave form. The frequency of the
VCO Output depends on CT (0.01f) and RT (4.7kΩ).
3. Next short the pins 4&5 and give signal of variable frequency and observe VCO output
4. Change the input frequency and observe the VCO output on the CRO.
5. Between some frequencies the VCO output is locked to the input signal frequency This can
be observed by increasing or decreasing the frequency of the VCO output by changing
input frequency
6. Before or after that frequency range the VCO output is not locked
7. Calculate Lock range (FL) and capture range (FC) by using the following formulas
FL = 8fo/VCO, fo=0.3/RtCT
FC=1/2π √2πf2/3.6*103 C2
Table1:
Locking Frequency
S.No Frequency Range
From To
CHARTERISTICES
55
Aurora’s Technological and Research Institute AC Lab
QUESTIONS:
1. Observe the VCO output when pins 4&5 short and give square wave as signal
2. Define lock range and capture range
3. What are the basic applications of PLL?
56
Aurora’s Technological and Research Institute AC Lab
ANNEXURE-I
EXPERIMENT NO: 1
57
Aurora’s Technological and Research Institute AC Lab
CHARACTERISTICS OF MIXER
AIM
PRE LAB:
1. To study the theory of Mixer
2. Draw the circuit diagram and expected waveforms
EQUIPMENTS:
1. Frequency mixer trainer kit.
2. C.R.O (20MHz)
3. Connecting cords and probes.
4. Function generator (1MHz).
THEORY:
58
Aurora’s Technological and Research Institute AC Lab
BLOCK DIAGRAM
CIRCUIT DIAGRAM
EXPECTED WAVEFORMS
INPUT SIGNAL Fx
A
m
p
l
i
T
u
d
e
Ac
TIME T
INPUT SIGNAL Fy
59
Aurora’s Technological and Research Institute AC Lab
A
m
p
l
i
T
u
d TIME T
e
Ac
MIXER OUTPUT(Fy-Fx)
A
M
P
L
I
T
U
D
E TIME T
PROCEDURE:
1. Connect the circuit as per the given circuit diagram.
2. Switch on the power supply of trainer kit.
3. Apply a sine wave at input Fx of 2 VP-P amplitude and 100 KHz frequency.
4. Apply a sine wave at input FY of 2 VP-P amplitude and 100 KHz frequency.
5. Observe the output waveform on the CRO.
6. Repeat the steps 3,4 and 5 by changing the values of Fx once greater than and less than
FY in a steps of 5Khz (in the range 80KHz to 120KHz)
TABULATION
60
Aurora’s Technological and Research Institute AC Lab
POST LAB:
1. Observe the amplitude and time. Of inputs and output in table
2. Draw the expected waveforms
3. Verify the output signal obtained with the theoretical value.
4. Plot the graphs for Time T VS input signal (FX) Voltage V ,input signal (FY) Voltage V
and output Signal F(x-y) voltage V.
5. Write result and conclusions
CONCLUSIONS:
Obtained the output of the mixer for various inputs.
QUESTIONS:
1. what are the different types of mixtures available?
2. What is meant by heterodyning?
3. What is meant by IF?
61
Aurora’s Technological and Research Institute AC Lab
EXPERIMENT NO: 2
DIGITAL PHASE DETECTOR
OBJECTIVE:
To detect the phase difference between two square wave signals using digital phase
detector.
PRE LAB:
1. To study the theory of digital phase detector and EX-OR gate operation and truth table.
2. Draw the circuit diagram and expected output and input waveforms
EQUIPMENT:
1. Digital phase detector trainer kit
2. Regulated power supplies
3. C.R.O (20MHz)
4. Connecting cords & probes
5. Digital frequency counter or multimeter
THEORY:
Phase detector is a frequency mixer or analog multiplier circuit that generates a voltage
signal which represents the difference in phase between two signal inputs. It is an essential
element of the phase-locked loop (PLL).Detecting phase differences is very important in many
applications, such as motor control, radar and telecommunication systems, servo mechanisms, and
demodulators.
Some signal processing techniques such as those used in radar may require both the amplitude
and the phase of a signal, to recover all the information encoded in that signal. One technique is to
feed an amplitude-limited signal into one port of a product detector and a reference signal into the
other port; the output of the detector will represent the phase difference between the signals. If the
signal is different in frequency from the reference, the detector output will be periodic at the
difference frequency. Phase detectors for phase-locked loop circuits may be classified in two
types. A Type I detector is designed to be driven by analog signals or square-wave digital signals
and produces an output pulse at the difference frequency. The Type I detector always produces an
output waveform, which must be filtered to control the phase-locked loop variable frequency
oscillator (VCO). A type II detector is sensitive only to the relative timing of the edges of the input
and reference pulses, and produces a constant output proportional to phase difference when both
signals are at the same frequency. This output will tend not to produce ripple in the control voltage
of the VCO
62
Aurora’s Technological and Research Institute AC Lab
CIRCUIT DIAGRAM
63
Aurora’s Technological and Research Institute AC Lab
EXPECTED WAVEFORMS
PROCEDURE
2. Observe the output of the square wave generator available on the trainer kit using CRO
and measure the range with the help of frequency counter, the frequency range should be
around 2 KHz to 13 KHz.
3. Calculate the free running range of the VCO output i.e. between 4th pin of IC PLL 565
and ground. For different values of timing resistor Rt, fout is given by Fout =0.3/ Rt Ct
where Ct: timing capacitor = 0.01 μF, Rt : timing resistor
4. Connect the square wave to the input of IC PLL 565 and short 4th and 5th pin of PLL.
Vary the input frequency of the square wave, when the PLL is locked that is connected to
64
Aurora’s Technological and Research Institute AC Lab
one input fout EX-OR phase detector. The other input fin of EX-OR phase detector is the
coming from inbuilt of square wave generator.
5. Connect the pulse generator output to the input of IC 565 PLL and short 4th & 5th pin of
PLL. Vary the input frequency of the square wave when the PLL is locked that is
connected to one input of Edge triggered phase detector input i.e. fout. The other input fin
of edge triggered phase detector is the pulse input coming from the inbuilt pulse generator.
6. The dc output voltage of the exclusive-OR phase detector is a function of the phase
difference between its two inputs fin and fout.
POST LAB:
1. Observe the Voltage and Time of the two input square waves
2. Observe difference of two inputs as square wave output.
3. Plot the inputs and output waveforms Time T VS Voltage V
CONCLUSIONS:
QUESTIONS:
65
Aurora’s Technological and Research Institute AC Lab
EXPERIMENT NO: 3
COASTAS RECEIVER
AIM
PRE LAB:
1. To study the operation of coastas receiver.
2. Draw the circuit diagram and expected waveforms
EQUIPMENTS:
1. Communications trainer kit.
2. DSB-SC modulator trainer kit.
3. C.R.O (20MHz)
4. Connecting cords and probes.
5. Function generator (1MHz).
THEORY:
This loop, and its variations, is much-used as a method of carrier acquisition (and
simultaneous message demodulation) in communication systems, both analog and digital.
It has the property of being able to derive a carrier from the received signal, even when there is
no component at carrier frequency present in that signal (eg, DSBSC). The requirement is that
the amplitude spectrum of the received signal be symmetrical about this frequency.
The Costas loop is based on a pair of quadrature modulators - two multipliers
fed with carriers in phase-quadrature. These multipliers are in the in-phase (I) and quadrature
phase (Q) arms of the arrangement. Each of these multipliers is part of separate synchronous
demodulators. The outputs of the modulators, after filtering, are multiplied together in a third
multiplier, and the lowpass components in this product are used to adjust the phase of the local
carrier source - a VCO - with respect to the received signal. The operation is such as to
maximise the output of the I arm, and minimize that from the Q arm. The output of the I arm
happens to be the message, and so the Costas loop not only acquires the carrier, but is a
(synchronous) demodulator as well. A complete analysis of this loop is non-trivial. It would
include the determination of conditions for stability, and parameters such as lock range, capture
range, and so on.
66
Aurora’s Technological and Research Institute AC Lab
BLOCK DIAGRAM
EXPECTED WAVEFORMS
67
Aurora’s Technological and Research Institute AC Lab
PROCEDURE:
1. Switch ON the DSB-SC trainer kit
2. Generate the carrier and modulating signal.
3. Generate the DSB-SC modulated signal.
4. Connect the required blocks of the coastas receiver in the communications kit.
5. Apply the generated DSB-SC signal to the above connected coastas receiver.
6. Observe that the output of the coastas receiver is the demodulated wave of DSB-SC signal.
POST LAB
1 .Observe the frequency and amplitude of the carrier and modulating signal
2. Observe the frequency and amplitude of the balanced modulator output
3. Observe the lock condition of the coastas loop.
4. observe the output of the coastas demodulator.
5. Write result and conclusions
CONCLUSIONS: The balanced modulator output and the operation of coastas receiver is verified
68
Aurora’s Technological and Research Institute AC Lab
MATLAB PROGRAMMES
69
Aurora’s Technological and Research Institute AC Lab
INDEX
1. Introduction - 70
2. Amplitude Modulation and Demodulation - 74
3. DSB-SC Modulation and Demodulation - 84
4. SSB-SC Modulation and Demodulation - 89
5. Frequency Modulation and Demodulation - 95
6. Phase Modulation and Demodulation - 99
7. Time Division Multiplexing and Demultiplexing - 100
8. Frequency Division Multiplexing and Demultiplexing- 103
9. Verification of Sampling Theorem - 104
10. Pulse Amplitude Modulation and Demodulation - 106
11. Pulse width Modulation and Demodulation - 108
12. Pulse Position Modulation and Demodulation - 110
13. PLL as FM Demodulator - 112
70
Aurora’s Technological and Research Institute AC Lab
1 INTRODUCTION
What Is Simulink?
Simulink encourages you to try things out. You can easily build models from scratch,
or take an existing model and add to it. You have instant access to all the analysis tools in
MATLAB®, so you can take the results and analyze and visualize them. A goal of Simulink
is to give you a sense of the fun of modeling and simulation, through an environment that
encourages you to pose a question, model it, and see what happens.
Simulink is also practical. With thousands of engineers around the world using it to
model and solve real problems, knowledge of this tool will serve you well throughout your
professional career.
With Simulink, you can move beyond idealized linear models to explore more realistic
nonlinear models, factoring in friction, air resistance, gear slippage, hard stops, and the other
things that describe real-world phenomena. Simulink turns your computer into a lab for
modeling and analyzing systems that simply wouldn't be possible or practical otherwise,
whether the behavior of an automotive clutch system, the flutter of an airplane wing, the
dynamics of a predator-prey model, or the effect of the monetary supply on the economy.
For modeling, Simulink provides a graphical user interface (GUI) for building models
as block diagrams, using click-and-drag mouse operations. With this interface, you can draw
the models just as you would with pencil and paper (or as most textbooks depict them). This
is a far cry from previous simulation packages that require you to formulate differential
equations and difference equations in a language or program. Simulink includes a
comprehensive block library of sinks, sources, linear and nonlinear components, and
connectors. You can also customize and create your own blocks. For information on creating
your own blocks, see the separate Writing S-Functions guide.
Models are hierarchical, so you can build models using both top-down and bottom-up
approaches. You can view the system at a high level, then double-click blocks to go down
through the levels to see increasing levels of model detail. This approach provides insight into
how a model is organized and how its parts interact.
After you define a model, you can simulate it, using a choice of integration methods, either
from the Simulink menus or by entering commands in the MATLAB Command Window. The
menus are particularly convenient for interactive work, while the command-line approach is
very useful for running a batch of simulations (for example, if you are doing Monte Carlo
simulations or want to sweep a parameter across a range of values). Using scopes and other
display blocks, you can see the simulation results while the simulation is running. In addition,
71
Aurora’s Technological and Research Institute AC Lab
you can change many parameters and see what happens for "what if" exploration. The
simulation results can be put in the MATLAB workspace for post processing and
visualization.
Model analysis tools include linearization and trimming tools, which can be accessed
from the MATLAB command line, plus the many tools in MATLAB and its application
toolboxes. And because MATLAB and Simulink are integrated, you can simulate, analyze,
and revise your models in either environment at any point
% now create a frequency vector for the x-axis and plot the magnitude and
phase
subplot(2,1,2);
fre = abs(fft(time));
f = (0:length(fre) - 1)'*4000/length(fre);
plot(f,fre);
grid on
title('Frequency domain (Spectrum)');
xlabel('Freq ');
ylabel('Amplitude');
WAVEFORMS:
72
Aurora’s Technological and Research Institute AC Lab
clc;
clear all;
close all;
x = -5:0.001:5;
Fs = 399;
t = 0:1/Fs:1;
time = SQUARE(2*pi*1000*t);
y1 = SQUARE(2*3.14*1000*x);
subplot(2,1,1);
plot(x,y1)
axis([-5 5 -3 3]);
grid on
xlabel('Time domain');
ylabel('Amplitude');
% now create a frequency vector for the x-axis and plot the magnitude and
phase
subplot(2,1,2);
fre = abs(fft(time));
f = (0:length(fre) - 1)'*Fs/length(fre);
plot(f,fre);
grid on
xlabel('Freq domain');
ylabel('Amplitude');
WAVEFORMS:
73
Aurora’s Technological and Research Institute AC Lab
74
Aurora’s Technological and Research Institute AC Lab
clc;
clear all;
close all;
Ac=1; %Carrier Amplitude
Fc=0.4; %Carrier frequency
Fm=0.05; %baseband frequency
Fs=10; %sampling
t=0:0.1:200;
mt=cos(2*pi*Fm*t);
mu=0.5;
st=Ac*(1+mu*mt).*cos(2*pi*Fc*t);
subplot(2,1,1);
plot(t,st);
hold on;
plot(t,Ac*(mu*mt+ones(1,length(mt))),'r');
plot(t,-Ac*(mu*mt+ones(1,length(mt))),'r');
hold off;
title('Modulation Index = 0.5 under modulation
Ac(1+0.5*cos(2*pi*0.05*t))cos(2*pi*0.4*t)');
xlabel('time (s)');ylabel('amplitude');
st_fft=fft(st);
st_fft=fftshift(st_fft);
st_fft_fre=5*linspace(-1,1,length(st_fft));
subplot(2,1,2);
plot(st_fft_fre,abs(st_fft));
title('spectrum with Modulation Index = 0.5');
xlabel('Frequency (Hz)');axis([-1 1 0 1000*Ac+100]);
figure;
mu=1;
st=Ac*(1+mu*mt).*cos(2*pi*Fc*t);
subplot(2,1,1);
plot(t,st);
hold on;
plot(t,Ac*(mu*mt+ones(1,length(mt))),'r');
plot(t,-Ac*(mu*mt+ones(1,length(mt))),'r');
hold off;
title('Modulation Index = 1 modulation
Ac(1+1*cos(2*pi*0.05*t))cos(2*pi*0.4*t)');
xlabel('time (s)');ylabel('amplitude');
st_fft=fft(st);
st_fft=fftshift(st_fft);
st_fft_fre=Fs/2*linspace(-1,1,length(st_fft));
subplot(2,1,2);
plot(st_fft_fre,abs(st_fft));
title('spectrum with Modulation Index = 1');
xlabel('Frequency (Hz)');axis([-1 1 0 1000*Ac+100]);
75
Aurora’s Technological and Research Institute AC Lab
figure;
mu=2;
st=Ac*(1+mu*mt).*cos(2*pi*Fc*t);
subplot(2,1,1);
plot(t,st);
hold on;
plot(t,Ac*(mu*mt+ones(1,length(mt))),'r');
plot(t,-Ac*(mu*mt+ones(1,length(mt))),'r');
hold off;title('Modulation Index = 2 over modulation
Ac(1+2*cos(2*pi*0.05*t))cos(2*pi*0.4*t)');
xlabel('time (s)');ylabel('amplitude');
st_fft=fft(st);
st_fft=fftshift(st_fft);
st_fft_fre=Fs/2*linspace(-1,1,length(st_fft));
subplot(2,1,2);
plot(st_fft_fre,abs(st_fft));
title('spectrum with Modulation Index = 2');
xlabel('Frequency (Hz)');axis([-1 1 0 1000*Ac+100]);
WAVEFORMS:
76
Aurora’s Technological and Research Institute AC Lab
PROGRAM 2:
77
Aurora’s Technological and Research Institute AC Lab
% task 1
fc=154000;
% task 2
fm=fc/10;
fs=100*fc;
t=0:1/fs:4/fm;
xc=cos(2*pi*fc*t);
xm=cos(2*pi*fm*t);
figure(1)
subplot(2,1,1),plot(t,xc);
title('carrier signal of 154 khz');
xlabel('time (sec)');
ylabel('amplitude');
subplot(2,1,2),plot(t,xm);
title('message signal of 15.4 khz');
xlabel('time (sec)');
ylabel('amplitude');
% DSB-SC MODULATION
mu = input(' enter the Modulation Index value :: ');
z1=(1+mu*xm).*xc;
figure(2)
% task 3.1
subplot(2,1,1),plot(t,z1);
title('AMPLITUDE MODULATION IN TIME DAOMAIN');
xlabel('time (sec)');
ylabel('amplitude');
% task 3.2
l1=length(z1);
f=linspace(-fs/2,fs/2,l1);
Z1=fftshift(fft(z1,l1)/l1);
subplot(2,1,2),plot(f,abs(Z1));
title('AMPLITUDE MODULATION IN FREQUENCY DOMAIN');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-200000 200000 0 0.3]);
% task 3.4
E1=Hlp.*S1;
figure(4)
subplot(2,1,1),plot(f,E1);
78
Aurora’s Technological and Research Institute AC Lab
WAVEFORMS:
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
message signal of 15.4 khz
1
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
79
Aurora’s Technological and Research Institute AC Lab
1
amplitude
-1
-2
0 1 2 3
time (sec) -4
x 10
AMPLITUDE MODULATION IN FREQUENCY DOMAIN
amplitude
0.2
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
1.8
1.6
1.4
1.2
amplitude
0.8
0.6
0.4
0.2
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
80
Aurora’s Technological and Research Institute AC Lab
0.2
amplitude
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
Recover signal IN Time DOMAIN after filtring
2
amplitude
1.5
0.5
0 1 2 3
time(sec) -4
x 10
1
amplitude
-1
-2
0 1 2 3
time (sec) -4
x 10
AMPLITUDE MODULATION IN FREQUENCY DOMAIN
amplitude
0.2
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
81
Aurora’s Technological and Research Institute AC Lab
1.8
1.6
1.4
1.2
amplitude
0.8
0.6
0.4
0.2
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
0.2
amplitude
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
Recover signal IN Time DOMAIN after filtring
3
amplitude
0
0 1 2 3
time(sec) -4
x 10
82
Aurora’s Technological and Research Institute AC Lab
2
amplitude
-2
-4
0 1 2 3
time (sec) -4
x 10
AMPLITUDE MODULATION IN FREQUENCY DOMAIN
amplitude
0.2
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
1.8
1.6
1.4
1.2
amplitude
0.8
0.6
0.4
0.2
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
83
Aurora’s Technological and Research Institute AC Lab
0.2
amplitude
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
Recover signal IN Time DOMAIN after filtring
4
amplitude
-2
0 1 2 3
time(sec) -4
x 10
84
Aurora’s Technological and Research Institute AC Lab
subplot(4,1,2);
c = cos(2*pi*5000*t);
plot(t,c);
title('Carrier Signal ');
xlabel('Time');
ylabel('Amplitude');
grid on
subplot(4,1,3);
d = m.*c;
plot(t,d);
title('DOUBLE SIDEBAND – SUPRESSED CARRIER SIGNAL ');
xlabel('Time');
ylabel('Amplitude');
grid on
subplot(4,1,4);
fre = abs(fft(d));
f = (0:length(fre) - 1)'*Ts/length(fre);
plot(f,fre);
axis([0 100 0 50]);
grid on
title('DOUBLE SIDEBAND – SUPRESSED CARRIER SPECTRUM ');
xlabel('Freq domain');
ylabel('Amplitude');
85
Aurora’s Technological and Research Institute AC Lab
WAVEFORMS:
Modulating Signal
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
Carrier Signal
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
DOUBLE SIDEBAND – SUPRESSED CARRIER SIGNAL
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
DOUBLE SIDEBAND – SUPRESSED CARRIER SPECTRUM
50
Amplitude
0
0 10 20 30 40 50 60 70 80 90 100
Freq domain
86
Aurora’s Technological and Research Institute AC Lab
PROGRAM 2:
% task 1
fc=154000;
% task 2
fm=fc/10;
fs=100*fc;
t=0:1/fs:4/fm;
xc=cos(2*pi*fc*t);
xm=cos(2*pi*fm*t);
figure(1)
subplot(2,1,1),plot(t,xc);
title('carrier signal of 154 khz');
xlabel('time (sec)');
ylabel('amplitude');
subplot(2,1,2),plot(t,xm);
title('message signal of 15.4 khz');
xlabel('time (sec)');
ylabel('amplitude');
% DSB-SC MODULATION
z1= xm.*xc;
figure(2)
% task 3.1
subplot(2,1,1),plot(t,z1);
title('DSB-SC MODULATION IN TIME DAOMAIN');
xlabel('time (sec)');
ylabel('amplitude');
% task 3.2
l1=length(z1);
f=linspace(-fs/2,fs/2,l1);
Z1=fftshift(fft(z1,l1)/l1);
subplot(2,1,2),plot(f,abs(Z1));
title('DSB SC MODULATION IN FREQUENCY DOMAIN');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-200000 200000 0 0.3]);
% task 3.3 demodulation
s1=z1.*xc;
S1=fftshift(fft(s1,length(s1))/length(s1));
figure(3)
plot(f,abs(S1));
title(' demodulated signal IN FREQUENCY DOMAIN before filtring');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-200000 200000 0 0.3]);
hold on
Hlp=1./sqrt(1+(f./fc).^(2*100));
plot(f,Hlp,'g');
title(' frequency response of low pass filter');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-200000 200000 0 2]);
% task 3.4
E1=Hlp.*S1;
figure(4)
subplot(2,1,1),plot(f,E1);
title(' Recover signal IN FREQUENCY DOMAIN after filtring');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-200000 200000 0 0.3]);
e1=ifft(ifftshift(E1))*length(E1);
subplot(2,1,2),plot(t,(1/0.5)*e1);
87
Aurora’s Technological and Research Institute AC Lab
WAVEFORMS:
carrier signal of 154 khz
1
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
message signal of 15.4 khz
1
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
DSB SC MODULATION IN FREQUENCY DOMAIN
amplitude
0.2
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
88
Aurora’s Technological and Research Institute AC Lab
1.8
1.6
1.4
1.2
amplitude
0.8
0.6
0.4
0.2
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
0.2
amplitude
0.1
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
frequency(hz) 5
x 10
Recover signal IN Time DOMAIN after filtring
2
amplitude
-1
0 1 2 3
time(sec) -4
x 10
89
Aurora’s Technological and Research Institute AC Lab
clc;
clear all;
close all;
Ts = 199;
subplot(4,1,1);
t = 0:1/Ts:1;
xm = cos(2*pi*1000*t);
plot(t,xm);
title('Modulating Signal ');
xlabel('Time');
ylabel('Amplitude');
grid on
subplot(4,1,2);
c = cos(2*pi*5000*t);
plot(t,c);
title('Carrier Signal ');
xlabel('Time');
ylabel('Amplitude');
grid on
subplot(4,1,3);
% helbert transform of messeage signal
xh=cos((2*pi*1000*t)-pi/2);
% SSB UPPER SIDE BAND MODULATION
d= (xm.*cos(2*pi*5000*t))-(xh.*sin(2*pi*5000*t));
plot(t,d);
title('SINGLE SIDEBAND – SUPRESSED CARRIER SIGNAL ');
xlabel('Time');
ylabel('Amplitude');
grid on
subplot(4,1,4);
fre = abs(fft(d));
f = (0:length(fre) - 1)'*Ts/length(fre);
plot(f,fre);
axis([0 100 0 50]);
grid on
title('SINGLE SIDEBAND – SUPRESSED CARRIER SPECTRUM ');
xlabel('Freq domain');
ylabel('Amplitude');
90
Aurora’s Technological and Research Institute AC Lab
WAVEFORMS:
Modulating Signal
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
Carrier Signal
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
SINGLE SIDEBAND – SUPRESSED CARRIER SIGNAL
1
Amplitude
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time
SINGLE SIDEBAND – SUPRESSED CARRIER SPECTRUM
50
Amplitude
0
0 10 20 30 40 50 60 70 80 90 100
Freq domain
91
Aurora’s Technological and Research Institute AC Lab
PROGRAM 2:
% task 1
fc=154000;
% task 2
fm=fc/10;
fs=100*fc;
t=0:1/fs:4/fm;
xc=cos(2*pi*fc*t);
xm=cos(2*pi*fm*t);
%task 4.1
xh=cos((2*pi*fm*t)-pi/2);% helbert transform which is the phase shift of
pi/2 in messeage signal
% SSB UPPER SIDE BAND MODULATION
z2= (xm.*cos(2*pi*fc*t))-(xh.*sin(2*pi*fc*t));
figure(5)
subplot(2,1,1),plot(t,z2);
title('SSB USB MODULATION IN TIME DAOMAIN');
xlabel('time (sec)');
ylabel('amplitude');
l2=length(z2);
f=linspace(-fs/2,fs/2,l2);
Z1=fftshift(fft(z2,l2)/l2);
subplot(2,1,2),plot(f,abs(Z1));
title('SSB USB MODULATION IN FREQUENCY DOMAIN');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-400000 400000 0 1]);
% apply local carrier for demodulation
z1= z2.*xc;
figure(6)
% task 4.2
subplot(2,1,1),plot(t,z1);
title('DEMODULATED SSB in time domain');
xlabel('time (sec)');
ylabel('amplitude');
l1=length(z1);
f=linspace(-fs/2,fs/2,l1);
Z1=fftshift(fft(z1,l1)/l1);
subplot(2,1,2),plot(f,abs(Z1));
title('DEMODULATED SSB IN FREQUENCY DOMIAN');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-400000 400000 0 0.3]);
% task 4.3
figure(7)
plot(f,abs(Z1));
title('FILTERING SIGNAL');
xlabel('frequency(hz)');
ylabel('amplitude');
hold on
Hlp=1./sqrt(1+(f./fc).^(2*100));
plot(f,Hlp,'g');
title(' frequency response of low pass filter');
xlabel('frequency(hz)');
ylabel('amplitude');
92
Aurora’s Technological and Research Institute AC Lab
%task 4.4
E1=Hlp.*Z1;
figure(8)
subplot(2,1,1),plot(f,E1);
title(' Recover signal IN FREQUENCY DOMAIN after filtring');
xlabel('frequency(hz)');
ylabel('amplitude');
axis([-400000 400000 0 0.3]);
e1=ifft(ifftshift(E1))*length(E1);
subplot(2,1,2),plot(t,(1/0.5)*e1);
title(' Recover signal IN Time DOMAIN after filtring');
xlabel('time(sec)');
ylabel('amplitude');
WAVEFORMS :
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
SSB USB MODULATION IN FREQUENCY DOMAIN
1
amplitude
0.5
0
-4 -3 -2 -1 0 1 2 3 4
frequency(hz) 5
x 10
93
Aurora’s Technological and Research Institute AC Lab
0.5
amplitude
-0.5
-1
0 1 2 3
time (sec) -4
x 10
DEMODULATED SSB IN FREQUENCY DOMIAN
amplitude
0.2
0.1
0
-4 -3 -2 -1 0 1 2 3 4
frequency(hz) 5
x 10
1.8
1.6
1.4
1.2
amplitude
0.8
0.6
0.4
0.2
0
-4 -3 -2 -1 0 1 2 3 4
frequency(hz) 5
x 10
94
Aurora’s Technological and Research Institute AC Lab
0.2
amplitude
0.1
0
-4 -3 -2 -1 0 1 2 3 4
frequency(hz) 5
x 10
Recover signal IN Time DOMAIN after filtring
2
amplitude
-1
0 1 2 3
time(sec) -4
x 10
95
Aurora’s Technological and Research Institute AC Lab
clc;
clear all;
close all;
%% MODULATION
kf = 160*pi;
m_int = kf*1.e-4*cumsum(msg); % Integrating Msg
fm = cos(2*fc*pi*t + m_int); % fm = cos(2*pi*fc*t + integral(msg))
fl = length(t);
fl = 2^ceil(log2(fl));
f = (-fl/2:fl/2-1)/(fl*1.e-4);
subplot(2,1,2);
plot(t,fm);
96
Aurora’s Technological and Research Institute AC Lab
title('FM');
xlabel('{\it t} (sec)');
ylabel('Amplitude');
grid;
figure;
subplot(2,1,1);
plot(t,rect_dem);
title('Rectified FM');
xlabel('{\it t} (sec)');
ylabel('Amplitude')
grid;
subplot(2,1,2);
plot(t,rec);
title('Recovered Signal');
xlabel('{\it t} (sec)');
ylabel('Amplitude');
grid;
subplot(2,2,2);
plot(f,abs(fmF));
title('Freq Response of FM');
grid;
xlabel('f(Hz)');
ylabel('Amplitude');
axis([-600 600 0 300]);
subplot(2,2,3);
plot(f,abs(rect_demF));
title('Freq Response of Rectified FM');
xlabel('f(Hz)');
ylabel('Amplitude');
grid;
axis([-600 600 0 100]);
subplot(2,2,4);
plot(f,abs(recF));
title('Freq Response of Recovered Signal');
xlabel('f(Hz)');
ylabel('Amplitude');
grid;
axis([-600 600 0 100]);
t1 = -0.02:1.e-4:0;
97
Aurora’s Technological and Research Institute AC Lab
t2 = 0:1.e-4:0.02;
m1 = 1 - abs((t1+Ta)/Ta);
m1 = [zeros([1 200]),m1,zeros([1 400])];
m2 = 1 - abs((t2-Ta)/Ta);
m2 = [zeros([1 400]),m2,zeros([1 200])];
a = m1 - m2;
end
WAVEFORMS :
Message Signal
1
0.5
Amplitude)
-0.5
-1
-0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04
t (sec)
FM
1
0.5
Amplitude
-0.5
-1
-0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04
t (sec)
98
Aurora’s Technological and Research Institute AC Lab
Rectified FM
0.2
Amplitude 0.15
0.1
0.05
0
-0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04
t (sec)
Recovered Signal
0.2
0.15
Amplitude
0.1
0.05
0
-0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04
t (sec)
150
Amplitude
Amplitude
200
100
100
50
0 0
-500 0 500 -500 0 500
f(Hz) f(Hz)
Freq Response of Rectified FM Freq Response of Recovered Signal
100 100
Amplitude
Amplitude
50 50
0 0
-500 0 500 -500 0 500
f(Hz) f(Hz)
99
Aurora’s Technological and Research Institute AC Lab
clear all
close all
t = 0:0.01:1; % time variable
fc = 5; % carrier frequency
%------------------------------------------
% create message signal m(t)
m = sin(2*pi*t);
%------------------------------------------
%------------------------------------------------
% modulating the carrier with the message signal
carrier = cos(2*pi*fc*t);
modulated = cos(2*pi*fc*t + kp*m);
%------------------------------------------------
%------------------------------------------------
% Plotting the signals
plot(t,m,'b',t,carrier,'r',t,modulated,'k--')
axis([0 1 -1.5 1.5]);
xlabel('Time(seconds)');
ylabel('Amplitude(volt)');
title('Phase modulation');
legend('Message','Carrier','Modulated');
WAVEFORMS :
Phase modulation
1.5
Message
Carrier
1 Modulated
0.5
Amplitude(volt)
-0.5
-1
-1.5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time(seconds)
100
Aurora’s Technological and Research Institute AC Lab
101
Aurora’s Technological and Research Institute AC Lab
plot(sig3);
title('Recovered Sinusoidal Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(2,1,2)
plot(sig4);
title('Recovered Triangular Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
WAVEFORMS :
5 5
Amplitude--->
Amplitude--->
0 0
-5 -5
-10 -10
0 20 40 60 0 20 40 60
Time---> Time--->
Sampled Sinusoidal Signal Sampled Square Signal
10 10
5 5
Amplitude--->
Amplitude--->
0 0
-5 -5
-10 -10
0 20 40 60 0 20 40 60
Time---> Time--->
102
Aurora’s Technological and Research Institute AC Lab
TDM Signal
8
2
Amplitude--->
-2
-4
-6
-8
0 20 40 60 80 100 120
Time--->
5
Amplitude--->
-5
-10
0 10 20 30 40 50 60
Time--->
Recovered Square Signal
10
5
Amplitude--->
-5
-10
0 10 20 30 40 50 60
Time--->
103
Aurora’s Technological and Research Institute AC Lab
104
Aurora’s Technological and Research Institute AC Lab
clear all;
close all;
clc;
t = 0:0.01:2;
msg = sin(2*pi*t);
k = 2*Fs/Fm;
step = ceil(201/k);
samp_msg = [];
for i = 1:201,
if (mod(i,step) == 0)
samp_msg = [samp_msg,msg(i)];
else
samp_msg = [samp_msg,zeros(1)];
end;
end;
subplot(2,1,1);
plot(msg);
xlabel('---> Time');
ylabel('---> Amplitude');
title('Msg signal');
subplot(2,1,2);
stem(samp_msg);
xlabel('---> Time');
ylabel('---> Amplitude');
if Fs < 2*Fm
title('Under Sampling');
else if Fs == 2*Fm
title('Critical Sampling');
else
title('Over Sampling');
end;
end;
WAVEFORMS :
105
Aurora’s Technological and Research Institute AC Lab
Msg signal
1
---> Amplitude
0.5
-0.5
-1
0 50 100 150 200 250
---> Time
Over Sampling
1
---> Amplitude
0.5
-0.5
-1
0 50 100 150 200 250
---> Time
Msg signal
1
---> Amplitude
0.5
-0.5
-1
0 50 100 150 200 250
---> Time
Under Sampling
1
---> Amplitude
0.5
-0.5
-1
0 50 100 150 200 250
---> Time
106
Aurora’s Technological and Research Institute AC Lab
clear all;
close all;
clc;
t = 0.001:0.001:3;
msg = sin(2*pi*t);
subplot(3,1,1)
plot(msg);
title('Message Signal ');
xlabel('Time');
ylabel('Amplitude');
x = [ones(1,50),zeros(1,100)]
car = [];
for i = 1:20,
car = [car,x];
end
subplot(3,1,2);
plot(car);
title('Carrier Signal ');
xlabel('Time');
ylabel('Amplitude');
mm = msg.*car;
tt = [];
for i =1:3000
if mm(i) == 0;
tt = [tt,mm(i)];
else
tt = [tt,mm(i)+2];
end
end
subplot(3,1,3);
stem(tt,'.r');
title('PAM signal ');
xlabel('Time');
ylabel('Amplitude');
WAVEFORMS :
107
Aurora’s Technological and Research Institute AC Lab
Message Signal
1
Amplitude
0
-1
0 500 1000 1500 2000 2500 3000
Time
Carrier Signal
1
Amplitude
0.5
0
0 500 1000 1500 2000 2500 3000
Time
PAM signal
4
Amplitude
0
0 500 1000 1500 2000 2500 3000
Time
108
Aurora’s Technological and Research Institute AC Lab
%%%%%%%%%%%%%%%%%%%%MODULATION%%%%%%%%%%%%%%%%%%%%%%%%%%%%
y1 = modulate(x1,fc,fs,'pwm');
subplot(2,1,1); plot(x1);
title('Original single tone message f1 = 200 , fs = 10000');
subplot(2,1,2); plot(y1);
title('PWM on cycle of f1 = 200 , fc = 1000');
axis([0,500,-0.2,1.2]);
figure
fx1 = abs(fft(y1,1024));
fx1 = [fx1(514:1024) fx1(1:513)];
f = (-511*fs/1024):(fs/1024):(512*fs/1024);
subplot(2,1,1); plot(f,fx1);
title('Frequency description single tone f1 = 200 , fc = 1000');
%%%%%%%%%%%%%% DEMODULATION%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
x1_recov = demod(y1,fc,fs,'pwm');
subplot(2,1,2); plot(x1_recov );
title('Time domain recovered single tone f1 = 200 ');
WAVEFORMS :
109
Aurora’s Technological and Research Institute AC Lab
0.5
0
0 10 20 30 40 50 60 70 80 90 100
0.5
400
200
0
-5000 -4000 -3000 -2000 -1000 0 1000 2000 3000 4000 5000
0.5
0
0 10 20 30 40 50 60 70 80 90 100
110
Aurora’s Technological and Research Institute AC Lab
%%%%%%%%%%%%%%%%%%%%MODULATION%%%%%%%%%%%%%%%%%%%%%%%%%%%%
y1 = modulate(x1,fc,fs,'ppm');
subplot(2,1,1); plot(x1);
title('Original single tone message f1 = 200 , fs = 10000');
subplot(2,1,2); plot(y1);
title('PPM on cycle of f1 = 200 , fc = 1000');
axis([0,500,-0.2,1.2]);
figure
fx1 = abs(fft(y1,1024));
fx1 = [fx1(514:1024) fx1(1:513)];
f = (-511*fs/1024):(fs/1024):(512*fs/1024);
subplot(2,1,1); plot(f,fx1);
title('Frequency description single tone f1 = 200 , fc = 1000');
%%%%%%%%%%%%%% DEMODULATION%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
x1_recov = demod(y1,fc,fs,'ppm');
subplot(2,1,2); plot(x1_recov );
title('Time domain recovered single tone f1 = 200 ');
WAVEFORMS :
111
Aurora’s Technological and Research Institute AC Lab
0.5
0
0 10 20 30 40 50 60 70 80 90 100
0.5
50
0
-5000 -4000 -3000 -2000 -1000 0 1000 2000 3000 4000 5000
0.5
0
0 10 20 30 40 50 60 70 80 90 100
112
Aurora’s Technological and Research Institute AC Lab
clear all;
close all;
f=1000; %Carrier frequency
fs=100000; %Sample frequency
N=5000; %Number of samples
Ts=1/fs;
t=(0:Ts:(N*Ts)- Ts);
%Create the message signal
f1=100; %Modulating frequency
msg=sin(2*pi*f1*t);
kf=.0628; %Modulation index
%Create the real and imaginary parts of a CW %
modulated carrier to be tracked.
Signal=exp(j*(2*pi*f*t+2*pi*kf*cumsum(msg))); %Modulated carrier
Signal1=exp(j*(2*pi*f*t)); %Unmodulated carrier
%Initilize PLL Loop
phi_hat(1)=30;
e(1)=0;
phd_output(1)=0;
vco(1)=0;
%Define Loop Filter parameters(Sets damping)
kp=0.15; %Proportional constant
ki=0.1; %Integrator constant
%PLL implementation
for n=2:length(Signal)
vco(n)=conj(exp(j*(2*pi*n*f/fs+phi_hat(n-1)))); %Compute VCO
phd_output(n)=imag(Signal(n)*vco(n)); %Complex multiply VCO x %Signal
input
%Filter integrator
e(n)=e(n-1)+(kp+ki)*phd_output(n)-ki*phd_output(n-1); phi_hat(n)=phi_hat(n-
1)+e(n);%Update VCO
end;
%Plot waveforms
startplot = 1;
endplot = 1000;
figure(1);
subplot(3,2,1);
plot(t(startplot:endplot), msg(startplot:endplot));
title('100 Hz message signal');
ylabel('Amplitude');
grid;
figure(1);
subplot(3,2,2);
plot(t(startplot:endplot), real(Signal(startplot:endplot)));
title('FM (1KHz carrier modulated with a 100 Hz message signal)');
ylabel('Amplitude');
grid;
figure(1)
subplot(3,2,3);
plot(t(startplot:endplot), e(startplot:endplot));
title('PLL Loop Filter/Integrator Output');
113
Aurora’s Technological and Research Institute AC Lab
ylabel('Amplitude');
grid;
subplot(3,2,4);
plot(t(startplot:endplot), real(vco(startplot:endplot)));
title('VCO Output (PLL tracking the input signal)');
ylabel('Amplitude');
grid;
subplot(3,2,5);
plot(t(startplot:endplot), phd_output(startplot:endplot));
title('Phase Detecter Output');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid;
subplot(3,2,6);
plot(t(startplot:endplot), real(Signal1(startplot:endplot)));
title('Unmodulated Carrier');
xlabel('Time (seconds)');
ylabel('Amplitude');
grid;
WAVEFORMS :
100 Hz message signal FM (1KHz carrier modulated with a 100 Hz message signal)
1 1
Amplitude
Amplitude
0 0
-1 -1
0 0.002 0.004 0.006 0.008 0.01 0 0.002 0.004 0.006 0.008 0.01
PLL Loop Filter/Integrator Output VCO Output (PLL tracking the input signal)
0.5 1
Amplitude
Amplitude
0 0
-0.5 -1
0 0.002 0.004 0.006 0.008 0.01 0 0.002 0.004 0.006 0.008 0.01
Phase Detecter Output Unmodulated Carrier
1 1
Amplitude
Amplitude
0 0
-1 -1
0 0.002 0.004 0.006 0.008 0.01 0 0.002 0.004 0.006 0.008 0.01
Time (seconds) Time (seconds)
114