Report 3 Rot2 Farid Mammadov
Report 3 Rot2 Farid Mammadov
GEE-2. Lab
We have a generator as a source in sin mode and connect oscilloscope to input and output
using different channels to analyze phase shift and peak to peak change using measure
function. We input various frequencies to analyze frequency response.
Frequency(Hz) Vin Vout Phase shift(deg)
From the measured values above we can observe that relatively low frequencies are not
affected by filter and there is a little phase shift which is mainly caused by the nature of the
circuit. Since our filter consists of capacitor, the nature of the capacitor is such that at higher
frequencies its reactance gets smaller allowing more current to pass through which is causing
voltage to lag behind current which as consequence causes negative phase shift.
Second part of the experiment consisted of a band-pass filter which we assembled mainly by
combining low and high pass RC filters.
We connected the biggest R and C values to the low pass part(R2 and C2) and smallest ones to
the high pass part. Our overall circuit will look as follows:
In this circuit high frequencies will short C1 and C2 which will cause them to be sent into ground
(since C2 is shorted voltage across it Vout will be zero), and low frequencies will be basically
blocked by C1. In our circuit we assembled R1=8.2kΩ, R2=10kΩ, C1=1.5nF, C2=100nFand
again Vin will be powered by generator with 5Vpp, no offset, sine function settings.
50 10,1 3 73,1
As we can see from the table, since filter is band-pass, only mid-frequencies passed without
significant change in phase and voltage. But if we analyze border frequencies we’ll see that low
frequencies were significantly reduced(blocked); thus, their output voltage was lower and phase
shift was positive because of reactance of capacitor at low frequencies is high meaning it
doesn’t let current to pass through which in turn make current to lag behind voltage(=> positive
phase shift). At high frequencies we have similar situation to low pass filter’s response to such
frequencies.
Evaluation:
In part 1, as described in the introduction, we’ll draw Bode plots to describe the behavior of
circuit, and we’ll draw plots with measured and theoretical values.
To find dB, first I find magnitude(ratio) of transfer function which in our case will be ratio of
output and input voltages and then we convert that ration into dB by applying formula:
AdB=20*log10(Aratio) where Aratio=Vout / Vin
Frequency(Hz) dB Phase shift
50 0 0,36
100 0 -2,16
200 0 -3,17
Plots above are made from measured values, and indeed the graphs describe circuit letting only
low frequencies to pass and as frequency increases less voltage passes and more does voltage
lag behind current.
Now for theoretical values, where we actually used formulas for amplitude and phase using
nominal values such as R,C,f.
Where A is ratio of voltages and ⍵=2𝜋*f. After we find ratios we convert them to dB and have
the following table of values.
Frequency(Hz) dB Phase shift
50 -0,000467 -0,593979
Now to calculate -3dB frequency and ⍵ we simply plug in the values of R and C in the formula
below
To get f and ⍵ from measured value we’ll analyze tables and look if phase shift is close -45° or
magnitude is close to -3dB.
After calculating f and ⍵ using formulas, we found that f=4822.877Hz and ⍵=30303.03 rad/s
And if we look into table(graph also) we find that 5000Hz has around -45° phase shift and
magnitude of -3,349822dB which are the closest values we have to ideal ones. Also, if we
calculate ⍵ for 5000Hz we get that ⍵=31415.927 rad/s which is relatively close to our theoretical
value.
To find gradient of A we must divide difference of first and last magnitude by difference of log
−7.452683+0.226526
first and log last frequency, so it’ll be grad A= 𝑙𝑜𝑔(10000)−𝑙𝑜𝑔(1000) = -7,226157 dB/decade.
Finally, we analyse limits of amplitude ratio in dB and phase for very high, very low or very close
to cutoff frequency. For f<<f-3dB we have that amplitude ratio will tend to 1 and phase will tend to
zero; ratio tends to 1 because for low pass, low frequencies don’t affect output voltage meaning
ratio will be 1 and log(1)=0, and since circuit doesn’t affect our voltage, input and output should
be same meaning there is no phase difference.
For f>>f-3dB amplitude ratio will tend to 0(from positive side) and phase will be close to -90°; ratio
will tend to 0 because Vout will be almost 0 at high frequencies which means that we have log of
very small positive number and if we plot standard graph of log we’ll see that for very small
positive number under log, log will go to minus infinity; additionally, phase will be -90° because
capacitor will just let through all the current due to low reactance at HF which will make voltage
lag behind current.
For f=f-3dB we have that amplitude ratio in dB will tend to -3 and phase to -45°; ratio tending to -3
1
is explained by the fact that at cutoff frequency amplitude ratio as scalar will equal whose log
2
equals -3dB, and phase difference of -45° is explained by the fact that if we analyze the transfer
function and represent it in complex number form we’ll have that this complex number has an
angle of -45°.
In part 2, we are asked to draw Bode magnitude and phase plots so we need to calculate
magnitudes in dB from given values:
0,2970297 -10,544
0,5188119 -5,699802
0,7396226 -2,619796
0,890566 -1,006677
0,9207547 -0,717121
0,9207547 -0,717121
0,8603774 -1,306221
0,7320755 -2,708883
0,5132075 -5,794139
0,248 -12,11097
0,128 -17,8558
If we look at the bode plot for measured magnitude to compare cutoff frequencies we’ll see that
at around -3dB the value of frequencies is indeed close to 200 and 10000. On our plot center
frequency is at around 1000Hz but we calculated it to be around 1435Hz, still close if we
consider on logarithmic axis.
To plot the Nyquist plot we’ll simply need to mark transfer function values for given frequencies
on a complex plane and then connect all these points. We already have the real and imaginary
part value in the table above and now we simply plot them on a complex plane. The values and
formulas used here can be found in the table above with values and formulas for Re{H} and
Im{H}.
Conclusion:
We had a chance to see how one could design filters, how they actually work(what physical
processes happen so that filters can block or let something to pass), how we can combine some
types of filters to get new filters with new properties. We also were able to use analytical
knowledge to calculate their expected behavior and compare them with measured ones using
plots. Finally, we found values that describe the type of filter we have and its properties(cutoff
frequency, bandwidth and center-frequency).
Overall, regarding the errors, only our theoretical values for magnitude of band pass filter are
odd, but we can still observe band pass behavior for both cases. Other values and plots align
and are quite close.
References:
1)file://01.0.generaleelab/01.2.generaleelab2/20240112-ch-211_manual.pdf
2)Filter Capacitor (learningaboutelectronics.com)