Professional Documents
Culture Documents
Robert Stengel Robotics and Intelligent Systems MAE 345, Princeton University, 2011
Inner Loop
Small Amplitude Fast Response High Bandwidth
Inner, Middle, and Outer Feedback Control Loops Step Response of Linear, TimeInvariant (LTI) Systems Position and Rate Control Transient and Steady-State Response to Sinusoidal Inputs
Middle Loop
Moderate Amplitude Medium Response Moderate Bandwidth
Outer Loop
Large Amplitude Slow Response Low Bandwidth
Feedback
Error between command and feedback signal drives next inner-most loop
Copyright 2011 by Robert Stengel. All rights reserved. For educational use only. http://www.princeton.edu/~stengel/MAE345.html
Middle Loop
Focus on operation of the robot
Outer Loop
Focus on goals for robot operation
Dynamics
Delays Dead Zones Saturation Coupling
Structure
Layout Insulation Circulation Multiple Spaces
External Effects
Solar Radiation Air Temperature Wind Rain, Humidity
Control Law [i.e., logic that drives the control variable, u(t)]
" $ 1 (on ), e(t ) > 0 u (t ) = # $ 0 (off ), e(t ) ! 0 % where e(t ) = yc (t ) & y(t ) = uc (t ) & ub (t )
yc: Desired output variable (command) y: Actual output u: Control variable (forcing function) e: Control error
...but control signal would chatter with slightest change of temperature Solution: Introduce hysteresis to slow the switching cycle
Angular Rate
" $ 0, t < 0 yC (t ) = # $ 1, t ! 0 %
1 c c y(t ) = ! u (t ) dt = ! e(t ) dt = J0 J0 J
! [ y (t ) " y(t )] dt
c 0
where
! = c/J = eigenvalue or root of the system (rad/sec) " = J/c = time constant of the response (sec)
Angular Position
y(t ) =
1 c u (t ) dt dt = ! J! J 0 0
t t
! ! e(t ) dt dt =
0 0
t t
c J
! ![y
0 0
t t
" y(t )] dt dt
! x !1 (t ) # !2 (t ) x # "
!1 (t ) = x2 (t ) x u (t ) c c !2 (t ) = = [ yc ! y(t )] = [ yc ! x1 (t )] x J J J
u (t ) = c [ yc (t ) ! y1 (t )] = c [ yc (t ) ! x1 (t )]
! x !1 (t ) # !2 (t ) x # "
1 $ ! x1 (t ) &# 0 % # x2 (t ) "
u (t ) = c1 [ yc (t ) ! y1 (t )] ! c2 y2 (t )
% Step Response of Undamped Angle Control F1 G1 F2 G2 F3 G3 Hx = = = = = = = [0 1;-1 0]; [0;1]; [0 1;-0.5 0]; [0;0.5]; [0 1;-0.25 0]; [0;0.25]; [1 0;0 1]; = ss(F1,G1,Hx,0); = ss(F2,G2,Hx,0); = ss(F3,G3,Hx,0);
! y (t ) # 1 # y2 ( t ) "
$ & & %
! # # "
$ & yc & %
step(Sys1,Sys2,Sys3)
dy1 ( t ) dt
step(Sys1,Sys2,Sys3)
u(t ) = u c (t ) ! Cy(t )
( t ) = F x ( t ) + Gu( t ) + Lw( t ) x y ( t ) = H x x ( t ) + H u u( t )
u(t ) = u c (t ) ! Cy(t )
u(t ) = C c y c (t ) ! Cy(t )
x * (t ) = ! [ F ! GCH x ] GC c y c * (t )
!1
Command gain adjusts the steady-state response Has no effect on the stability of the system
( t ) = F x ( t ) + Gu( t ) + Lw( t ) x y ( t ) = H x x ( t ) + H u u( t )
System has a natural frequency of oscillation, #n Long-term response to a sine wave is a sine wave
System Dynamics Produces Differences in Amplitude and Phase Angle of Input and Output
Amplitude Ratio ( AR) = Phase Angle = !360 y peak yC peak , deg
c1 /J = 1; c2 /J = 2.828
With damping, transient response decays In this case, damping has negligible effect on long-term response
Effect of Input Frequency on Output Amplitude and Phase Angle y (t ) = sin ( t / 6.28 ) , deg
c
c1 /J = 1; c2 /J = 1.414
y c ( t ) = sin( t ), deg
With low input frequency, input and output amplitudes are about the same Lag of angle output oscillation, compared to input, is small Rate oscillation leads angle oscillation by ~90 deg
c1 /J = 1; c2 /J = 1.414
! Transfer function based on the Laplace transform of the system = Bode Plot
Hendrick Bode
% Frequency Response of DC Motor Angle Control F1 = [0 1;-1 0]; G1 = [0;1]; F1a = [0 1;-1 -1.414]; F1b = [0 1;-1 -2.828]; Hx = [1 0;0 1]; Sys1 Sys2 Sys3
20log AR and ! vs. log "