Robot Motion Forward and Inverse Kinematics – Next quarter PID Control

Slides:



Advertisements
Similar presentations
Feedback Control Weapons ON Target
Advertisements

Feedback Control/ Automatic Tracking This is really stupid
Feedback Control Dynamically or actively command, direct, or regulate themselves or other systems.
Lecture 20 Dimitar Stefanov. Microprocessor control of Powered Wheelchairs Flexible control; speed synchronization of both driving wheels, flexible control.
Unit 4 Sensors and Actuators
Lecture Outline  DC motors  inefficiencies, operating voltage and current, stall voltage and current and torque  current and work of a motor  Gearing.
1 CMPUT 412 Actuation Csaba Szepesvári University of Alberta TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A.
Introduction to Robotics In the name of Allah. Introduction to Robotics o Leila Sharif o o Lecture #2: The Big.
CMRoboBits: Actuators, Motion Manuela Veloso Nick Aiwazian Sonia Chernova Thanks to Jim Bruce, Scott Lenser, and Doug Vail , Fall 2003 Carnegie Mellon.
PPT ON ROBOTICS AEROBOTICSINDIA.COM. ROBOTICS WHAT IS ROBOTICS THE WORD ROBOTICS IS USED TO COLLECTIVILY DEFINE A FIELD IN ENGINEERING THAT COVERS THE.
Introduction to Robotics Principles of Robotics. What is a robot? The word robot comes from the Czech word for forced labor, or serf. It was introduced.
EKT314/4 Electronic Instrumentation
Definition of an Industrial Robot
1  Actuators are used in order to produce mechanical movement in robots.
Ch. 6 Single Variable Control
System & Control Control theory is an interdisciplinary branch of engineering and mathematics, that deals with the behavior of dynamical systems. The desired.
1 L Fall 2003 – Introductory Digital Systems Laboratory Motors and Position Determination.
Getting the Most From Your Motors
20/10/2009 IVR Herrmann IVR: Introduction to Control OVERVIEW Control systems Transformations Simple control algorithms.
Balance Bot DT04 Stephan Baranoff Nicole Beck Chris Hamrock Stephanie Kosec Dr. Sastry Balance Bot DT04 Stephan Baranoff Nicole Beck Chris Hamrock Stephanie.
Unit 4: Electromechanical drive systems An Introduction to Mechanical Engineering: Part Two Electromechanical drive systems Learning summary By the end.
Control 1 Keypoints: The control problem Forward models: –Geometric –Kinetic –Dynamic Process characteristics for a simple linear dynamic system.
Robotics Sharif In the name of Allah. Robotics Sharif Introduction to Robotics o Leila Sharif o o Lecture #2: The.
Control Systems Engineering
Control Theory Control System Objectives  Establish a final condition  Provide safe operation  Eliminate the human element  Assure economical operation.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
ME 431 System Dynamics Dept of Mechanical Engineering.
M. Zareinejad 1. 2 Outline # Sensors –––– Sensor types Sensor examples #Actuators Actuator types Actuator examples ––––
* PowerPoint Presentation *
Speed, Power, Torque and DC Motors
Arms, Legs, Wheels, Tracks, and What Really Drives Them Effectors and Actuators.
INTRODUCTION TO ROBOTICS Part 3: Propulsion System Robotics and Automation Copyright © Texas Education Agency, All rights reserved. 1.
Control Engineering. Introduction What we will discuss in this introduction: – What is control engineering? – What are the main types of control systems?
BASIC CONCEPTS OF CONTROL SYSTEM SEM :- V CONTROL ENGINEERING ENROLLMENT NO: GUIDED BY PROF. S.P.PATEL.
بسم الله الرحمن الرحيم وبه نستعين
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
CNC FEED DRIVES Akhil Krishnan G M.Tech 1. CONTENTS 1.Introduction 2.Requirements of CNC feed drives 3.Servo motor 3.1 Servo drive control 3.2 Components.
Robot Actuators.
CNC FEED DRIVES.
Track-While-Scan (TWS)
Author: Nurul Azyyati Sabri
ELECTRICAL MACHINES Electrical Machines.
INTRODUCTION TO ELECTRONIC INSTRUMENTATION
Speed, Power, Torque & DC Motors
The Clutch Control Strategy of EMCVT in AC Power Generation System
Chapter 1: Overview of Control
PID Control Systems (Proportional, Integral, Derivative)
Classical Design of Wind Turbine Controllers
Servo Systems Servo is mechanism based on feedback control.
Informally Parameters and properties of DC Motors
What Is an Electric Motor? How Does a Rotation Sensor Work?
ECE 382. Feedback Systems Analysis and Design
Introduction to Control Systems Objectives
DC MOTOR SPEED CONTROL 1. Introduction
Servo Systems Servo is mechanism based on feedback control.
Balanduino Supervisor: Dr. Raed Al-Qadi Prepared by: Nadeen Kalboneh Nardeen Mabrouk.
Motor Drive Prof. Ali Keyhani. Modern Variable Speed System A modern variable speed system has four components: 1. Electric Motor 2. Power Converter -
Dynamic Controllers for Wind Turbines
Linear Control Systems
NC,CNC machines and Control Programming.
Digital Control Systems Waseem Gulsher
Overview of Control System
IENG 475: Computer-Controlled Manufacturing Systems
Motors and Position Determination
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstroms by Ferrari, Ferrari, and Hempel.
Chapter 5 Operational Amplifiers
IENG 475: Computer-Controlled Manufacturing Systems
Introduction to Motor Drives
Chapter 4 . Trajectory planning and Inverse kinematics
Geartrains Materials taken from several sources including: Building Robots with LEGO Mindstroms by Ferrari, Ferrari, and Hempel.
Presentation transcript:

Robot Motion Forward and Inverse Kinematics – Next quarter PID Control Frame-Based Motions on the AIBO Modeling Effects of Motions

Automatic Control Systems, Servos, Automatic Tracking, Feedback Control

Automatic Control Systems VOCABULARY: Automatic Control Systems Automatic: able to activate, move or regulate itself. Control: command, direct, rule, check, limit, restrain, regulate or operate. System: a group or combination of interrelated, independent, or interacting elements forming a collective entity. Control engineering is concerned with modifying the behavior of dynamical systems to achieve desired goals.

Control System Terminology Input - Excitation applied to a control system from an external source. Output - The response obtained from a system Feedback - The output of a system that is returned to modify the input. Error - The difference between the input and the output.

Types of Control Systems Open-Loop Simple control system which performs its function without concerns for initial conditions or external inputs. Must be closely monitored. Closed-Loop (feedback) Uses the output of the process to modify the process to produce the desired result. Continually adjusts the process.

Control Systems

Transducer or Sensor Factors

Open Loop Controller

Open Loop Controller An open-loop controller (or non-feedback controller) is a type of controller which computes its input into a system using only the current state and its model of the system The system does not observe the output of the processes that it is controlling Controller Motor Output Input

Open Loop Controller (cont…) Open-loop control is useful for well-defined systems where the relationship between input and the resultant state can be modeled by a mathematical formula For example determining the voltage to be fed to an electric motor that drives a constant load, in order to achieve a desired speed would be a good application of open-loop control

Open Loop Controller (cont…) An open-loop controller is often used in simple processes because of its simplicity and low-cost, especially in systems where feedback is not critical Generally, to obtain a more accurate or more adaptive control, it is necessary to feed the output of the system back to the inputs of the controller

Open-loop control Advantages: Disadvantages: Stability not a problem Cheaper than closed-loop Can be used even if output cannot be measured Disadvantages: Changes in system or disturbances ? errors Periodic calibration required

Closed Loop Controller

Example of a simple Control in Closed Loop

Closed Loop Controller Closed-loop controllers have the following advantages over open-loop controllers: Disturbance rejection (such as unmeasured friction in a motor) Guaranteed performance even with model uncertainties, when the model structure does not match perfectly the real process and the model parameters are not exact Unstable processes can be stabilized Reduced sensitivity to parameter variations Improved reference tracking performance

Closed Loop Controller A closed-loop controller uses feedback to control states or outputs of a dynamical system Process inputs have an effect on the process outputs, which is measured with sensors and processed by the controller; the result is used as input to the process, closing the loop Controller Motor Output Input Output Measurement Feedback

The General View of a Control Loop u

Feedback or Closed Loop System

PID Control Proportional Integral Derivative Control The Basic Problem: We have n joints, each with a desired position which we have specified Each joint has an actuator which is given a command in units of torque Most common method for determining required torques is by feedback from joint sensors

What is PID Control? Proportional, Integral, & Derivative Control Proportional: Multiply current error by constant to try to resolve error Integral: Multiply sum of previous errors by constant to resolve steady state error (error after system has come to rest) Derivative: Multiply time derivative of error change by constant to resolve error as quickly as possible

Feedback Signal is subtracted

Feedback Signal is subtracted Integrated circuit with differential amplifier Motor and gears rotate the wheel Potentiometer on the wheel Feedback Signal is subtracted

Proportional Controller Control Law Step response of the system for proportional control only

Complete PID controller Step response of the system for proportional plus integral plus derivative (PID) control. Control Law Kp = 20 KI = 75 KD = 0 time

Cruise Control

Example V = velocity, speed

All opposing forces Force created by motor Acceleration is derivative of speed

acceleration speed integrator Two terminologies

Closed-loop (feedback) control Advantages: Reduced sensitivity to: disturbance inputs parameter changes Can stabilize an open- loop unstable plant Can change system dynamics: speed of response accuracy reduce effect of non-linearities Disadvantages: Increased complexity and cost Risk of instability

Advantages of a Closed-Loop Feedback System Increased Accuracy Increased ability to reproduce output with varied input. Reduced Sensitivity to Disturbance By self correcting it minimizes effects of system changes. Smoothing and Filtering System induced noise and distortion are reduced. Increased Bandwidth Produces satisfactory response to increased range of input changes.

In general, the control system is more complex….

Designing control systems is complex … simplified stages of control system design…. Humanoid robot can have more than 43 variables to control

Major Types of Feedback Used Position Feedback Used when the output is a linear distance or angular measurement. Rate & Acceleration Feedback Feeds back rate of motion or rate of change of motion (acceleration) Motion smoothing Uses a electrical/mechanical device called an accelerometer

Target Tracking

In unstable system the periodic component would not disappear

Target Tracking Parameters Azimuth Elevation Range Relative Target Velocity Target’s motion with respect to the platform’s motion

Five Basic Functions of Angle-Tracking Servo Systems Sense position error (magnitude and direction) Provide position feedback Provide velocity feedback Provide data smoothing / stabilization Provide a power-driving device

Uses of Angle-Tracking Servo Systems Monotrack fire control radars Homing missiles Acoustic homing torpedoes Aviation fire control tracking systems

Motion Control System

3. Mechanical Transmission 4. Applications 1. Scope of Study 2. Servo System 3. Mechanical Transmission 4. Applications Motion Control System The primary purpose of the servo system is to control the motion of the load Motion Requirements Servo System Mechanical transmission

Motion Control System - Principles The digital ac servo system is typically available with three modes of operation: Torque Control Mode Velocity Control Mode Position Control Mode In other words, in order to control the position the torque and velocity should be controlled. Mechanical Transmission Servo System Motion Requirements

Motion Control System Example 2. Speed Regulator 3. AC Motor 1. Position Regulator AC supply Electronic commutator 4. Power Converter Desired output Position feedback Speed feedback The ac servo system consists of five major components. 5. Position Sensor

Motion Control System Most applications are more complicated than directly driving load. Common mechanical transmissions include : timing belts, gears, conveyors, leadscrews, and rack & pinion mechanism. Especially, the timing belt and gearbox can be utilized as a speed reducer, and the other are to be used as translators.

Motion Control System with linear motion Change to linear motion…... For instance, if the application requires linear motion of the load: a leadscrew, rack & pinion, or conveyor is used to translate the motor’s rotary motion into linear motion. Load Tacle Motor Coefficient of friction Optional Timing Belt or Gear Reducer Ball Nut Ball Screw

Linear Servo Systems Application of linear servo system: box packing

Troubles in Control Systems

Actuator Hysteresis

Mechanical Hysteresis

Mechanical Hysteresis - backlash

Friction

Electronic Hysteresis

Sony AIBO Robot Joint Angle Limits

Intelligent Complete Robot Perception Cognition Action Sensors Actuators External World

What is good about robots like AIBO? These concepts make up the low level functionality of the AIBO Implemented once and used repeatedly For more information about PID Control and Forward & Inverse Kinematics take Matt Mason’s Robotic Manipulation course

AIBO Actuators 18 degrees of freedom with a continuously controllable range of motion 3 DOF in each leg (12 total) 3 DOF in the head 2 DOF in the tail 1 DOF in the jaw Each joint is controlled by specifying to a desired joint angle to OVirtualRobotComm. 2 binary motors for the ears A speaker for general sound production

Motor Control Each message to OVirtualRobotComm contains a set of target angles for the joints Each target is used for a PID controller (part of the OS) that controls each motor Each target angle is used for one 8ms motor frame Each message contains at least 4 motor frames (32ms)

The Motion Interface Dynamic Walking Motion Static Frame-Based Motion Walk Parameters Motion Frames Walk Engine Frame Interpolator

Frame-Based Motion Each motion is described by a series of “frames” which specify the position of the robot, and a time to interpolate between frames Movement between frames is calculated through linear interpolation of each joint

Kicking A series of set positions for the robot Linear interpolation between the frames Kinematics and interpolation provided by CMWalkEngine Set robot in desired positions and query the values of the joints

Use of Kicks in Behaviors Modeling effects of kicking motions Ball vision analysis Ball trajectory angle analysis Kick strength analysis Kick selection for behaviors Selection algorithm Performance comparison

Kick Selection Incorporate the kick models into the selection algorithm The robot knows its position on the field relative to the goal and the desired ball trajectory The robot selects appropriate kick by referencing the kick model If no kick fits desired criteria, robot selects closest matching kick and turns/dribbles ball to appropriate position

Frame-Based Motion

Frame-Based Motion Each motion is described by a series of “frames” which specify the position of the robot, and a time to interpolate between frames Movement between frames is calculated through linear interpolation of each joint

Examples: Valid Motion Frames BodyPos(b,98,RAD(16)); HeadAng(b, 0.5, 1.5, 0.0); LegPos(b,0, 123, 85, 0); LegPos(b,1, 123,-85, 0); LegAng(b,2, 0.1, 0.0, 0.2); LegAng(b,3, 0.1, 0.0, 0.2); m[n].body = b; m[n].time = 100; n++; BodyPos(b,98,RAD(16)); HeadAng(b, 0.5, 1.5, 0.0); MouthAng(b,-.7); LegPos(b,0, 123, 85,0); LegPos(b,1, 123,-85,0); LegPos(b,2, -80 , 75,0); LegPos(b,3, -80 ,-75,0); m[n].body = b; m[n].time = 100; n++; LegAng(b,0, 0.0, 1.5, 0.0); LegAng(b,1, 0.0, 1.5, 0.0); LegAng(b,2, 0.1, 0.0, 0.2); LegAng(b,3, 0.1, 0.0, 0.2); m[n].body = b; m[n].time = 100; n++; m[n].body = b; m[n].time = 100; n++;

Defining a Frame The position of the robot in each frame can be described using any of the following: Position of the legs - in terms of angles of each joint or position of the foot in motion coordinates Angle of the head (tilt, pan, roll) Body height and angle Angle of the mouth struct BodyState{ BodyPosition pos; LegState leg[4]; HeadState head; MouthState mouth; };

Questions and Problems to Solve

What did we learn? Problem 1 Feedback control is a fundament of robot control Various kits (Lego Dacta Control Lab) have several demonstrations and project to explain the principles of feedback: Line following Speed control Temperature control (fan, lamp, sensor) Find on internet some of these kits and explanations of projects for high school.

What did we learn? Problem 2 Control of Many DOF robots is tough In addition to classical and modern control theory we use: fuzzy control genetic algorithms neural control bio-mimetic systems Review your control knowledge (for next quarter), but remember that in this class all knowledge is through programming. Describe a simple robot arm which uses fuzzy logic and a motor. Describe a mobile robot that uses a genetic algorithm and a motor. How FGA is used in relation to a motor?

Your task Problem 3 Learn about the particular servo that you plan to use. If the servo was not suggested by the professor, learn about servos that are available, calculate your project requirements for a servo and pick one. The more servos we order, the cheaper the price of one. If you do not want to use one of standard servos, your choices are: build your own servo from a DC motor. This is a big project by itself and you must have clear reasons to do so Use stepper motor. Remember that they are slow and weak, why you want to use them? You must be sure of your reasons

Your task Problem 4 Problem 5 Problem 6 Use hydraulic control. Why? You need to purchase or build your own actuator. Think about redesigning our horse leg with better syringes and oil instead of water. How can you connect the syringe to a stepper motor? Use pneumatic control. Read first the documentation of pneumatic hand or old Electric Horse. Talk to designers. Find pistons in Mondo-Tronics or other robot store. They are good. Use Nintinol or other similar actutors. They are good for face muscles or similar small and weak movements. Can they be used for a hexapod? I doubt, but try to convince me Before you do this, read the two-volume book of Conrad and Mills Problem 5 Problem 6

Formulas & Units useful to solve practical problems with motors and gears Unit conversions of interest 1lbs = 4.45 N 1 inch = 0.0254 meters 1 in-lbs = 0.11 N-m 1 RPM = 60 Rev / Hour = 0.105 Rad / Sec 1 mile = 5280 X 12 inches = 63,000 inches Power = Force (N) X Velocity (m/s) Power = Torque (N-m) X Angular Velocity (Rad/Sec) Electrical Power = Voltage X Current

Problems with Motor Characteristics Stall Current Torque v Speed Curves Stall Torque (T0) Stall Current (A0) Free Speed (Wf) Free Current (Af) K (slope) T0 Torque, Current Find these data for the motors that you use. Calculate the torque of your robot arm or mobile robot to solve problems that you want. Draw the Torque vs Speed Curve for your motor and check if this is what you expect. A0 Af Speed Wf Free Current

Slope-Intercept (Y=mX + b) Y=Motor Torque m=K (discuss later) X=Motor Speed b=Stall Torque (T0) K (slope) T0 Torque, Current A0 Af Speed Wf What is K? … It is the slope of the line. Slope = change in Y / change in X = (0 - T0)/(Wf-0) = -T0/Wf K = Slope = -T0/Wf How to calculate slope when the characteristic is not linear?

(Y=mX + b) Continued ... Y=Motor Torque m=K = -T0/Wf X=Motor Speed b=Stall Torque = T0 T0 (b) K (-T0/Wf) Torque, Current A0 Af Speed Wf Equation for a motor: Torque = (-T0/Wf) * Speed + T0 How to calculate torque in any point of the characteristic curve?

Current (Amps) and FIRST Speed Torque, Current T0 Wf Af A0 Cutoff Amps What are cutoff Amps? Max useable amps Limited by breakers Need to make assumptions Can our Motors operate above 30 amps? - Absolutely, but not continuous. When designing, you want to be able to perform continuously; so finding motor info at 30 amps could prove to be useful.

S @ 30A (W30) = (30 - A0) * Wf / (Af-A0) Torque at Amp Limit Speed Torque, Current T0 Wf Af A0 Cutoff Amps T30 = Torque at 30 Amps W30 = Speed at 30 Amps Current Equation: Current = (Af-A0)/Wf * Speed + A0 Motor Equation: Torque = (-T0/Wf) * Speed + T0 S @ 30A (W30) = (30 - A0) * Wf / (Af-A0) T @ 30A (T30) = (-T0/Wf) * W30 + T0

Power - Max vs. 30 Amps Speed Torque, Current T0 Wf Af A0 Power Power = Torque * Speed Must give up torque for speed Max Power occurs when: T = T0/2 & W=Wf/2 What if max power occurs at a current higher than 30A? Paul’s Tip #1: Design drive motor max power for 30A! Power is Absolute - It determines the Torque - Speed tradeoff!

Let’s Look at Some FIRST Motors Motor Comparisons Let’s Look at Some FIRST Motors Chiaphua Motor Drill Motor Johnson Electric Fisher-Price Motor We will compare T0, Wf, A0, Af, T30, W30, max power (Pmax), amps @ max power (Apmax), and power at 30 amps (P30). We will be using Dr. Joe’s motor spreadsheet updated to handle the new motors.

Motor Comparisons We will be using Dr. Joe’s motor spreadsheet updated to handle the new motors. Motor Equations: 1. Fisher-Price: T = (-0.51/20,000) * W + 0.51 2. Bosch Drill: T = (-0.65/20,000) * W + 0.65 3. Chiaphua: T = (-2.2/5,500) * W + 2.2

Combining Motors Using multiple motors is common for drive trains. We will look at matching the big 3 motors. I try to match at free speed, but you can match at any speed you like!! FP and drill will match 1:1 Wf FP(drill) / Wf Chiaphua = 20000/5500 = 40/11 Gear ratio to match Chip & FP(drill) is 40/11. We will use an efficiency of 95% for the match gear. More to come on Gear Ratio & Efficiency in the Second Half!

Combined Motor Data Motor Equations: 1. F-P & Drill: T = (-1.16/20,000) * W + 1.16 2. F-P & Chip: T = (-3.96/5,500) * W + 3.96 3. Drill & Chip: T = (-4.45/5,500) * W + 4.45 4. F-P, Drill, & Chip: T = (-6.21/5,500) * W + 6.21

NXT® motor internals for calculations Center of Mass of Lego Motors

NXT motor characteristics

The following charts show the characteristics of the NXT motor versus applied load. For the dark blue curves, the NXT was powered at 9V (voltage of alkaline batteries), the magenta ones were obtained at 7.2V (voltage of NiMH batteries). Power level is 100% for all charts.

This curve shows that the maximum mechanical power is obtained at a torque load of about 15 N.cm. If you compare to the curves obtained for the RCX with 71427 motor, you see that the available mechanical power is much higher, almost 4 times! Even powered with 7.2V NiMH batteries, the NXT can deliver more power than a RCX output with 2 paralleled motors and 9V supply. This comes with a price of course, the current drained at that power level is much higher - you better have good batteries...

The current vs. torque shows a linear increase with the load. Because of power limitations in NXT driver, and thermistor trip current in NXT motor, I suggest that you don't exceed a 15 N.cm torque for extended time periods. Higher loads (thus current drains) are possible for short periods, but the protections will soon reduce current and available power

Manuela Veloso Paul E. Rybski Sources Manuela Veloso Paul E. Rybski