Servo Application Lecture Notes
Servo Application Lecture Notes
Inpu Outp
Controller Motor
t ut
Open Loop Controller (cont…)
1. 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
Output
Input Controller Motor Measurement
Output
Feedback
2. 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
The General View of a
Control Loop
e 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?
Potentiometer
on the wheel
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: • Disadvantages:
Reduced sensitivity to: Increased complexity
disturbance inputs and cost
parameter changes Risk of instability
Can stabilize an open- loop
unstable plant
Can change system dynamics:
speed of response
accuracy
reduce effect of non-linearities
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
1. Scope of Study Motion Control System
2. Servo System
3. Mechanical • The primary purpose of the servo
system is to control the motion of
Transmission the load
4. Applications
Motion
Requirements
Servo Mechanical
System transmission
Motion Control System - Principles
• The digital ac servo system is
• In other words, in order
typically available with three to control the position
modes of operation:
the torque and velocity
– Torque Control Mode should be controlled.
– Velocity Control Mode
– Position Control Mode
Motion
Requirements
Servo Mechanical
Transmission
System
Motion Control System Example
2. Speed 3. AC Motor
Regulator
1. Position
Regulator Electronic
AC supply
commutator 4. Power
Converter
Desired
output
Load
Tacle
Optional
Timing Belt or Ball Nut Ball Screw
Gear Reducer
Linear Servo
Systems
Sensors Actuators
External
External World
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
Motion Frames
Torque, Current
– Free Speed (Wf)
T0 K (slope)
– Free Current (Af)
Torque, Current
• Y=Motor Torque T0 K (slope)
Torque, Current
T0 (b)
• m=K = -T0/Wf K (-T0/Wf)
• X=Motor Speed A0
• b=Stall Torque = T0
Af
Speed Wf
Equation for a motor:
Torque = (-T0/Wf) * Speed + T0
Torque, Current
– Max useable amps T0
Cutoff
– Limited by breakers Amps
A0
– Need to make assumptions
Af
Speed
Can our Motors operate above 30 amps? Wf
Torque, Current
T0
• W30 = Speed at 30 Amps Cutoff
Current Equation: Amps
A0
Current = (Af-A0)/Wf * Speed + A0
Motor Equation: Af
Speed
Torque = (-T0/Wf) * Speed + T0 Wf
S @ 30A (W30) = (30 - A0) * Wf / (Af-A0)
T @ 30A (T30) = (-T0/Wf) * W30 + T0
Power - Max vs. 30 Amps
Power = Torque * Speed Power
Torque, Current
Must give up torque for speed T0
1. Chiaphua Motor
2. Drill Motor
3. Johnson Electric Fisher-Price Motor
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
T0 Wf Pmax T30 W30 P30
Motor
N-m RPM Watts N-m RPM Watts
F-P & Drill 1.16 20,000 607 0.29 15,000 456
F-P & Chip 3.96 5,500 570 1.09 4,045 462
Drill & Chip 4.45 5,500 641 1.13 4,045 479
F-P, Drill, & Chip 6.21 5,500 894 1.63 4,045 690
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.