MEAM 510 Fall 2012 Bruce D. Kothmann

Similar documents
MEAM 510 Fall 2011 Bruce D. Kothmann

Inverted Pendulum. Objectives

DC-motor PID control

Acceleration Feedback

General procedure for formulation of robot dynamics STEP 1 STEP 3. Module 9 : Robot Dynamics & controls

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Mechatronic System Case Study: Rotary Inverted Pendulum Dynamic System Investigation

Lecture 6: Control Problems and Solutions. CS 344R: Robotics Benjamin Kuipers

University of Utah Electrical & Computer Engineering Department ECE 3510 Lab 9 Inverted Pendulum

THE REACTION WHEEL PENDULUM

Application Note #3413

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

Rotary Inverted Pendulum

Multi Rotor Scalability

Harmonic Oscillator. Mass-Spring Oscillator Resonance The Pendulum. Physics 109 Experiment Number 12

Today. Why idealized? Idealized physical models of robotic vehicles. Noise. Idealized physical models of robotic vehicles

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Feedback Control of Linear SISO systems. Process Dynamics and Control

MECHATRONICS ENGINEERING TECHNOLOGY. Modeling a Servo Motor System

Robotics. Dynamics. Marc Toussaint U Stuttgart

The loop shaping paradigm. Lecture 7. Loop analysis of feedback systems (2) Essential specifications (2)

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

(Refer Slide Time: 00:01:30 min)

H :50 TR Hall H12 2-3:50 TR Cronk H :50 TR Swanbom H14 8-9:50 TR Barker :50 MW Swanbom :50 TR Cronk :50 TR Nelson

Welcome back to Physics 211

Angle estimation using gyros and accelerometers

Digital Pendulum Control Experiments

State Space Representation

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

Automatic Control Systems. -Lecture Note 15-

Angle estimation using gyros and accelerometers

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

Example: DC Motor Speed Modeling

Project Lab Report. Michael Hall. Hao Zhu. Neil Nevgi. Station 6. Ta: Yan Cui

DC Motor Position: System Modeling

System simulation using Matlab, state plane plots

The basic principle to be used in mechanical systems to derive a mathematical model is Newton s law,

Feedback Basics. David M. Auslander Mechanical Engineering University of California at Berkeley. copyright 1998, D.M. Auslander

Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Homework 7

Survey of Methods of Combining Velocity Profiles with Position control

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

(Refer Slide Time: 1:42)

Automatic Control (TSRT15): Lecture 1

Lab 6d: Self-Erecting Inverted Pendulum (SEIP)

Department of Mechanical Engineering

Real-Time Implementation of a LQR-Based Controller for the Stabilization of a Double Inverted Pendulum

FEEDBACK CONTROL SYSTEMS

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

Linear control of inverted pendulum

Robotics. Dynamics. University of Stuttgart Winter 2018/19

Physics 100 Reminder: for on-line lectures

Lecture «Robot Dynamics»: Dynamics and Control

Chapter 12 Static Equilibrium

α = p = m v L = I ω Review: Torque Physics 201, Lecture 21 Review: Rotational Dynamics a = Στ = I α

CS491/691: Introduction to Aerial Robotics

Torque. Introduction. Torque. PHY torque - J. Hedberg

Nonlinear Controller Design of the Inverted Pendulum System based on Extended State Observer Limin Du, Fucheng Cao

Unit 1: Equilibrium and Center of Mass

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

Chapter 6. Applications of Newton s Laws

2.004 Dynamics and Control II Spring 2008

Embedded Control: Applications and Theory

Chapter 5 The Force Vector

CDS 101: Lecture 2.1 System Modeling

Analog Signals and Systems and their properties

Lab 3: Quanser Hardware and Proportional Control

P - f = m a x. Now, if the box is already moving, for the frictional force, we use

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

Robot Manipulator Control. Hesheng Wang Dept. of Automation

Laboratory Exercise 1 DC servo

Lecture «Robot Dynamics»: Dynamics 2

A consideration on position of center of ground reaction force in upright posture

Chapter 5 Lecture. Pearson Physics. Newton's Laws of Motion. Prepared by Chris Chiaverina Pearson Education, Inc.

EE Homework 3 Due Date: 03 / 30 / Spring 2015

Sensors for mobile robots

Physics 201, Lecture 21

Solved Problems. Electric Circuits & Components. 1-1 Write the KVL equation for the circuit shown.

Harmonic Oscillator. Outline. Oscillatory Motion or Simple Harmonic Motion. Oscillatory Motion or Simple Harmonic Motion

Control of Mobile Robots

Overview of Experiments for Magnetic Torque

Unit 8: Part 2: PD, PID, and Feedback Compensation

Chapter 10: Dynamics of Rotational Motion

Classical Dual-Inverted-Pendulum Control

Balancing of an Inverted Pendulum with a SCARA Robot

Robotics & Automation. Lecture 25. Dynamics of Constrained Systems, Dynamic Control. John T. Wen. April 26, 2007

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Simple Harmonic Motion

Introduction to centralized control

9.1 Harmonic Motion. Motion in cycles. linear motion - motion that goes from one place to another without repeating.

Physics 8 Wednesday, October 25, 2017

1.7 Digital Logic Inverters

ECEn 483 / ME 431 Case Studies. Randal W. Beard Brigham Young University

Test Corrections Use these concepts to explain corrected answers. Make sure you apply the concepts to the specific situation in each problem.

Stable Limit Cycle Generation for Underactuated Mechanical Systems, Application: Inertia Wheel Inverted Pendulum

Physics 101 Lecture 12 Equilibrium

Design and Comparison of Different Controllers to Stabilize a Rotary Inverted Pendulum

Trajectory Planning, Setpoint Generation and Feedforward for Motion Systems

Lab 6a: Pole Placement for the Inverted Pendulum

Satellite Attitude Control System Design Using Reaction Wheels Bhanu Gouda Brian Fast Dan Simon

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Transcription:

Balancing g Robot Control MEAM 510 Fall 2012 Bruce D. Kothmann

Agenda Bruce s Controls Resume Simple Mechanics (Statics & Dynamics) of the Balancing Robot Basic Ideas About Feedback & Stability Effects of Proportional Feedback Two Key Observations About Integral Feedback Derivative Feedback Used to Stabilize Why PID Feedback of Arm Angle Won t Work Effect of Sensor Alignment Effect of Sloped Table What Will Work Some Implementation Issues Hall Effect Sensor for Wheel Angle Dealing with Accelerometer Noise & Rate Gyro Bias 10-Bit A/D and Amplifiers Sample Rate : Is Faster Always Better? Best Robots Invited to Demo in ESE 406 This Spring! MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 1

Inverted Pendulum MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 2

Inverted Pendulum Description M1 Microcontroller (PID Control) Encoder From Lego Motor 43362 EncoderGeek.com http://www.philohome.com/motors/motorcomp.htm MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 3

Ping Pong Poise MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 4

Ping Pong Poise Description This is a Fixed-Point Regulator Servo Motor Optical Voltage Divider M1 Digital Microcontroller (PD Control) MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 5

My Other Controls Design Experience MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 6

Simple Mechanics Part 1 : Static Equilibrium Q=Motor Torque Pin Shear Force 2r Weight F= Friction Normal Force l FBD of Body Weight Pin Shear Force Q=Motor Torque Sum Moments @ Center of Wheel Q rf Sum Moments @ Pin in Body Q mglsin mgl Sum Forces Parallel to Slope on Both Objects (Pin Shear Drops Out) sin M r F Mg Mg ml MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 7

Simple Mechanics Part 2 : Dynamic Instability l Weight Technically WRONG 2 but Qualitatively Sort of Close to Right Dynamics of the Body dt Q=Motor Torque d I Qmglsin Qmgl 2 Main Problem : Gravity is Like a Negative Spring If Pendulum Starts Falling, Gravity Makes it Fall Faster (Control Lawyers Call This a Dynamics Problem, Not Disturbance Problem) MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 8

Effects of Proportional Feedback 2 d Q K P I K 2 P mgl dt Proportional Feedback Gain Has To Be Large Enough to Create Net Positive Spring (Overcome Open-Loop Negative Spring) Beware of Destabilizing Effect of Delay (Due to Processing Time or Other Dynamics) Qt ( T) K ( t) P Position @ t+t Position @ t MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 9

Integral Feedback : A Simple Example Same Speed Requires More Throttle Example : Cruise Control Encountering a Hill Integral Feedback Throttle Change (Solid Lines) Proportional Feedback No Feedback Speed Change (Dashed Lines) MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 10

Key Observations About Integral Feedback To Reach Steady State (Equilibrium), Input to Integral Feedback MUST Be Zero! This Is Why Integral Feedback is so Powerful! This Is Why Integral Feedback is so Peril-ful! Integral Feedback is Very Often Destabilizing (Including in This Problem!) Integral Feedback Generally Implemented with Anti- Windup Feature What Happens to Integral Feedback if Car Encounters a Hill That is Too Steep for the Engine Power to Allow Car to Maintain Constant Speed? Details Can Get Complex & Matter a Lot for Good Performance MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 11

Effect of Sensor Alignment Attitude Sensor Won t Be Perfectly Aligned with Line Between Hinge & CG Static Equilibrim (See Below) Cannot Achieve =0! Even Integral Feedback (Which Acts Like K P Infinity) Fails! Cart ALWAYS Slowly Drifts Away! Q K K mgl P M P K mgl K P P M Effect Exaggerated for Clarity M MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 12

Effect of Slope M r ml Static Equilibrium (Overall CG Must Be Above Wheel Contact Point) Don t Want =0! Integral Feedback of Cannot Work on a Slope! Could Achieve Static Equilibrium with Exactly Right Value of Proportional Gain Only, But This Would Not Be Enough for Stability! Q Mgr mgl K P Torque Due to Feedback Must Equal Torque Required to Stay Upright MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 13

Human Operator! What Might Work? Use Wireless To Allow Operator to Command Lean Angle On Level Ground, Operator Cancels Installation Misalignment On Tilt, Operator Commands Lean Into the Hill Sufficient to Use PD Only? System Not Stable Without Operator, But Instability Slow Enough to Be Easily Compensated (Many Airplanes & Bicycles Are Like This) Use Wheel-Angle Feedback! Q K K P W Probably bl Want Derivative of Wheel Angle Too for Stability Arbitrary Steady Torque Can Be Achieved by Small Position Drift (Wheel Angle Change From Power-On Condition) This Fixes Both Installation Misalignment & Slope Effects! If Gains Make System Stable (You Need Equations to Know for Sure), Required Position Drift Happens Automagically! Hall Effect Sensor Can Measure Something Like (); Maybe Okay to Use PD Feedback on This? MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 14

Measuring Body Angle Accelerometer Sees Gravity as Negative Acceleration (General Relativity) But Accelerometer Also Sees Local Linear Acceleration (Due to Wheel Movement & Angular Acceleration Times Moment Arm) Accelerometer Has Noise, Especially at High Frequency 2 d a awheel r gsin 2 dt Body Angle Can Also Be Estimated by Integrating Angular Velocity, But This Will Drift (Because Angular Velocity Won t Read Exactly 0 at Rest) t (0) ( ) d 0 a MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 15

Complementary Filter : Combine a & Basic Idea Use Integral of angular velocity at high frequency (where a is noisy) Use (-a/g) at low frequency (where drift of angular velocity is bad) Theta = High Pass Filter Of + Integral of Low Pass Filter Of (-a/g) Need Digital Implementation of Integral & Filters Integrate High-Pass i i1 it ˆ ˆ i i1 i i1 Combine ˆ ˆ i i i Low-Pass ˆ ˆ 1 / i i 1 a i g MEAM 510 : Balancing Robot Control BDK : 2012-10-26 Page 16

Miscellaneous Implementation Issues Scaling of accelerometer voltage into A/D: you really only care about +/- ~5 deg, so make sure that range is 0 to 5 volts so you make good use of your 10-bit A/D (1024 Values) build a simple op-amp circuit? Very high processor speeds may cause problems, because digital filters may require very high precision. Also, digital filters are easiest to design with a fixed frame rate. MATLAB has a very convenient C2D function for converting analog filters to digital. Do you need to go faster than ~1000 Hz? I told a couple of lies earlier motor friction might allow proportional feedback to work on level ground & carpet might allow equilibrium on small slopes! But these effects are very unreliable (low robustness) Control designer wouldn t generally accept a design that exploited these effects MEAM 510 : Balancing Robot Control BDK BDK : 2012-10-26 : 26-Oct-2009 : Page 17