Experimental drawing of Nyquist and Bode diagrams

Similar documents
ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Class #16: Experiment Matlab and Data Analysis

ME 365 EXPERIMENT 7 SIGNAL CONDITIONING AND LOADING

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

Frequency Response Analysis and Design Tutorial

EK307 Passive Filters and Steady State Frequency Response

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

BME 3512 Bioelectronics Laboratory Six - Active Filters

EE 482 : CONTROL SYSTEMS Lab Manual

FREQUENCY RESPONSE AND PASSIVE FILTERS LABORATORY

DEGREE: Biomedical Engineering YEAR: TERM: 1

Real Analog - Circuits 1 Chapter 11: Lab Projects

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

EK307 Active Filters and Steady State Frequency Response

Experiment 1.A. Working with Lab Equipment. ECEN 2270 Electronics Design Laboratory 1

Open Loop Frequency Response

ECEN Network Analysis Section 3. Laboratory Manual

RLC Frequency Response

EE 210: CIRCUITS AND DEVICES

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

SIMULATION OF A SERIES RESONANT CIRCUIT ECE562: Power Electronics I COLORADO STATE UNIVERSITY. Modified in Fall 2011

Operational Amplifiers 2 Active Filters ReadMeFirst

Integrators, differentiators, and simple filters

ECE 2100 Experiment VI AC Circuits and Filters

Experiment 9 AC Circuits

Electrical Engineering. Control Systems. Comprehensive Theory with Solved Examples and Practice Questions. Publications

Lab 1: Simulating Control Systems with Simulink and MATLAB

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Use of the LTI Viewer and MUX Block in Simulink

EE422G Solution to Homework #8

3.2 Measuring Frequency Response Of Low-Pass Filter :

Discrete-Time Signal Processing (DTSP) v14

Laboratory 4: Amplification, Impedance, and Frequency Response

Magnetic Levitation System

Lecture 3 Complex Exponential Signals

Class #8: Experiment Diodes Part I

BME 3512 Bioelectronics Laboratory Two - Passive Filters

Frequency Selective Circuits

ECE 2201 PRELAB 6 BJT COMMON EMITTER (CE) AMPLIFIER

EE 210: CIRCUITS AND DEVICES

Low_Pass_Filter_1st_Order -- Overview

Lab 6: Building a Function Generator

CHARACTERIZATION OF OP-AMP

EE 210 Lab Exercise #5: OP-AMPS I

Operational Amplifier Circuits

Experiment 5.A. Basic Wireless Control. ECEN 2270 Electronics Design Laboratory 1

Laboratory 5: RC Circuits and Filtering

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

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

Lab 2 Operational Amplifier

Laboratory Experiment #1 Introduction to Spectral Analysis

Lab 4 An FPGA Based Digital System Design ReadMeFirst

EE 233 Circuit Theory Lab 3: First-Order Filters

Rectilinear System. Introduction. Hardware

Lecture Week 7. Quiz 4 - KCL/KVL Capacitors RC Circuits and Phasor Analysis RC filters Workshop

Experiment No. 4 The LM 741 Operational Amplifier

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Engineering Discovery

Chapter 3, Sections Electrical Filters

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

EE2210 Laboratory Project 1 Fall 2013 Function Generator and Oscilloscope

ECE411 - Laboratory Exercise #1

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

EXPERIMENT NUMBER 8 Introduction to Active Filters

Laboratory Project 4: Frequency Response and Filters

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

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

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore)

Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

E84 Lab 3: Transistor

DEPARTMENT OF ELECTRONIC ENGINEERING PRACTICAL MANUAL CONTROL SYSTEMS 3 CSYS 302

Lab Report 4: Root Locus and Proportional Controller

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)

Boise State University Department of Electrical and Computer Engineering ECE 212L Circuit Analysis and Design Lab

Fourier Signal Analysis

Discrete time systems (sampling data systems) 1 Theoretical aspects. 2 Aims. 3 Establish the sampling period (Ts) Lab. no. 9

Operational Amplifiers: Part II

Lab 9: Operational amplifiers II (version 1.5)

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Lab 13 AC Circuit Measurements

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Report

Motomatic via Bode by Frank Owen, PhD, PE Mechanical Engineering Department California Polytechnic State University San Luis Obispo

PERSONALIZED EXPERIMENTATION IN CLASSICAL CONTROLS WITH MATLAB REAL TIME WINDOWS TARGET AND PORTABLE AEROPENDULUM KIT

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

JNTUWORLD. 6 The unity feedback system whose open loop transfer function is given by G(s)=K/s(s 2 +6s+10) Determine: (i) Angles of asymptotes *****

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

CHARACTERISTICS OF OPERATIONAL AMPLIFIERS - II

Each individual is to report on the design, simulations, construction, and testing according to the reporting guidelines attached.

EE 230 Lab Lab 9. Prior to Lab

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

Sallen-Key_High_Pass_Filter -- Overview

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

, answer the next six questions.

The object of this experiment is to become familiar with the instruments used in the low noise laboratory.

Lab S-3: Beamforming with Phasors. N r k. is the time shift applied to r k

Laboratory 4 Operational Amplifier Department of Mechanical and Aerospace Engineering University of California, San Diego MAE170

Transcription:

Experimental drawing of Nyquist and Bode diagrams 1 Theoretical aspects Frequency response i.e. can be plotted in several ways; two of them are (1) as a polar plot, where the phasor length is the magnitude and the phasor angle is the phase known as Nyquist plot; and (2) as a function of, with separate magnitude and phase plots, called Bode plots. [Nice] Nyquist diagram is a complete theoretical and graphical tool, especially used in stability analysis, being less intuitive than other methods studied previously like root locus. Bode plots seem particularly familiar because of their common use for representing response data for such consumer items as audio systems. [Westphal] 2 Measurement setup Two ways are recommended in this lab to evaluate and make experimental investigation of the magnitude and phase response of OpAmp based circuits. 2.1 Practical measurements In figure 1 and 2, a real test setup is presented. Special attention must be paid to the use of ELAB-080. The TI board ASLkit offers the possibility of implementing simple analog circuits (figure 2). This part presumes as known the use of: - Signal generators - TL082 general purpose Op Amps - Oscilloscopes Figure 1 Experiment setup (Signal generator, circuit, oscilloscope) for response measurements

2.2 Numerical experiments Figure 2 A simple first order element on the ASL Kit (Texas Instruments) Using the Matlab/ Simulink/ Simscape simulator, the response measuremet can be accomplished if using the Simulink model in figure 3. This part involves good knowledges on how to configure the entire workspace in Matlab. Figure 3 OpAmp based circuit performed in Matlab/Simulink, Simscape 3 Solved problem 3.1 Drawing Nyquist diagram from data For the circuit in figure 1, the next steps are required to complete a short report on how obtain the Nyquist diagram: 1. Open the Matlab environment with current folder on /desktop/lab3 2. Open the file circuit1.slx and sketch the circuit on your notebook (maintain only the electronic components: Op-Amp, R and C) indicating the input and the output signals by u and y. 3. Open the companion file script_circuit1.m and briefly comment each command (in case one function is unknown, open the Matlab help).

Figure 4 Oscilloscope capture with the circuit response to an input of 159 Hz [channel A (red) input sinewave, channel B(blue)- the steady state response] 1 0.8 0.6 Raspunsul circuitului la semnal u(t)=sin(1000t) X: 0.05579 Y: 0.6848 intrare iesire 0.4 0.2 0 X: 0.05416 Y: 0.000212 X: 0.05655 Y: 4.901e-15-0.2-0.4-0.6-0.8-1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 Figure 5 Matlab Simulation 4. Fill in the next table for a given range of frequencies around the inverse of circuit time constant ( ) a. Measure (evaluate) the amplitude of the output signal in steady state (in figure 4, the output amplitude is 0.69 V),( in figure 5, the amplitude results more accurately, in 0.6848 V); b. The phase shift is measured in seconds underlining once again that the interest is over the steady state, ( in figure 4, 18.834ms- 16.560ms=2.274ms),( in figure 5, 0.05655-0.05416=0.00239 seconds); c. If using numerical simulations, than use the next structure for the table you have to fill in:

No. (rad/sec) (Hz) tu (sec.) ty (sec) [tu-ty] 6 1000 159.2 0.6848 0.05655 0.05416 0.00239 129.1447 d. The values for amplitude and phase shift (in sec.) are recorded in the table from your notebooks and manually typed in a new section in the current script. e. The rest of computations (like transforming the phase shift into radians) are strongly recommended to be made using Matlab. No. (rad/sec) (Hz) 1 100 15.9 1 31.778 ms 182.0745 2 143 22.7 0.97 20.457 ms 167.4428 3 200 31.8 0.96 14.49 ms 166.0432 4 250 39.8 0.95 11.221 ms 160.7290 5 500 79.6 0.88 5.114 ms 146.5053 6 1000 ( ) 159.2 0.69 2.274 ms 129.1447 7 2000 318.3 0.44 973.188 us 111.5191 8 4000 636.6 0.22 456.8 us 104.6908 9 5000 795.8 0.18 347.567 us 99.5706 10 7000 1114.1 0.13 243.297 us 97.5792 11 10000 1591.5 0.12 152.92 us 87.6167 5. Plot the 11 measured points using polar representation if considering the magnitude in and the argument in considered in degrees. After connecting by straight lines all the eleven points, the approximation of the Nyquist diagram will result. 6. Use the next script to compare the ideal shape and the one approximated by points. %% comparatie cu diagrama obtinuta in Matlab H=tf(-R2/R1,[C1*R2 1]); nyquist(h); hold % click dreapta pe spatiu alb si debifati "Negative frequencies" A_ss=[1,0.97,0.96,0.95,0.88,0.69,0.44,0.22,0.18,0.13,0.12]; Phi_ss=[182.0745, 167.4428,166.0432,160.7290,146.5053,129.1447,111.5191,104.690 8,99.5706,97.5792,87.6167]; Phi_ss_rad=deg2rad(Phi_ss); [re_m,im_m]=pol2cart(phi_ss_rad,a_ss); plot(re_m,im_m,'*r');hold;shg legend('diagrama bazata pe model','diagrama bazata pe masuratori')

Imaginary Axis 0.6 Nyquist Diagram diagrama bazata pe model diagrama bazata pe masuratori 0.4 0.2 0-0.2 Figure 6 Nyquist diagram (approximated by measurements vs. the ideal one in Matlab) 3.1.1 Drawing Bode diagrams Nr. măs. -0.4-1.2-1 -0.8-0.6-0.4-0.2 0 Real Axis 7. Fill in the next tabel Pulsaţia semnalului de intrare 20*lg( ) ] 1 100 2 143 3 200 4 250 5 500 6 1000 ( ) 7 2000 8 4000 9 5000 10 7000 11 10000 8. Plot in logarithmic scale the magnitude vs. the frequencies (magnitude characteristic). 9. Plot in logarithmic scale the phase shift vs. the frequencies (phase characteristic). 10. Use the next script (comment the commands in English) to make the comparison between the approximated and the ideal diagram. %% diagrama Bode close all H=tf(-R2/R1,[C1*R2 1]); A_ss=[1,0.97,0.96,0.95,0.88,0.69,0.44,0.22,0.18,0.13,0.12]; Phi_ss=[182.0745, 167.4428,166.0432,160.7290,146.5053,129.1447,111.5191,104.690 8,99.5706,97.5792,87.6167]; % se transforma modulul in decibeli A_ss_dB=20*log10(A_ss); % faza ramane in grade % vectorul cu pulsatiile wv=[100,143,200,250,500,1000,2000,4000,5000,7000,10000];

% vor fi 2 caracteristici separate subplot(211);title('caracteristca de modul') semilogx(wv,a_ss_db,'r*-');grid;hold subplot(212);title('caracteristca de faza') semilogx(wv,phi_ss,'r*-');grid;shg % comparatie cu caracteristica ideala hold wv_i=logspace(1,5,100);% generare pulsatii in scara logaritmica [modul_i,faza_i]=bode(h,wv_i); modul_i=squeeze(modul_i);faza_i=squeeze(faza_i); subplot(211);semilogx(wv_i,20*log10(modul_i)); legend('masurata','simulata'); subplot(212);semilogx(wv_i,faza_i); legend('masurata','simulata'); hold 5 0-5 -10-15 -20-25 -30-35 masurata simulata 10 2 10 3 10 4 10 5 200 180 160 140 120 100 masurata simulata 80 10 1 10 2 10 3 10 4 10 5 3.2 Questions Figure 7 Bode Diagram (measured vs. the ideal based on transfer function) 1. Indicate the phase shift and the amplitude for frequencies 100 lower/higher than the cutting ( ). 2. Describe the difference between linspace and logspace. 3. Describe the difference between plot and semilogx. 4 Problems Follow all the steps in section 3 in order to draw the experimental Nyquist and Bode diagrams for the circuit in figure 8 [R1= 1kΩ, R2= 1kΩ, R3==1kΩ, R4=2.2kΩ, R5= 1kΩ, C1= 1µF].

Figure 8 Analog circuit based on OpAmp