Introduction

After you choose a controller in Proportional, PD and PID Control, you must choose its gains. The performance of the system depends on factors such as maximum overshoot, rise time, steady state error and settling time.

Standard second order form

The characteristic equation of a second order system has the standard form:

  • is the damping ratio
  • is the undamped natural frequency

For a general , compare terms: and . Then:

ConditionDamping ratioResponse
Overdamped, slow with no overshoot
Critically damped, fastest with no overshoot
Underdamped, oscillates and overshoots

These cases come from the solution of the second order differential equation , whose characteristic equation is :

Design rules

1. No overshoot. For safety, the manipulator must not have an underdamped response. An overshoot can make the arm hit something, for example a wall near the target. So:

2. No resonance. Do not excite the structural oscillation and resonance of the joint. A rule of thumb is:

where is the lowest structural resonant frequency.

How it works

  1. Write the closed loop transfer function
  2. Get the characteristic equation from
  3. Compare it with
  4. Use and to find the gains

Example

A motor drives a single link robot with these parameters:

SymbolMeaningValue
armature inductance H
armature resistance
gear ratio1
effective moment of inertia kg m²
effective viscous friction Nm/(rad/s)
motor torque constant Nm/A
back emf constant V/(rad/s)

Given rad/s, design a PD controller so that the system is critically damped and does not excite resonance.

Step 1: plant model

SymbolMeaning
motor gain constant
motor time constant, in seconds

Step 2: closed loop with PD

SymbolMeaning
actual joint angle
desired joint angle, the same as
proportional gain
derivative (velocity) gain

Step 3: target values

  • critically damped, so
  • rad/s, so take rad/s

Step 4: compare terms

From one joint to a robot

A single joint is a single input, single output (SISO) system. A robot is a multi input, multi output (MIMO) system. With classical control, you use inverse kinematics to get the desired angle of each joint, and each joint has its own PID loop.

Question

Can you use the same PID control law for all joints? You can use the same form of the law, but not the same gains. Each joint has a different load and inertia, so each joint has a different model , and each joint needs its own gains.