Experiment Guide: RC/RLC Filters and LabVIEW

Similar documents
EECS40 RLC Lab guide

Lab 1: Basic RL and RC DC Circuits

Study of Inductive and Capacitive Reactance and RLC Resonance

Lab E5: Filters and Complex Impedance

AC Circuits. "Look for knowledge not in books but in things themselves." W. Gilbert ( )

Electronics and Instrumentation ENGR-4300 Spring 2004 Section Experiment 5 Introduction to AC Steady State

EE42: Running Checklist of Electronics Terms Dick White

University of Jordan School of Engineering Electrical Engineering Department. EE 219 Electrical Circuits Lab

LAB 8: Activity P52: LRC Circuit

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

Frequency Selective Circuits

FREQUENCY RESPONSE AND PASSIVE FILTERS LABORATORY

PHASES IN A SERIES LRC CIRCUIT

Lab 10 - INTRODUCTION TO AC FILTERS AND RESONANCE

Experiment 9 AC Circuits

ECE 2006 University of Minnesota Duluth Lab 11. AC Circuits

Lab 9 Frequency Domain

CHAPTER 14. Introduction to Frequency Selective Circuits

Lab 2: Linear and Nonlinear Circuit Elements and Networks

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

INTRODUCTION TO AC FILTERS AND RESONANCE

EE-2302 Passive Filters and Frequency Response

RLC Frequency Response

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Lab 9 - AC Filters and Resonance

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Fig. 1. NI Elvis System

Lab 13 AC Circuit Measurements

Series and Parallel Resonance

Experiment 2: Transients and Oscillations in RLC Circuits

Uncovering a Hidden RCL Series Circuit

Experiment 9: AC circuits

The Series RLC Circuit and Resonance

CHAPTER 9. Sinusoidal Steady-State Analysis

Lab #5 Steady State Power Analysis

STATION NUMBER: LAB SECTION: Filters. LAB 6: Filters ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

Non-ideal Behavior of Electronic Components at High Frequencies and Associated Measurement Problems

AC CIRCUITS - CAPACITORS AND INDUCTORS

LRC Circuit PHYS 296 Your name Lab section

Worksheet for Exploration 31.1: Amplitude, Frequency and Phase Shift

Lab 3: AC Low pass filters (version 1.3)

EK307 Passive Filters and Steady State Frequency Response

Experiment #10: Passive Filter Design

OPERATIONAL AMPLIFIERS (OP-AMPS) II

EXPERIMENT 4: RC, RL and RD CIRCUITs

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 5 RC Circuits Frequency Response

Activity P52: LRC Circuit (Voltage Sensor)

AC Circuits INTRODUCTION DISCUSSION OF PRINCIPLES. Resistance in an AC Circuit

PHY203: General Physics III Lab page 1 of 5 PCC-Cascade. Lab: AC Circuits

Lab 3: RC Circuits. Construct circuit 2 in EveryCircuit. Set values for the capacitor and resistor to match those in figure 2 and set the frequency to

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

FREQUENCY RESPONSE OF R, L AND C ELEMENTS

Laboratory Exercise 6 THE OSCILLOSCOPE

Lab 8 - INTRODUCTION TO AC CURRENTS AND VOLTAGES

Pre-Lab. Introduction

Lab 9 AC FILTERS AND RESONANCE

Experiment 8: An AC Circuit

Bakiss Hiyana binti Abu Bakar JKE, POLISAS BHAB

PHYS 3322 Modern Laboratory Methods I AC R, RC, and RL Circuits

Lab E2: B-field of a Solenoid. In the case that the B-field is uniform and perpendicular to the area, (1) reduces to

Resonance in Circuits

ωc ωc sin(wt 90o ) (for a capacitance) (4)

ET1210: Module 5 Inductance and Resonance

Experiment 8 Frequency Response

Exercise 9: inductor-resistor-capacitor (LRC) circuits

EE233 Autumn 2016 Electrical Engineering University of Washington. EE233 HW7 Solution. Nov. 16 th. Due Date: Nov. 23 rd

Class #16: Experiment Matlab and Data Analysis

H represents the value of the transfer function (frequency response) at

EXPERIMENT 4: RC, RL and RD CIRCUITs

AC CIRCUITS. Part 1: Inductance of a Coil. THEORY: If the current in a resistor R, a capacitor C, and/or an inductor L is given by:

Homework Assignment 03

Chapter 6: Alternating Current. An alternating current is an current that reverses its direction at regular intervals.

EK307 Active Filters and Steady State Frequency Response

SAMPLE: EXPERIMENT 2 Series RLC Circuit / Bode Plot

Time-Varying Signals

BAKISS HIYANA BT ABU BAKAR JKE,POLISAS

Laboratory Project 4: Frequency Response and Filters

Lab E5: Filters and Complex Impedance

AC reactive circuit calculations

ECE212H1F University of Toronto 2017 EXPERIMENT #4 FIRST AND SECOND ORDER CIRCUITS ECE212H1F

NI Elvis Virtual Instrumentation And Prototyping Board

Lecture 16 Date: Frequency Response (Contd.)

v(t) = V p sin(2π ft +φ) = V p cos(2π ft +φ + π 2 )

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

AC Magnitude and Phase

2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS. ECE 4501 Power Systems Laboratory Manual Rev OBJECTIVE

Real Analog - Circuits 1 Chapter 11: Lab Projects

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

ENGINEERING COUNCIL CERTIFICATE LEVEL ENGINEERING SCIENCE C103 TUTORIAL 18 ALTERNATING CURRENT

Virtual Lab 1: Introduction to Instrumentation

Physics 481 Experiment 1

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 4 SINGLE STAGE AMPLIFIER

EXPERIMENT NUMBER 10 TRANSIENT ANALYSIS USING PSPICE

Physics 364, Fall 2014, reading due your answers to by 11pm on Sunday

Physics 472, Graduate Laboratory DAQ with Matlab. Overview of data acquisition (DAQ) with GPIB

Electric Circuit Fall 2017 Lab10. LABORATORY 10 RLC Circuits. Guide. Figure 1: Voltage and current in an AC circuit.

LCR CIRCUITS Institute of Lifelong Learning, University of Delhi

Transcription:

Description and ackground Experiment Guide: RC/RLC Filters and LabIEW In this lab you will (a) manipulate instruments manually to determine the input-output characteristics of an RC filter, and then (b) use an instrument control system called LabIEW (made by National Instruments, Inc.) to measure and plot RC filter characteristics automatically. A. RC Filter Characteristics Figure below shows an RC filter connected to a sinusoidal voltage source. This circuit is termed a two-port circuit (see Fig. 2) where the voltage source produces the input voltage in and the output voltage out appears across resistor R. in + C R + out - Figure. RC filter with series capacitor and output resistor R (HPF). - v in v out Figure 2. Two-port circuit. Recall that we customarily represent an AC voltage as a periodic function of time such as (t) = 0 cos(ωt) where 0 is the amplitude of the voltage, t is time, and ω is the socalled angular frequency, whose units are radians per second. The angular frequency is related to the ordinary frequency, f, measured in Hertz, by ω = 2πf. For example, if the frequency, f, of the ordinary power line voltage in the U. S. is 60 Hz, then the associated angular frequency, ω, is 377 radians/s (2π 60). Transfer Function A two-port circuit is characterized by its so-called transfer function, whose magnitude is defined as out / in, where out and in are phasor (has both amplitude and phase) voltages (as indicated by the boldface type). The variation of the transfer function with frequency characterizes the frequency response of the circuit (a high-pass filter, lowpass filter or band-pass filter).

If you analyze the RC circuit of Fig. using Kirchhoff s voltage law, the phasor voltages out and in, the resistance R and the impedance of the capacitor Z C = /jωc, you can show that the magnitude of the transfer function is out in = ùrc + (ùrc ) 2 () An approximate log-log plot of transfer function magnitude vs. angular frequency is shown in Figure 3: out in / 2! ( )! = rad RC Fig. 3. Log-log plot of transfer function magnitude vs. angular frequency for the HPF. The filter characteristic is shown in Figure 3 as a high-pass filter which passes frequencies higher than " = / RC = /!, which is the critical frequency used to indicate the pass band. For this high-pass filter (HPF) the pass band is! >!. The critical frequency is defined as the frequency at which the output voltage amplitude drops to / 2 of the input voltage amplitude (also called 3 d point in decibel scales. Please refer to Chapter 6 for more information on Decibels and ode plots). In order to plot the whole frequency response, one has to plot over a frequency range that covers! (e.g. 0.! <! < 0! ). If we reverse the positions of R and C in the filter circuit (Figure 4), we obtain the transfer function and filter characteristic shown below: in + R C + out - -

Fig. 4. Circuit with a series resistor R and the capacitor C as the output element (LPF). out in = + (ùrc ) 2 (2) out in / 2! ( rad )! = RC Fig. 5. Log-log plot of transfer function magnitude vs. angular frequency for the LPF. The filter characteristic is shown in Figure 5 as a low pass filter which passes frequencies lower than " = / RC = /!. For this low-pass filter (LPF) the pass band is 0 <! <!. Figure 6. elow shows a series resonant circuit, with voltage read across the resistor. This acts as a bandpass filter. The circuit s resonant frequency, ω0, is the frequency where the impedance is entirely due to the resistance. At resonance, the reactance of the capacitor cancels out the reactance of the inductor so they must be equal in magnitude. The quality factor, Q, of a series RLC filter is defined as the ratio of the inductive reactance to the resistance, at the resonant frequency:

Fig. 6. Series RLC andpass Filter, with AC source. Fig. 7. Plots of Transfer Function magnitude, for different values of Q The bandwidth of a bandpass filter is the region between which the output is above half the maximum power. This is also the -3d point, because in decibels, 0 log 0.5-3, where 0.5 comes from the power ratio, or H(ω) 2. The bandwidth,, of a series bandpass filter is related to quality factor, Q, by the equation: The voltage measured at the half-power frequency should be ~0.707, or 0.5 of the maximum voltage, because power is proportional to the square of voltage. Procedures P. Connect a kω resistor and a (non-polarized) nf capacitor in series with a signal generator as shown in Fig, making sure that your oscilloscope ground and the signal generator ground are connected together. Set the signal generator to output a 0.5-pp sine wave. Measure and plot the amplitude of the voltage across the resistor versus frequency on log-log graph paper. You can download log-log graph

paper from the EE 40 web site. First figure out the frequency range and the step of the sample points you are going to use. Should you make the step constant over the range? (hint: take more points when the curve turns, take less points when it is constant.) P2. Reverse the order of the two components as shown in Fig 4 and repeat. Plot the amplitude vs. frequency in a log-log scale. P3. Observe the effects of filtering on square and triangular waves. Change the frequency of the signal and observe the shape change of the signal, then explain the change. References (on Reserve for EE 40 in Engineering Library) P. Horowitz and W. Hill, The Art of Electronics, 2 nd ed. (Cambridge U. Press, 989), pp. 35-8. R. White and R. Doering, Electrical Engineering Uncovered, 2 nd ed. (Prentice Hall, 200). See p. 27 ff. for explanation of decibels, and pp. 285-7 on transfer functions and ode plots. Description and ackground Graphical circuit stimulation software, such as LabIEW, is popular among engineers working in industry and researchers in universities because it reduces the tedium and cost of circuit and system testing. So far in this lab, you ve used an analog function generator and oscilloscope to get the graph that shows the ratio of the voltages versus the frequency. Plotting the graph by hand is time-consuming and it may give inaccurate results. With LabIEW, however, you can obtain accurate tabular and graphical results automatically after you program the system. Note that your EECS 40 text (A. R. Hambley, Electrical Engineering: Principles and Applications, 3 rd Ed.) discusses LabIEW on pages 425-437, and contains a LabIEW CD-ROM in the envelope inside the back cover of the book. LabIEW is a graphical programming language that shares some aspects with traditional non-graphical programming languages (C, ASIC, Pascal, etc.) and some aspects of hardware definition languages (HDL, erilog). It combines the generality and power of traditional programming data structures such as loops, if-then branches, and arithmetic operators with the ability of hardware definition languages to perform multiple tasks simultaneously. Programming in a graphical environment consists of placing functional blocks that perform specific tasks on a worksheet and wiring them together to send data from one block to another. These blocks can do anything from simple tasks (add the data on the two input wires together and place the answer on the output wire) to complex tasks (take two arrays of data as input and display the contents on a log-log graph as x,y pairs). These functional blocks can also translate data in the graphical program into a form that external equipment can use. With the appropriate software drivers, any button or knob

that can be pressed manually can be controlled automatically by one of these function blocks. Finally, certain special blocks can control the flow of a program by specifying that a few tasks should be performed in a certain order, or that a task should be repeated a certain number of times. All of these types of blocks are used in this lab. In addition to placing blocks on the worksheet, blocks must be wired together. This is complicated by the fact that not all wires in LabIEW carry the same kinds of data! Some wires will carry a single number. Other wires will carry a whole list of numbers. Other wires carry multiple kinds of data, where the amount and type of data are determined by the blocks to which they re connected. Unfortunately, most blocks require that the data coming in be formatted correctly, otherwise they will not perform their job. Two of the biggest challenges people face when first starting to learn LabIEW are deciding which type of wire to use where, and converting from one type to another. In this lab, you are provided with a pre-made LabIEW graphical program, so you will not have to learn these aspects of LabIEW programming today. For an example of blocks wired together on a worksheet and a front panel of an instrument simulated in LabIEW, see Figs. 9.22 and 9.23 in your text. Equipment Personal computer running Windows XP with LabIEW 7. installed; printer; 0kΩ resistor; 0.µF non-polarized capacitor; HP 54645D oscilloscope; HP 3320A function generator; HP 3440A multimeter; the file RCcircuit.vi on the EECS 40 web site; External Interface Command Set Manual for HP 3440A multimeter and HP 3320A function generator. Procedures P4. First, communication between the computer and the function generator and multimeter must be confirmed. To do this, first we must ensure everything is powered up and functioning. Log onto the computer. Turn on the function generator and multimeter, being sure to note the address of each one as it starts up. If these are different from one another, everything is good and so continue with the instructions here. If they are the same, you must change one of them (Menu on/off->i/o Menu->HPI ADDR->^## ADDR). On the computer, open "Measurement & Automation" (Start->Programs->National Instruments->Measurement & Automation). Expand the "GPI0 (PCI-GPI)" tab (My System->Devices and Interfaces->GPI0 (PCI-GPI)). Scan for Instruments by rightclicking on the tab and selecting the appropriate option. For each instrument, use the "Communicate with Instrument" option to manually send commands (see instrument manuals) over the GPI bus (GPI stands for General Purpose Interface us, and it was developed originally at Hewlett-Packard), then click Query, the information of the instrument, including the address, will be listed in the window.

P5. Hook up a 0kΩ resistor and a (non-polarized) 0.µF capacitor in series with the signal generator as shown in Fig. Attach the probes from the multimeter across the resistor. Double click the LabIEW program (RCCircuit.vi) that has been downloaded from EE 40. Return to the Front Panel window and ensure that the addresses listed for the Multimeter matches the addresses found in Procedure P4 (Address: 22). Perform a frequency sweep with 3 steps per decade by filling in the appropriate text boxes. Type in the same start and stop frequencies as you did manually and then press the play button. You can monitor the progress of the frequency sweep by watching it on the strip chart on the program Front Panel. Print the Front Panel window by clicking print window in File menu. P6. Reverse the components as shown in Fig 4 and repeat P5. RLC Circuit P7. Construct the RLC filter with R = 0k, C = uf and L = 0mH and connect the multimeter across the resistor. Using prelab values, note down the resonant frequency, the quality factor, Q, and the width of the passband? P8. Use Labiew to plot the frequency response, sampling at 5 steps / decade. Find the half-power frequencies by stretching the graph. What are the 2 half-power frequencies, and what is the width of the passband? Compare this width to the one in your prelab. Are your findings consistent with the equation relating quality factor, bandwidth and resonant frequency? Explain. Decomposition in Frequency Domain What you have done above using Labview is force the function generator to sweep through a range of frequencies one by one, and for each one the multimeter would measure the RMS voltage of the signal. Labview then converted that voltage to a percentage of the original signal. These plot points then formed the frequency domain transfer function. It is important in electronic circuit evaluation to become comfortable analyzing and plotting in the frequency domain. This is a simple way to see how a filter processes various frequencies. However, most real world signals are not pure sine waves. They are very complex waveforms that cannot be readily described by any singular mathematical function. Fortunately though, it turns out that all such waveforms can be broken down into the algebraic sum of one or more pure sine waves. For example, the complex wave you saw in the first lab of your voice is a combination of five pure sine tones made by your five vocal chords. The filter processes these single frequencies just as it would for

each sine individually, except it does them all at once. The filter output is the algebraic sum of the filtered components. It is possible to determine the pure sine components of any sinusoidal waveform using the Fourier transform. When the Fourier transform is applied to any time domain function, the result is an equivalent function in the frequency domain. The mathematical particulars of this are best left for EE20, which you have likely taken or are taking. In the next portion of the lab, you will use Labview to perform a Fourier transform on a digitized wave generated by the oscilloscope. Connect the function generator to the oscilloscope. Run fftcircuit.vi and setup for one channel oscilloscope measurement. P9. Create a 20 KHz sine wave on the function generator. Comment on what you see, specifically what frequencies each wave is composed of. Repeat this for a 40 KHz wave and 20 KHz wave. Rescale plot if necessary. P0. Create a 40 KHz square wave on the function generator. What frequencies are contained in the viewable area? How about 00 Khz? Rescale plot if necessary. Integer multiples of frequencies are called harmonics. Which harmonics are contained in this wave type? Repeat for a triangle wave. Connect the function generator and the oscilloscope channel leads to input of this high pass filter from P5 (Swap in nf capacitor). (Ensure the resistor is last in the series so all probes have a common ground) Connect the oscilloscope channel 2 leads across the resistor. In Labview, load the I fftcircuit.vi (on the desktop). Set the isa session (top left of each instrument) to the address of your oscilloscope (usually 7). Set function generator to triangle and 3.2-3.4kHz. P. When the graph has minimal noise, stop the virtual instrument. Print the resultant transfer function. P2. Connect the function generator to the second order filter R = k, C = nf and L = 0mH. Attach the oscilloscope channels to the input and across the resistor. Repeat P2 for this filter. Set function generator to triangle and 8.6kHz.