EE 301 Lab 2 Convolution

Similar documents
EECS 2602 Winter Laboratory 3 Fourier series, Fourier transform and Bode Plots in MATLAB

LabQuest 24. Capacitors

Topic Astable Circuits. Recall that an astable circuit has two unstable states;

RC, RL and RLC circuits

Chapter 8 The Complete Response of RL and RC Circuits

Lab 10: RC, RL, and RLC Circuits

Continuous Time Linear Time Invariant (LTI) Systems. Dr. Ali Hussein Muqaibel. Introduction

Homework-8(1) P8.3-1, 3, 8, 10, 17, 21, 24, 28,29 P8.4-1, 2, 5

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

V L. DT s D T s t. Figure 1: Buck-boost converter: inductor current i(t) in the continuous conduction mode.

Laplace Transforms. Examples. Is this equation differential? y 2 2y + 1 = 0, y 2 2y + 1 = 0, (y ) 2 2y + 1 = cos x,

EECE 301 Signals & Systems Prof. Mark Fowler

Lecture 13 RC/RL Circuits, Time Dependent Op Amp Circuits

EE100 Lab 3 Experiment Guide: RC Circuits

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is

Signals and Systems Linear Time-Invariant (LTI) Systems

SOLUTIONS TO ECE 3084

δ (τ )dτ denotes the unit step function, and

Learning Objectives: Practice designing and simulating digital circuits including flip flops Experience state machine design procedure

( ) = Q 0. ( ) R = R dq. ( t) = I t

EECE 301 Signals & Systems Prof. Mark Fowler

6.2 Transforms of Derivatives and Integrals.

INDEX. Transient analysis 1 Initial Conditions 1

8. Basic RL and RC Circuits

Linear Circuit Elements

EE 313 Linear Signals & Systems (Fall 2018) Solution Set for Homework #8 on Continuous-Time Signals & Systems

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2008

CHAPTER 6: FIRST-ORDER CIRCUITS

MAE143A Signals & Systems - Homework 2, Winter 2014 due by the end of class Thursday January 23, 2014.

Voltage/current relationship Stored Energy. RL / RC circuits Steady State / Transient response Natural / Step response

R.#W.#Erickson# Department#of#Electrical,#Computer,#and#Energy#Engineering# University#of#Colorado,#Boulder#

6.003 Homework #8 Solutions

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

ECE 2100 Circuit Analysis

CHAPTER 2 Signals And Spectra

Y 0.4Y 0.45Y Y to a proper ARMA specification.

Chapter 1 Fundamental Concepts

Announcements: Warm-up Exercise:

Continuous Time. Time-Domain System Analysis. Impulse Response. Impulse Response. Impulse Response. Impulse Response. ( t) + b 0.

CHAPTER 12 DIRECT CURRENT CIRCUITS

Matlab and Python programming: how to get started

Homework 6 AERE331 Spring 2019 Due 4/24(W) Name Sec. 1 / 2

ADDITIONAL PROBLEMS (a) Find the Fourier transform of the half-cosine pulse shown in Fig. 2.40(a). Additional Problems 91

Signal and System (Chapter 3. Continuous-Time Systems)

EEEB113 CIRCUIT ANALYSIS I

Chapter 7 Response of First-order RL and RC Circuits

R =, C = 1, and f ( t ) = 1 for 1 second from t = 0 to t = 1. The initial charge on the capacitor is q (0) = 0. We have already solved this problem.

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

Electrical Circuits. 1. Circuit Laws. Tools Used in Lab 13 Series Circuits Damped Vibrations: Energy Van der Pol Circuit

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Constant Acceleration

ECE 2100 Circuit Analysis

EECE 301 Signals & Systems Prof. Mark Fowler

EXERCISES FOR SECTION 1.5

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

Chapter 2: Principles of steady-state converter analysis

UNIVERSITY OF CALIFORNIA AT BERKELEY

e 2t u(t) e 2t u(t) =?

2.4 Cuk converter example

( ) ( ) ( ) () () Signals And Systems Exam#1. 1. Given x(t) and y(t) below: x(t) y(t) (A) Give the expression of x(t) in terms of step functions.

Some Basic Information about M-S-D Systems

EECE251. Circuit Analysis I. Set 4: Capacitors, Inductors, and First-Order Linear Circuits

Chapter 2. First Order Scalar Equations

Final Spring 2007

+ γ3 A = I + A 1 (1 + γ + γ2. = I + A 1 ( t H O M E W O R K # 4 Sebastian A. Nugroho October 5, 2017

04. Kinetics of a second order reaction

Lab #2: Kinematics in 1-Dimension

EE 315 Notes. Gürdal Arslan CLASS 1. (Sections ) What is a signal?

Q1) [20 points] answer for the following questions (ON THIS SHEET):

Convolution. Lecture #6 2CT.3 8. BME 333 Biomedical Signals and Systems - J.Schesser

Problem Set #1. i z. the complex propagation constant. For the characteristic impedance:

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

Notes 04 largely plagiarized by %khc

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 1 Solutions

Phys1112: DC and RC circuits

10. State Space Methods

L1, L2, N1 N2. + Vout. C out. Figure 2.1.1: Flyback converter

EE 224 Signals and Systems I Complex numbers sinusodal signals Complex exponentials e jωt phasor addition

Spring Ammar Abu-Hudrouss Islamic University Gaza

EE202 Circuit Theory II , Spring. Dr. Yılmaz KALKAN & Dr. Atilla DÖNÜK

KEY. Math 334 Midterm III Winter 2008 section 002 Instructor: Scott Glasgow

Solutions - Midterm Exam

8.022 (E&M) Lecture 16

dv 7. Voltage-current relationship can be obtained by integrating both sides of i = C :

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux

Sterilization D Values

Direct Current Circuits. February 19, 2014 Physics for Scientists & Engineers 2, Chapter 26 1

LAB 5: Computer Simulation of RLC Circuit Response using PSpice

Demodulation of Digitally Modulated Signals

non-linear oscillators

Analytic Model and Bilateral Approximation for Clocked Comparator

Let us start with a two dimensional case. We consider a vector ( x,

ENGI 9420 Engineering Analysis Assignment 2 Solutions

EE363 homework 1 solutions

LAPLACE TRANSFORM AND TRANSFER FUNCTION

Chapter One Fourier Series and Fourier Transform

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Elementary Differential Equations and Boundary Value Problems

Block Diagram of a DCS in 411

6.003 Homework #9 Solutions

Transcription:

EE 301 Lab 2 Convoluion 1 Inroducion In his lab we will gain some more experience wih he convoluion inegral and creae a scrip ha shows he graphical mehod of convoluion. 2 Wha you will learn This lab will focus on using MATLAB o graphically porray convoluion. You will hen verify he effec of pulse widh spreading and oupu inerference. In he second par of his lab you will calculae he impulse response of an RC circui. You will hen compare your resuls wih an in-lab exercise. 3 Background Informaion and Noes None. 4 Guided Exercises a. Convoluion: Reproduce he following m-file scrip and run he program. %% Scrip M-file graphically demonsraes he convoluion process %% By B. P. Lahi, Linear Sysems and Signals, page 232, ex M2.4 %% Creae figure window and make visible on screen figure(1) x = inline('1.5*sin(pi*).*(>=0 & <1)'); h = inline('1.5*(>=0 & <1.5)-(>=2 & <2.5)'); dau = 0.005; au = -1:dau:4; i = 0; vec = -1:0.1:4; %% Pre-allocae memory y = NaN*zeros(1,lengh(vec)); for = vec %% Time index i = i+1; xh = x(-au).*h(au); lxh = lengh(xh); %% rapezoidal approximaion of inegral y(i) = sum(xh.*dau); subplo(2,1,1), plo(au,h(au), 'r-', au, x(-au), 'b--',,0,'ok'); 1

EE 301 Lab 2 Coninuous-ime convoluion axis([au(1) au(end) -2.0 2.5]); %% pach command is used o creae he gray-shaded area of convoluion pach([au(1:end-1); au(1:end-1); au(2:end); au(2:end)],... [zeros(1,lxh-1); xh(1:end-1); xh(2:end); zeros(1,lxh-1)],... [0.8 0.8 0.8], 'edgecolor','none'); xlabel('\au'); legend('h(\au)', 'x(-\au)','','h(\au)x(-\au)',3); c = ge(gca, 'children'); se(gca,'children', [c(2);c(3);c(4);c(1)]); subplo(2,1,2), plo(vec,y,'k',vec(i),y(i),'ok'); xlabel(''); ylabel('y()'); ile('y() = \in h(\au)x(-\au) d\au'); axis([au(1) au(end) -1.0 2.0]); grid; %% drawnow command updaes graphics windoe for each loop ieraion drawnow; %% Using he pause command allows one o manually sep hrough he %% convoluion process % pause; end Q 1. Exercising graphical convoluion: A he end of he program, ake a screen sho and include his in your lab repor. Q 2. Comparing wih HW2 Prob4: Modify he program o graphically show your resul of EE301 HW2 Problem 4. Provide wo versions; one wih he appropriae pulse spacing and one wihou he appropriae pulse spacing. You may jus use wo pulses insead of a rain of pulses and you may modify he locaion of he pulses. b. RC circui The RC circui shown below is an example of an LTI sysem. The sysem inpu is he volage V in () and he sysem oupu is he volage across he capacior, V ou ().

EE 301 Lab 2 Coninuous-ime convoluion Q 3. 1 s order differenial equaion: Wih he use of Kirchoff s volage law and he relaionship beween curren and volage in a capacior, show ha: dvou () RC Vou ( ) Vin ( ). d The soluion o he above equaion is: /( RC) 1 ( )/( RC) Vou ( ) V0e e Vin ( ) d, 0, RC 0 where we will assume he iniial condiion of he volage across he capacior is zero, or V 0 = 0 vols. c. Impulse Response of RC circui To obain he impulse response of he RC circui, we mus supply an impulse funcion (dela funcion) as he inpu. However, a dela funcion is no a physically realizable signal, and even if i were available, we may fry or damage he circui. We mus hen resor o he Heaviside uni sep funcion o help us obain he impulse response. Remember ha we can use wo uni sep funcions o creae a recangular pulse signal. This recangular pulse signal can be used o approximae he dela funcion as he widh of he pulse becomes sufficienly small. Le us define he pulse as, 1 p ( ) u u for 0, d. Sep Response of RC circui The convoluion inegral allows us o obain he sysem response, y(), if we know he sysem s impulse response, h(), and he inpu signal, x(). The oupu is hen, y( ) x( ) h( ) x h d x h d, where he symbol * denoes he convoluion operaion. The sep response, y s (), is found by applying a Heaviside sep funcion as he inpu, or x() = u(). Thus, y ( ) u( ) h( ) h u d h d, s since he Heaviside sep funcion evaluaes o 1 for - τ > 0 and 0 for - τ < 0. By aking he derivaive wih respec o ime of y s () we find ha, dys () d h d h( ). d d The above resul ells us ha he impulse response h() can be compued by calculaing he derivaive of he sep response wih respec o ime. 3

EE 301 Lab 2 Coninuous-ime convoluion Q 4. Obain y s (): Using he resul of he 1 s order differenial equaion ha relaes V in () o V ou (), obain he sep response y s () = V ou () if he inpu is a Heaviside sep funcion, u() = V in (). Aside: In some exbooks he Heaviside sep funcion is denoed as H() no u(). Q 5. Obain h(): Using he sep response, y s (), find he impulse response h(). Q 6. Obain pulse response par 1: Using he pulse p Δ (as defined above) as he inpu V in (), and using he impulse response h() ha you found in Q 5, deermine he oupu response V ou (). We will call his oupu response y (). Q 7. Obain pulse response par 2: Compue rule o evaluae lim 0 /( RC) e 1. lim y ( ). You can use l Hopial s 0 e. EXTRA CREDIT In-Lab Verificaion of Pulse Response: Build he RC circui on a prooboard, wih R = 1 kω and C = 1 μf. You may need o be flexible on he values of R and C. As a reference, you can plo he expeced capacior volage as a funcion of ime using Malab. Connec Channel 1 o measure V in () and Channel 2 o measure V ou (). Make sure ha he oscilloscope channels are se for DC coupling. Use he funcion generaor o produce a 100 mv pulse wih duraion of 1 ms. Collec he measured daa. Repea for a 200 mv pulse wih duraion 0.5 ms and again for a 1 V pulse wih duraion 0.1 ms. Leaving he duy cycle of he square wave o 50%, wha happens as you decrease he duraion of he pulse? In erms of he convoluion process, wha do you expec is happening? Can you devise a plan o obain he impulse response? Hin: I is imporan o consider he he ime consan of he RC circui. 5 Review 1. None.

EE 301 Lab 2 Coninuous-ime convoluion 6 Lab Repor 1. The firs page of your Lab repor should be a cover shee wih your name, USC ID and Lab #. Please noe ha all repors should be yped. 2. Answer all he quesions which were asked in he lab repor. Kindly display he code lines you execued o arrive a your answer along wih figures o suppor hem. Please give wrien explanaion or pu commen lines where necessary. Please noe ha each figure should have proper labels for he x and y axis and should have a suiable ile. 3. Answer he review quesions. 4. Submi a prinou of your compleed M-file documening all he lab exercises. 5