Docsity

Lab 1: Linear Time-Invariant Systems | EECS 216, Lab Reports of Signals and Systems

Toggle sidebar
bg1
EECS 216 Winter 2008
Lab 1: LTI Systems
Part I: Intro & Pre-lab Assignment
Professor Kim Winick
Department of Electrical Engineering & Computer Science
University of Michigan
c
Kim Winick 2008
1 Introduction
The first several weeks of EECS 216: Signals and Systems have been dedicated to introducing the notion of
alinear time-invariant system (LTI) and characterizing the input/output relationships for such a system.
In particular, the properties of linearity and time-invariance have been described and it has been shown
that the general solution of an LTI system can be computed by convolving the input with the systems
impulse function, h(t). Furthermore, even though systems often have multiple inputs and multiple outputs,
we restrict ourselves in EECS 216 to LTI systems that have a single input and a single output.
In this set of laboratory experiments, you will apply these basic concepts of LTI systems to a simple RC
circuit. You will measure the response of the circuit under a variety of conditions and compare your results
with the corresponding theoretical predications.
2 Goals
•To become familiar with the laboratory equipment: power supply, signal generator, digital oscilloscope,
computer data acquisition system (Scope Connect).
•To review basic concepts of linear time-invariant systems.
•To illustrate several possible ways to determine the impulse response of a physical system from measured
data.
•To use linearity, time-invariance and impulse response to compute the output of an LTI system when
the input is a step, a pulse, or a more complicated signal. You will compare these calculations with
actual measurements.
•To measure the frequency response of an LTI system and compare against theory.
3 Technical Background Information
An RC circuit is used so that the computations are easy and physically meaningful. The same procedures
can be applied to much more complicated systems.
3.1 RC circuit
The RC circuit shown below is an example of a simple LTI system. Of course, there are many other LTI
systems that do not involve circuits at all.
1
pf3
pf4
pf5

Partial preview of the text

Download Lab 1: Linear Time-Invariant Systems | EECS 216 and more Lab Reports Signals and Systems in PDF only on Docsity!

EECS 216 Winter 2008

Lab 1: LTI Systems

Part I: Intro & Pre-lab Assignment

Professor Kim Winick

Department of Electrical Engineering & Computer Science

University of Michigan

©c Kim Winick 2008

1 Introduction

The first several weeks of EECS 216: Signals and Systems have been dedicated to introducing the notion of a linear time-invariant system (LTI) and characterizing the input/output relationships for such a system. In particular, the properties of linearity and time-invariance have been described and it has been shown that the general solution of an LTI system can be computed by convolving the input with the systems impulse function, h(t). Furthermore, even though systems often have multiple inputs and multiple outputs, we restrict ourselves in EECS 216 to LTI systems that have a single input and a single output. In this set of laboratory experiments, you will apply these basic concepts of LTI systems to a simple RC circuit. You will measure the response of the circuit under a variety of conditions and compare your results with the corresponding theoretical predications.

2 Goals

  • To become familiar with the laboratory equipment: power supply, signal generator, digital oscilloscope, computer data acquisition system (Scope Connect).
  • To review basic concepts of linear time-invariant systems.
  • To illustrate several possible ways to determine the impulse response of a physical system from measured data.
  • To use linearity, time-invariance and impulse response to compute the output of an LTI system when the input is a step, a pulse, or a more complicated signal. You will compare these calculations with actual measurements.
  • To measure the frequency response of an LTI system and compare against theory.

3 Technical Background Information

An RC circuit is used so that the computations are easy and physically meaningful. The same procedures can be applied to much more complicated systems.

3.1 RC circuit

The RC circuit shown below is an example of a simple LTI system. Of course, there are many other LTI systems that do not involve circuits at all.

  A A A

R

r

r

C

+^ b

−^ b

Vin(t)

b (^) +

b (^) −

Vout(t)

Figure 3.1.1: RC Circuit

We will take the system input to be the voltage Vin(t), while the system output is the voltage, Vout(t), dropped across the capacitor. Notice that these voltages, in general, will be functions of time, t.

3.2 When is a linear circuit a linear system?

Using Kirchoffs current and voltage laws, one can easily derive a differential equation model of the RC-circuit in Figure 3.1.1, namely

RC

dVout(t) dt

  • Vout(t) = Vin(t). (3.2.1)

Appealing to basic knowledge of ODEs from a sophomore level math course, the total solution is seen to be

Vout(t) = V 0 e−t/RC^ +

∫ (^) t

0

RC

e−(t−τ^ )/RC^ Vin(τ )dτ, t ≥ 0 , (3.2.2)

where the initial condition at time zero is Vout(0) = V 0. It is very easy to verify that Vout(t) is a linear function Vin(t) if, and only if, Vout(0) = V 0 = 0, that is, the initial voltage on the capacitor has to be zero. This point is emphasized because you will have to assure this in the laboratory by either waiting for the charge to decay on the capacitor or by shorting the capacitor with a wire.

Reassuring remark: We will learn how to deal comfortably with nonzero initial conditions when we study the Laplace transform. For the time being, it is important to realize that we are assuming zero initial conditions when our models arise from a differential equation.

3.3 Impulse Response

The impulse response, h(t), of an LTI system is, by definition, the output response when the input of the system is a delta function, δ(t). Of course, the delta function is a mathematical idealization. In practice, h(t) can be well approximated by the response of the system when the input is a pulse of very short duration (compared with the response time of the system) and unit area, such as p∆(t) = (^) ∆^1 (u(t) − u(t − ∆)) for ∆ > 0 sufficiently small. Note that in order to keep the area of the pulse equal to unity, the amplitude has to increase as the pulse duration gets shorter. Often, this is a problem in a practical system as a large voltage pulse may fry an amplifier, for example. One way to get around this is to use linearity and realize that if the input is scaled by “b”, then the output will be scaled by “b” as well. Consequently, if the measured response is divided by “b”, an approximation of the impulse response is obtained.

3.4 Step Response

For any LTI system the output can be expressed as

y(t) = x(t) ∗ h(t) =

−∞

x(τ )h(t − τ )dτ =

−∞

x(t − τ )h(τ )dτ (3.4.1)

(a) Using linearity and time-invariance together with the step response, compute the output when the input is a pulse of amplitude b/∆ and duration ∆, that is,

Vin(t) =

b ∆ (u(t) − u(t − ∆)).

In the following, yb,∆(t) is used to denote Vout(t) when Vin(t) = (^) ∆b (u(t) − u(t − ∆)) as this allows the dependence on parameters “∆” and “b” to be shown.

Optional [i.e. not required]: Verify that you obtain the same answer analytically by convolving h(t) with Vin(t). Set up the convolution “graphically” so that you can find the proper limits of integration.

(b) With b = 1, compute lim∆→ 0 yb,∆(t), where yb,∆(t) is the output computed in part (a). How does your result compare with h(t) computed in problem 4.2?

Hint: You can use l’Hˆopital’s rule to evaluate lim∆→ 0 e

∆/RC (^) − 1 ∆ or you can use the relation^ e

x (^) = ∑∞ n=

xn n!. (c) For R = 1 kΩ and C = 1 μF, use Matlab to plot (on a single plot) yb,∆(t) for pulse inputs with the following parameters: b = 10−^4 V s and ∆ = 10−^3 s, 0. 5 × 10 −^3 s and 0. 1 × 10 −^3 s which correspond respectively to pulses of

(i) duration 1 ms and amplitude 100 mV (ii) duration 0.5 ms and amplitude 200 mV (iii) duration 0.1 ms and amplitude 1 V

Also on the same plot, give 10−^4 h(t), where h(t) is the impulse response. For your plots use the Matlab axis command axis([0 0.005 0 0. 1 ]). Note: Since Vin(t) approaches a delta function when b = 1 and ∆ → 0, and since the (i)-(iii) above all correspond to b = 0.0001, the plots for cases (i)-(iii) should approach the plot of bh(t) as ∆ decreases. Do you observe this to be the case?

Hint: In order for you to verify that your answers for parts (i)-(iii) above are correct, you are provided with the following partial results (i.e., a few data points):

(i) Vout(0.5 ms) = 0.0393 V, Vout(1 ms) = 0.0632 V, Vout(1.5 ms) = 0.0383 V (ii) Vout(0.5 ms) = 0.0787 V, Vout(1 ms) = 0.0477 V, Vout(1.5 ms) = 0.0289 V (iii) Vout(0.5 ms) = 0.0638 V, Vout(1 ms) = 0.0387 V, Vout(1.5 ms) = 0.0235 V

Note that V denotes volts!

For R = 1 kΩ and C = 1 μF, determine the output when the input is

Vin(t) = [u(t) − u(t − 0 .01)] + 200(t − 0 .011)[u(t − 0 .011) − u(t − 0 .016)].

Hint: In order to verify the correctness of your answer, you are provided the following partial results (i.e., a few data points): Vout(2 ms) = 0.87 V, Vout(12 ms) = 0.21 V, Vout(18 ms) = 0.11 V, where V denotes volts.

Use the phasor circuit analysis you learned in EECS 215 to compute the frequency transfer function, H(jω).

Remark: Recall how this quantity is used in circuit analysis: if the input to the circuit is

Vin(t) = A cos(ωt),

then the output will be Vout(t) = A|H(jω)| cos(ωt + ∠H(jω))

Consequently, the frequency response function can be directly measured. We will see in class that the notion of a frequency response function makes sense for any LTI system, and not just for circuits! As an optional exercise, you may wish to compute

Γ(jω) ≡

−∞

h(t)exp(−jωt)dt

and see that is exactly equal to H(jω),? showing that the frequency response function can be computed directly from the impulse response. A little later in class, when we study Fourier transforms, we will see that it goes the other way Too: if you know the frequency response function, you can determine the impulse response function. Hence, being able to measure the frequency response function provides an alternative manner to determine the impulse response of the system.

Remark: You may evaluate the integral for Γ(jω) by breaking it into its real and imaginary parts via Euler’s formula, i.e.

Γ(jω) ≡

−∞

h(t) cos(ωt)dt − j

−∞

h(t) sin(ωt)dt

or by using the fact that (^) ∫

exp(−at)dt = −

a

exp(−at)

even when a is complex-valued.

Recall that ω is angular frequency in units of radians/s, and this quantity can be expressed in terms of the frequency, f , in units of cycles/s (or Hz) using the relationship ω = 2πf. Construct a table of |H(j 2 πfc)| and ∠|H(j 2 πfc)| (degrees) for the following values of fc: 50 Hz, 200 Hz, 500 Hz, 1kHz and 5kHz. Convert the phase delay, ∠|H(j 2 πfc)|, to a corresponding time-delay, τd, where 2πfcτd = −∠H(j 2 πfc) and H(j 2 πfc) is expressed in units of radians. Also include the time delay values in your table.

Hint: In order for you to verify that your answers are correct, you are given the following partial results: |H(j 2 π(200 Hz))| = 0.6227, ∠H(j 2 π(200 Hz)) = − 51 .4881 deg, and τd(j 2 π(200 Hz)) = 0.7151 ms.

Remark: The reason for doing these computations is related to the remark in the previous problem, namely, you can measure |H(j 2 πfc)| and ∠H(j 2 πfc) by applying cos(2πfct) at the input of the circuit and observing the output, and once you have measured the frequency response function , you can compute the impulse response if you need it.