1
Cyber-Physical Systems Feedback Control
IECE 553/453– Fall 2019
- Prof. Dola Saha
Cyber-Physical Systems Feedback Control IECE 553/453 Fall 2019 - - PowerPoint PPT Presentation
Cyber-Physical Systems Feedback Control IECE 553/453 Fall 2019 Prof. Dola Saha 1 Control System in Action Honeywell Thermostat, 1953 Chrysler cruise control, 1958 Feedback Systems: An Introduction for Scientists and Engineers 2 Closed
1
2
Honeywell Thermostat, 1953 Chrysler cruise control, 1958
Feedback Systems: An Introduction for Scientists and Engineers
3
Plant Sensors Analog Interface Software ADC or input compare Compare Control Software Actuators
Noise Noise
Real state variables Desired state variables –X*(t) Sensor
Driving forces X’(t) Y(t) Control commands U(t) Errors E(t)=X*(t)-X(t) State estimator D(t)
Disturbing forces
X(t) Estimated state variables
4
Ø Control Action is independent of the output of the system Controller Plant Actuators
Desired state variables –X*(t) Control commands U(t) Driving forces D(t)
Noise
Disturbing forces Real state variables X(t)
5
Ø state estimator eliminated § not well suited for a complex plant Ø assumes disturbing forces have little effect on the plant Ø less expensive than closed-loop control § example: electric toaster
6
7
Ø Strategy § plant is a system that is intended to be controlled § collect information concerning the plant – data acquisition system (DAS) § compare with desired performance § generate outputs to bring plant closer to desired performance Ø You can’t control what you can’t measure
8
Ø Microcomputers are widely employed in control systems: § automotive ABS, ignition and fuel systems § household appliances § smart things § industrial robots § pacemakers Ø Why are we interested in Feedback Systems in CPS
9
Ø Closed-loop control § feedback loop implementation
§ sensors and state estimator produce representation/estimation of state variables § these values are compared to desired values § control software generates control commands based upon the differences between estimated and desired values
10
Ø Control action depends on the output of the system Controller Plant Actuators
Desired state variables –X*(t) Control commands U(t) Driving forces D(t)
Noise
Disturbing forces Real state variables X(t)
Sensors
11
ØIf you can see the pavement à Closed Loop Approach ØControl based on error: PID ØProportional : Change handle angle proportional to the current
ØDerivative : Large handle corrections when error is changing
ØIntegral : Handle corrections based on the cumulative error
12
Ø Open Loop Controller § Use trial and error to create relationship between velocity and voltage § Problems
Motor Velocity To Volts
Desired Velocity Actual Velocity
13
Ø Closed Loop Controller § Feedback is used so that the actual velocity equals the desired velocity § Can use an optical encoder to measure actual velocity
Controller Motor
Desired Velocity Actual Velocity Adjusted Voltage err
14
Ø Naive velocity to volts Ø Model motor with several
Ø Slow rise time Ø Stead-state offset
Motor Velocity To Volts
Desired Velocity Actual Velocity
Time (sec) Velocity
15
Ø Big error big = big adj Ø Faster rise time Ø Overshoot Ø Stead-state offset (there is still an
Controller
Desired Velocity (Vdes) Adjusted Volts (X) err
act des P des
V V K V X
+ =
Time (sec) Velocity Motor
Actual Velocity (Vact)
16
Ø When approaching desired velocity
Ø Faster rise time Ø Reduces overshoot
Controller
Desired Velocity (Vdes) Adjusted Volts (X) err
Time (sec) Velocity Motor
Actual Velocity (Vact)
dt t de K t e K V X
D P des
) ( ) (
=
17
Ø Integral term eliminates
Ø Increases overshoot
Controller
Desired Velocity (Vdes) Adjusted Volts (X) err
Time (sec) Velocity Motor
Actual Velocity (Vact)
= dt t e K t e K V X
I P des
) ( ) (
18
Ø Combined
Controller
Desired Velocity (Vdes) Adjusted Volts (X) err
Time (sec) Velocity Motor
Actual Velocity (Vact)
dt t de K dt t e K t e K V X
D I P des
) ( ) ( ) (
+ =
19
Ø Performance metrics § steady-state controller error
performance § transient response
§ stability
excursions
20
Ø Proportional
Ø Integral
Ø Derivative
Ø PID
d t i p
21
Ø Accuracy
§ Magnitude of the Error = Desired– Actual
Ø Stability
§ No oscillations
Ø Overshoot (underdamped, overdamped)
§ Ringing, slow
Ø Response Time to new steady state after
§ Change in desired setpoint § Change in load
tresponse
underdamped
22
23
Ø Manual Tuning Ø Ziegler–Nichols’ Tuning § Time Domain Method § Frequency Domain Method Ø Relay Feedback Ø Integrator Windup
24
Ø Wait for clock interrupt Ø Read input from sensor Ø Compute control signal Ø Send output to the actuator Ø Update controller variables Ø Repeat
25
26
desired angular velocity error signal net torque
27
Ø Controller only as good as its sensor Ø Observe everything “What was it thinking?” Ø Change one parameter at a time Ø Choose stability over responsiveness