19
David Giandomenico Basic Feedback Control 5/15/2012 David Giandomenico Team mentor for Lynbrook Robotics – FIRST #846 <[email protected]> Steady State Error in Feedback Control

David GiandomenicoBasic Feedback Control 5/15/2012 David Giandomenico Team mentor for Lynbrook Robotics – FIRST #846 David Giandomenico Team mentor for

Embed Size (px)

Citation preview

David Giandomenico Basic Feedback Control 5/15/2012

David GiandomenicoTeam mentor for

Lynbrook Robotics – FIRST #846<[email protected]>

David GiandomenicoTeam mentor for

Lynbrook Robotics – FIRST #846<[email protected]>

Steady State Error inFeedback Control

David Giandomenico Basic Feedback Control 5/15/2012

Open-Loop Control System

OutG E.S.C.

+

+

Input Speed or Position(joystick,preset button,autonomous, etc.)

David Giandomenico Basic Feedback Control 5/15/2012

Simple SystemNo Feedback – “Open Loop”

In OutHH

CPU+ESC+Motor+Robot

David Giandomenico Basic Feedback Control 5/15/2012

System Error

In Out

David Giandomenico Basic Feedback Control 5/15/2012

Feedback System“Closed Loop”

In Out+

HAError

= ( In – Out) CPU ESC + Motor + Robot

David Giandomenico Basic Feedback Control 5/15/2012

Feedback System“Closed Loop”

In Out+

HAError

= ( In-Out) CPU ESC + Motor + Robot

David Giandomenico Basic Feedback Control 5/15/2012

Error in Feedback System

In Out+

AError

= ( In-Out) CPU ESC + Motor + Robot

David Giandomenico Basic Feedback Control 5/15/2012

Feedback System w/Feed Forward

In Out(Velocity)

+

H

Error = (Out – In)

CPU

ESC + Motor + Robot

+

A

David Giandomenico Basic Feedback Control 5/15/2012

Feedback Systemw/Feed Forward

InOut

+

HAError= ( Out-In) CPU ESC + Motor + Robot

+

David Giandomenico Basic Feedback Control 5/15/2012

Feedback Systemw/Feed Forward

InOut

+

HAError

= (Out-In) CPU ESC + Motor + Robot

+

David Giandomenico Basic Feedback Control 5/15/2012

Static Error in Feedback Systemw/Feed Forward

InOut

+

HAError

= (Out-In) CPU ESC + Motor + Robot

+

David Giandomenico Basic Feedback Control 5/15/2012

Comparison: Steady State Error

Open Loop   0.1   Out/In 0.90   Error 0.10 10.00%

Basic Closed Loop   A 15

  0.1   H(s) = 1+ 1.1   AH(s) 16.5

  System Gain (Target=1.00)  Out/In 0.94286   Error -0.05714 -5.71%  Estimate of Error:

  =[A(1+)]-1 -0.06061 -6.06%

With Feed-Forward A 15

0.1 H(s) = 1+e 1.1 AH(s) 16.5

System Gain (Target=1.00) Out/In 1.0057 Error 0.00571 0.57% Estimate of Error:

=/A 0.007 0.67%

David Giandomenico Basic Feedback Control 5/15/2012

David GiandomenicoTeam mentor for

Lynbrook Robotics – FIRST #846<[email protected]>

David GiandomenicoTeam mentor for

Lynbrook Robotics – FIRST #846<[email protected]>

Steady State Error inFeedback Control

David Giandomenico Basic Feedback Control 5/15/2012

Error in System

In OutH

David Giandomenico Basic Feedback Control 5/15/2012

Feedback System“Closed Loop”

In Out

OutHInGOut

G

H

HG

G

In

Out

1

OutHGInGOut

+

David Giandomenico Basic Feedback Control 5/15/2012

Undesired Feedback Path

)()()( fOutputfVolumefInput

David Giandomenico Basic Feedback Control 5/15/2012

Tip: Setting Gain Fast

Option 1: Recompile and upload. Bleah!

Option 2: Attach a potentiometer to an analog input (once adjusted, hardwire in code). Not Bad!

Option 3: Use EEPROM/Flash Memory to save values. Access values through Operator Interface buttons. Display values on robot or OI. Way Cool!

David Giandomenico Basic Feedback Control 5/15/2012

Simple Speed and Position Test Setup

Neodymium MagnetQty 2, for balance.

(see the web, eBay!)

R/C Hobby Prop Adapter, 1/8”

Custom disk with holes for shaft and magnets

Hall effect magnetic sensor<$2 at digikey or mouser

David Giandomenico Basic Feedback Control 5/15/2012

Closed-Loop Control System

Yet more sensors:Accelerometers & GyrosOptical Distance Meas.Cameras,Ultrasonic:

Yet more sensors:Accelerometers & GyrosOptical Distance Meas.Cameras,Ultrasonic:

OutG

SensorPotentiometer, Encoder,

Gear Tooth Sensor, Hall effect Sensor, …

E.S.C.

+

+

Input Speed or Position(joystick,preset button,autonomous, etc.)