ece317 : feedback and controlweb.cecs.pdx.edu/~tymerski/ece317/ece317 l4_model_electmech.pdf ·...

20
ECE317 : Feedback and Control Lecture: Modeling of electrical & mechanical systems Dr. Richard Tymerski Dept. of Electrical and Computer Engineering Portland State University 1

Upload: others

Post on 02-Jun-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

ECE317 : Feedback and Control

Lecture:Modeling of electrical & mechanical systems

Dr. Richard Tymerski

Dept. of Electrical and Computer Engineering

Portland State University

1

Page 2: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Course roadmap

2

Laplace transform

Transfer function

Block Diagram

Linearization

Models for systems

• electrical

• mechanical

• example system

Modeling Analysis Design

Stability

• Pole locations

• Routh-Hurwitz

Time response

• Transient

• Steady state (error)

Frequency response

• Bode plot

Design specs

Frequency domain

Bode plot

Compensation

Design examples

Matlab & PECS simulations & laboratories

Page 3: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Controller design process (review)

• What is the “mathematical model”?

• Transfer function

• Modeling of electrical & mechanical systems

3

plantInput OutputRef.

Sensor

ActuatorController

Disturbance

1. Modeling

Mathematical model

2. Analysis

Controller

3. Design

4. Implementation

Page 4: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Mathematical model

• Representation of the input-output (signal) relation of a physical system

• A model is used for the analysis and design of control systems.

4

Physical

system

Model

Modeling

Input Output

Page 5: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Important remarks on models

• Modeling is the most important and difficult task in control system design.

• No mathematical model exactly represents a physical system.

• Do not confuse models with physical systems!

• In this course, we may use the term “system” to mean a mathematical model.

5

Page 6: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Course roadmap

6

Laplace transform

Transfer function

Block Diagram

Linearization

Models for systems

• electrical

• mechanical

• example system

Modeling Analysis Design

Stability

• Pole locations

• Routh-Hurwitz

Time response

• Transient

• Steady state (error)

Frequency response

• Bode plot

Design specs

Frequency domain

Bode plot

Compensation

Design examples

Matlab & PECS simulations & laboratories

Page 7: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Transfer function

• A transfer function is defined by

• A system is assumed to be at rest. (zero initial condition)

• Transfer function is a generalization of “gain” concept.

7

Laplace transform of system output

Laplace transform of system input

input output

Page 8: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Impulse response

• Suppose that r(t) is the unit impulse function and system is at rest.

• The output g(t) for the unit impulse input is called unit impulse response.

• Since R(s)=1, the transfer function can also be defined as the Laplace transform of impulse response:

8

System

Page 9: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Course roadmap

9

Laplace transform

Transfer function

Block Diagram

Linearization

Models for systems

• electrical

• mechanical

• example system

Modeling Analysis Design

Stability

• Pole locations

• Routh-Hurwitz

Time response

• Transient

• Steady state (error)

Frequency response

• Bode plot

Design specs

Frequency domain

Bode plot

Compensation

Design examples

Matlab & PECS simulations & laboratories

Page 10: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Models of electrical elements

10

v(t)

i(t)

R

Resistance CapacitanceInductance

v(t)

i(t)

L v(t)

i(t)

C

Laplace

transform

Impedance

Page 11: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Modeling example

• Kirchhoff voltage law (with zero initial conditions)

• By Laplace transform,

11

v1(t)

i(t)

R2Input

R1

v2(t) Output

C

Page 12: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Modeling example (cont’d)

• Transfer function

• If output is i(t), then ….

12

v1(t)

i(t)

R2Input

R1

v2(t) Output

C

(first-order system)

Page 13: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Modeling example (cont’d)

• Impedance method• Replace electrical elements with impedances.

• Deal with impedances as if they were resistances.

13

V1(s) R2Input

R1

V2(s) Output

1/(sC)

Page 14: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Impedance computation

• Series connection

• Parallel connection

14

V(s)

I(s)

Z1(s) Z2(s)

V(s)

I(s) Z1(s)

Z2(s)

Page 15: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Operational amplifier (op-amp)

• Electronic voltage amplifier

• Basic building block of analog circuits, such as• Voltage summation (math operation)

• Voltage integration

• Various transfer functions (Signal conditioning, filtering)

• Ideal op-amp (does not exist, but is a good approximation of reality)

15

-

+

i-

vd voutVd=0

i-=0

Page 16: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Modeling of op-amp

• Impedance Z(s): V(s)=Z(s)I(s)

• Transfer function of the above op amp:

16

vdVi(s)

I(s)

Input

Zi(s)

Vo(s) Output

-

+

i-

Vd=0

i-=0Zf(s)

Page 17: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Modeling example: op-amp

• By the formula in previous two slides,

17

vi(t)

i(t)

R2

Input

R1

vo(t) Output

C

-

+

i-

vd

vd=0

i-=0

(first-order system)

Page 18: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Course roadmap

18

Laplace transform

Transfer function

Block Diagram

Linearization

Models for systems

• electrical

• mechanical

• example system

Modeling Analysis Design

Stability

• Pole locations

• Routh-Hurwitz

Time response

• Transient

• Steady state (error)

Frequency response

• Bode plot

Design specs

Frequency domain

Bode plot

Compensation

Design examples

Matlab & PECS simulations & laboratories

Page 19: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Translational mechanical elements

19

Mass DamperSpring

M

f(t)x(t) f(t)

x1(t)

Kx2(t)

f(t)

f(t)x1(t)

B x2(t)

f(t)

Page 20: ECE317 : Feedback and Controlweb.cecs.pdx.edu/~tymerski/ece317/ECE317 L4_Model_ElectMech.pdf · ECE317 : Feedback and Control Lecture: ... •Suppose that r(t) is the unit impulse

Summary

• Modeling• Modeling is an important task!

• Mathematical model

• Transfer function

• Modeling of electrical & mechanical systems

• Next lecture, block diagram reduction

20