Starting from:
$30

$24

ECEN Lab 1: First Order Circuits Solution

Objectives

The purpose of the lab is to investigate the frequency response of first-order circuits and learn the fundamentals about circuit analysis and design in the frequency domain.

Introduction

The frequency response is a representation of the system’s response to sinusoidal inputs at varying frequencies; it is defined as the magnitude ratio and phase difference between the input and output signals. If the frequency of the source in a circuit is used as a reference, it is possible to have a complete analysis in the frequency and time domains. Frequency domain analysis is easier than time domain analysis because differential equations used in the time domain are mapped into linear equations that are function of the complex frequency variable s. It is important to obtain the frequency response of a circuit because we can predict its response to any input signal.

In this laboratory experiment we will plot the frequency response of first order RC circuits. We can characterize the circuits by two features of the frequency response:

    1. The difference between the magnitude of the output and input signals (given by the amplitude ratio)

    2. The time lag or lead between input and output signals (given by the phase shift)

To plot the frequency response, value of the transfer function H(s) = Vo (s)=Vi (s) is calculated within a range of input frequencies. A particularly important method of displaying frequency response is the Bode plot, which is the representation of the magnitude (in decibels) and phase (in degrees) of H(j!) as a function of ! or f in logarithmic scale, where ! and f are the frequency variables in radians per second (rad/s) and hertz (Hz), respectively.

As an example, assume that the transfer function is given as


H(s) =
Vo
(s) =
1








(1)



Vi



s






























1+ 2 1000



























8
jH(j!)j =





1






















H(j!) =
1





1 +

!

2






>




2 1000

(2)


j!


>



r









)
>















>


































1 +














!
























2 1000



<
\H(j!) =

tan 1










>



2 1000








>



















>













>
>
:


If the input signal is Vi (t) = 0.2 sin(2 3000t), which is a sinusoidal signal with 0.2 V amplitude and 3 kHz (or 2 3000 rad/s) frequency, then the output signal can be calculated as follows:

jH(j2 3000)j =


1



= 0.316

9
































1 +
2 3000

2








s







>

o










>
)











>












>












=












>


(3)


2 1000







V (t) = 0.0632 sin(2 3000t   1.25)




2 1000




>



\H(j2 3000) =  tan
12 3000=
71.6  =
1.25 rad
>







>













>



>
>
;


The output voltage Vo (t) calculated above can be verified using either time-domain (transient), or frequency-domain (AC) simulation as follows:






c    Department of Electrical and Computer Engineering, Texas A&M University

1
Printing Time:Tuesday, January 2, 2018, 4:36:21 PM

Transient Simulation



250m









(3.4168m, 199.9907m)






(3.4850m, 63.1962m)



150m






50m





(V)






Voltage
0m













-50m








(3.5000m, -19.8025n)




-150m

(3.5670m, -835.3709µ)











-250m






3.0m
3.2m
3.4m
3.6m
3.8m
4.0m

V(vi)

Time (s)

V(vo)


Figure 1: Transient Simulation:
^
= 63.2mV , jHj

63.2m


Vo

=

= 0.316,   t = 3.5mS   3.567mS =  67 S




200m


1


) \H=

t
67



T =



= 333.3 S




360  =

360  =
72.3  =  1.26 rad

3000



T


333.3




Printing Time:Tuesday, January 2, 2018, 4:18:02 PM

AC Simulation


10






0






-10






-20






-30


(2.9978k, -9.9945dB)










Magnitude






-40






-50






-60






-70






1
10
100
1k
10k
100k
1M





Frequency (Hz)




V(vo)







10







0







-10







-20






(deg)
-30



(2.9885k, -71.4979)



-40






Phase
-50







-60







-70







-80







-90







-100







1
10
100
1k
10k
100k
1M




Frequency (Hz)




V(vo)








Figure 2: AC Simulation: H
j
=  9.995dB = 10 9.995=20
= 0.316,
\
H =  71.5  =  1.25 rad
j






As you can see from Figs. 1 and 2, the values of jHj and \H can be verified using transient or AC simulation, however AC simulation provides easier comparison and includes data for any input frequency. On the other hand, transient simulation shows the actual voltage output for a specific set of input signals, so it includes more informa-tion such as initial transients and nonlinearity, as well as any DC component.





2
Calculations

    1. For the circuits in Figs. 3(a) and 3(b), derive the transfer functions in the following forms:




HLP (s) = VLP (s) = KL
1






Vi
s







1+ !L













HHP (s) =
VHP (s) = KH
s






Vi
s + !H


and express !L, !H , KL and KH in terms of resistors and capacitors.





VLP



V







HP
VI
R1
C1
R2
VI
C2
R3
C3


(a)


(b)



Figure 3: First order (a) lowpass filter
(b) highpass filter






(4)



(5)

The frequencies !L and !H are known as:

Pole frequency, defined as the root of the denominator of H(s)

Corner frequency, defined as the frequency at which the gain is 0.707 times the passband value Half power frequency (compared to passband), since 0.7072 = 0.5
3dB frequency (compared to passband), since 20 log10(0.707) =    3dB

    2. Find R1, R2, R3, C1, C2, and C3, such that fL = fH = 5 kHz and KL = KH = 0.5.

    3. Sketch the magnitude and phase Bode plots for HLP (s) and HHP (s).

    4. Calculate the output voltages VLP (t) and VHP (t) for Vi (t) = 0.4 sin(2 4000t).

    5. Repeat step 4 for Vi (t) = 0.3 sin(2 6000t).



Simulations

For all simulations, provide screenshots showing the schematics and the plots with the simulated values prop-erly labeled.

Draw the schematics for the circuits in Fig. 3 with the calculated component values. Perform the following simula-tions for each circuit:

    1. Obtain the magnitude and phase Bode plots of the transfer function using AC simulation, and measure the 3-dB frequencies and passband gains. Also measure the magnitude and phase of the transfer function at 4kHz and 6kHz.

    2. Apply the input Vi (t) = 0.4 sin(2 4000t) and obtain the time-domain waveforms for the input and the output voltages using transient simulation. Measure the magnitudes of the input and the output voltages, and the phase difference between them.

    3. Repeat step 2 for Vi (t) = 0.3 sin(2 6000t).









3
Measurements

For all measurements, provide screenshots showing the plots with the measured values properly labeled.

Build the circuits in Fig. 3 with the with the simulated component values. Perform the following measurements for each circuit:

    1. Obtain the magnitude and phase Bode plots of the transfer function using the network analyzer, and measure the 3-dB frequencies and passband gain. Also measure the magnitude and phase of the transfer function at 4kHz and 6kHz.

    2. Apply the input Vi (t) = 0.4 sin(2 4000t) and obtain the time-domain waveforms for the input and the out-put voltages using the scope. Measure the magnitudes of the input and the output voltages, and the phase difference between them.

    3. Repeat step 2 for Vi (t) = 0.3 sin(2 6000t).

Report

    1. Include calculations, schematics, simulation plots, and measurement plots.

    2. Prepare a table showing calculated, simulated and measured results.

    3. Compare the results and comment on the differences.

Demonstration

    1. Build the circuits in Fig. 3(a) and (b) on your breadboard and bring it to your lab session.

    2. Your name and UIN must be written on the side of your breadboard.

    3. Submit your report to your TA at the beginning of your lab session.

    4. For both circuits in Fig. 3(a) and (b):

Show the frequency response using the network analyzer.

– Measure the 3-dB frequency.
– Measure the magnitude and phase at a frequency fx determined by your TA.

Show the time-domain input and output waveforms using the scope at the frequency fx .

– Measure the gain.

– Measure the phase difference between the input and the output.























4

More products