• No results found

Lab #9: AC Steady State Analysis

N/A
N/A
Protected

Academic year: 2022

Share "Lab #9: AC Steady State Analysis"

Copied!
12
0
0

Loading.... (view fulltext now)

Full text

(1)

Lab #9: AC Steady State Analysis Theory & Introduction –

Goals for Lab #9 –

The main goal for lab 9 is to make the students familar with AC steady state analysis, dB scale and the NI ELVIS frequency analyzer. Also important is that students understand critical damping in the frequency domain.

Theory –

Figure 9.1

Figure 9.2 Bode Diagrams:

The Bode diagram, as seen in Figure 9.1, completely characterizes a linear system. You may recall that for linear systems, superposition holds. More information on what constitutes a linear system will be covered in future engineering courses. The Bode diagram shows how the system will change the magnitude and phase of pure sinusoidal inputs. For example Figure 9.1 is the Bode plot of the 2nd order low pass RLC circuit shown in Figure 9.2.

(2)

At very low frequencies, the magnitude of the output is very close to 0dB (unity gain), and phase shift is almost zero. This means low frequency signals pass this filter without change. At high frequencies, the magnitude drops and the phase is shifted 180 degrees which means the signal is totally attenuated. At the maximum of the magnitude curve, a resonance is clearly indicated at the resonance frequency, where the phase shift is 90 degrees. Consult Chapter 14 in your text if you wish to explore more details on this. However, our brief description in this section is sufficient to complete this lab.

Decibels and the dB scale:

In electronic circuits, voltages and currents can be amplified or attenuated. The values encountered for such factors in circuits can vary over orders of magnitude. It is thus convenient to use a logarithmic measure for them. Let X be a voltage or current amplification or attenuation factor. A widely used logarithmic measure is:

X XdB =20log

The values of XdB are expressed in units called decibels, or dB. For example, if X=0.1, XdB=20log100.1=-20dB. If X>1 then the decibel value should be positive. The table below gives XdB for a variety of X values. However, you should be able to calculate the decibel value of amplification or attenuation. (We also call this the gain.)

X XdB

1 0dB

2 3dB

2 /

1 -3dB

2 or 1/2 +6 or -6dB

10 or 0.1 +20 or -20dB

100 or 0.01 +40 or -40dB

Since XdB is a log function, we usually plot it on a log scale. For our purposes, this means that we equally space powers of 10 in the x-axis. We call the equally spaced steps on this scale a decade.

2nd order state variable active filter:

The state variable active filter is shown in Figure 9.3; it is similar to the bi-quadratic filter we used in Lab #8. When we say filter, we mean a circuit that will allow signals of certain frequencies to either been amplified or to pass through it. The filter will reject some frequencies.

To a certain extent, we can control the frequencies and the gain associated with those frequencies by selecting the filter components.

(3)

Figure 9.3

Our active filter consists of a summing node and two identical lossless integrators. From the outputs of the three op-amps, we can obtain high pass, band pass and low pass characteristics with respect to the same input signal.

For simplicity, we take

R R R

R1 = 2 = 3 = , Rfreq

R

R4 = 5 = , C C

C1 = 2 = .

The Q of the filter is determined by the ratio between RA and RB:

B B A

R R Q R

3

= +

Therefore the central frequency

C f R

π freq

2 1

0 = ,

Maximum gain of the LP, HP and BP outputs are 1

1 3 ,

0 = =

R

A LP R , 1

1 2 ,

0 = =

R

A HP R Q

R R A R

B B A

BP = + =

, 3

0 .(When R1=R2=R3)

What is the maximum gain in dB? Be familiar with how to switch back and forth between nominal gain and the gain in dB.

(4)

Prelab –

Read the purpose, principles, and procedures sections of Lab 9. Be prepared for your lab quiz which may cover this lab or any previous lab completed this semester.

1. Perform an AC steady state analysis for the RC low pass circuit shown in Figure 9.4. Be sure to print all relevant graphs to turn in to you TA. If you have questions, consult your TA.

Figure 9.4

Note: The following steps will help you perform a AC steady state analysis in PSPICE. It is also good to perform the analysis by hand before starting your PSPICE simulation.

a) Put a "VAC" as the input source, Set "ACMAG"=1V as shown in Figure 9.5.

Figure 9.5

b) In the 1st order RC low-pass circuit, double click the output node; label it as Vout in the pop-up window.

c) In the analysis setup dialog, select "AC Sweep" as shown in Figure 9.6:

Figure 9.6

(5)

d) . Enter the parameters as shown in Figure 9.7:

Figure 9.7

e) Start the simulation. The result window will be empty for the first time because you have not yet selected traces to display. You need to manually add the "Vout" trace and set it to the dB scale:

i. Click "Add Trace" on the toolbar or press "Insert" on the keyboard. See Figure 9.8.

Figure 9.8

ii. In the pop-up dialog box, which is shown in Figure 9.9 on the next page, click

"DB()" on the right and then V(Vout) on the left until DB(V(vout)) shows up in the

"Trace Expression" on the bottom.

(6)

Figure 9.9 f) Measure the roll-off slope:

Figure 9.10

Use the cursor function, whose button is circled in the Figure 9.10. Set two cursors one decade apart, say 100k and 10k, or 50k and 5k, note down the Y difference as circled. For 1st order RC, this roll-off slope should be about 20dB/decade. Print your schematic and the graph with the slope shown and hand it in to your TA.

(7)

2. Repeat for RC high pass filter below in Figure 9.11. Be sure to print all relevant graphs to turn in to your TA. If you have questions, consult with your TA.

Figure 9.11

3. Perform AC analysis for the state variable active filter at the HP, BP, and LP outputs nodes from 10Hz to 100kHz as shown in Figure 9.12. Measure the roll-off slopes from all three output signals. Place all three traces on one graph if you are able Again, submit all graphs for grading.

Figure 9.12

4. Change RA and RB values yet keep RA+RB constant, (they will be replaced with a

potentiometer in the lab) to observe the changes with different Q. Refer to the Q equation

B B A

R R Q R

3

= + . For example RB =0.5k, RA =1.5k will give a Q of about 1.33. Capture AC

response curves from the LP output node with Q=0.5,1 and 5.

5. Keeping RA+RB=10kOhms, calculate the RB value for critical damping Q=0.707.

(8)

Procedure – 3—741 OPAMPs 5—1kΩ resistors 2—1.6kΩ resistors 2—0.1uF capacitors

Task #1 – Low pass RC Filter

Using R=1.6kΩ and C=0.1uF, construct the circuit in Figure 9.13 on the NI ELVIS board. Be sure to use the ground on the board correctly. You will be adding to this circuit in Task #2.

Generate from the HP function generator a 2Volt peak to ppeak, 500Hz sinusoid signal for the Vin. Remember to set the function generator to High Z. Monitor both Vin and Vout through CH1 and CH2 of the Tectronix oscilloscope. The two waveforms should look similar to Figure 9.14. Measure the phase difference between the two traces by using the functions associated with the "measure" button. Also find the attenuation factor between Vinp-p and Voutp-p, convert it to dB scale. Record the results in Table 1. Save the graph and include it in your lab report.

Gradually increase the frequency to 2kHz. The waveform should look similar to Figure 9.15.

Note down the phase difference and the amplitude change. Measure the attenuation factor in dB as well. Comment the change of phase and amplitude of the output signal. Save the graph and include it in your lab report.

Figure 9.13

Figure 9.14

(9)

Figure 9.15 Task #2 – Using the Bode Analyzer

The Bode analyzer is a very useful tool provided in the NI ELVIS system. It generates sinusoid input signal at variable frequency but constant amplitude, then compares output signal with the input, finding the change in both phase and amplitude. By this way we can find the AC steady state characteristics of the circuit under test. You will use the same circuit you did in Task #1.

Leave the connections to the Tectronix Oscilloscope in place. Simple add to the circuit using the following steps:

a) Connect the ELVIS function generator output to ACH0+, name this node Vin; this node will provide the variable frequency input signal, whose amplitude is sensed through the ACH0 channel.

b) Name the ACH1+ as Vout, this is the node where the Bode analyzer measures the output of our circuit under test.

c) Connect ACH0-, ACH1- to the ground;

d) Connect the Vin, Vout and ground of the RC circuit in Figure 9.13 to the Bode analyzer, with R=1.6k, C=0.1uF. Your Bode analyzer is now ready to work.

e) Invoke the Bode analyzer from the ELVIS Launcher. Set the start/stop frequency from 10Hz to 20 kHz, set 10 points per decade, set input amplitude 2Vpp, set the y axis ranges as default at this time.

(10)

Figure 9.16

f) Click Run button to start analysis. From the oscilloscope (by using auto scale) you can see the input signal is a sinusoid with increasing frequency. The amplitude and phase difference are then be measured by the ELVIS system and plotted on the graph. After the analysis finishes, save the log files of every trace for the lab report. You can save them as files that can be imported into Excel. Save the both the graph files and the data to be used in the lab report write-up.

Task #3: State Variable Filter

Build the state variable filter in Figure 9.17, connect it to the bode analyzer, with the same settings above, test its HP, BP and LP outputs individually, save log files to every trace.

Figure 9.17

(11)

Task #4: Continued Analysis of the State Variable Filter:

(Optional) Replace RA and RB with a 10kohm potentiometer. Adjust the circuit to critical damping. (Hint: recall the knowledge you learned in previous lab). Test the circuit with the frequency analyzer; note the shape of the AC curves around the f0. Remove the potentiometer from the circuit, measure the resistance of the equivalent RA and RB, compare to your calculations and simulations in the pre- lab.

Lab Report Requirements –

Be sure to include all normal requirements for the Lab Report. See your TA if you have any questions.

Also include the following:

1. In Excel, import the saved log files as comma delimited text, reproduce the Bode plots in your lab report. For every roll-off slope, find two points that are 1 decade away from each other, for example 2khz and 20kHz for high frequency part, or 20 to 200 Hz for lower frequency part. Find the differences between the two marks in dB. Note down the slopes in the following table.

2. Comment the difference between 1st and 2nd order systems. Do 2nd order filters have a steeper or shallower slope as the gain decreases? For more information on this, consult Chapter 14 in your text.

1st order low pass 2nd order low pass

2nd order high pass

2nd order band pass lower side

2nd order band pass higher side

3. Reproduce tables and comments in the report. Explain the theory learned from the lecture as it is reflected in the work done in the lab.

(12)

Tables and Results –

Table 1. Task 1:

Frequency Vinp-p Voutp-p Phase (Vin->Vout) dB attenuation 500Hz

2000Hz

Comments to Task 1:

______________________________________________________________________________

______________________________________________________________________________

Comments to Task 4:

______________________________________________________________________________

______________________________________________________________________________

References

Related documents

Berdasarkan hasil wawancara dengan informan Koordinator Pengelola PKM- K dan mahasiswa penerima beasiswa Bidikmisi yang lolos seleksi PKM-K mengenai dana yang diberikan pada

Make measurements on timeslot 0 [FREQUENCY] {Timeslot Off} [Enter] Activate the ORFS measurement (figure 25) [MEASURE] {GMSK Output RF The default setting measures spectrum

In addition, if I marked "Yes" to any of the above questions, I hereby authorize release of information from my Department of Transportation regulated drug and alcohol

8 Attebery, like Irwin, distinguishes between the fantastic and fantasy: the fantastic as a mode of storytelling incorporates the whole of myth, fairy tale, magic realism,

Keywords: Adult Mental Health Care, User's Views, Cohort Studies, Community Treatment, Qualitative Research, Mental Health Act... For Peer

The kitchen, the dining room, the hall and even the downstairs bedroom all have French doors that open onto a large patio terrace and then the rest of the garden is laid to lawn..

The Seckford Education Trust and our schools should be environments in which pupils and students or their parents/carers can feel comfortable and confident

Based on the above survey results from selected participants from small sites, a total of 73.8% out of a total of 528 participants either disagreed or strongly disagreed with