01

Position control

The control logic moves the actuator from its current position to a desired one. While it moves, it can also guarantee that a certain trajectory, passing through some specific intermediate configurations, is followed. Example: a motor drives a link of a robotic arm and must reach 90°, starting stopped at 0°. The error variable is the target minus the current position. It goes into the control system, which calculates the command that makes the motor reach the target and the error reach zero.

The control loop, one iteration at a time

Interactive
Target 90°−Position 0°=Error 90°→Controller→Command +30°→Motor→ new position, repeat
Iteration0
Position0°
Error90°
Command+30°
Target (or drag the green dot) 90°
Motor turns per iteration 30°

Why it never switches off. At zero error the control system is not stopped. It keeps running to reject external disturbances, such as gravity pushing the arm downward, and holds the motor at the desired position. Reach the target, press the gravity button, and watch it get corrected. Then untick the checkbox and repeat. Gravity always pulls the arm down toward the horizontal, so for a target above 90° it pulls the other way than for a target below 90°.

The example: the 0°, 30°, 60°, 90° positions and the 90°, 60°, 30°, 0° errors. Real controllers use many formulas for the command, so the demo uses the simplest rule: turn by the error, up to the motor's turn per iteration.

02

Velocity control

This is the control type used to drive the robot wheels in this project. The goal changes: the wheel should not reach a position but rotate at a constant speed. The input is the desired speed, and the error variable is the desired speed minus the current speed of the motor. The controller computes the command that minimizes it.

Wheel speed controller

Interactive
Desired5.0
Current0.0
Error5.0
Desired speed (units are illustrative) 5.0
Change the desired speed. The marker jumps at once, then the wheel catches up. The red gap is the error variable shrinking toward zero. The catch-up rate is illustrative.
03

Force / torque control

Useful in manipulation, where fragile objects must be grasped without breaking them. Position control could press too hard and break the object, or too softly and drop it. With force control the input is the desired force, and the error is the desired force minus the force the end effector applies now. The gripper closes with the right tension.

Position control
Says: "close the gripper to position 76". It never feels what it is holding, so it works for one object size only. Too far and it crushes, too short and it drops.
Force control
Says: "squeeze until the force is 40". It measures the force, so every object size ends with the same gentle grip. That is why it suits fragile objects.

Think of a blind hand that only knows how far to close, against a hand with a sense of touch. Try the same objects in both modes, or switch on Auto grab and watch the tally at the bottom of the lab.

Grasp a fragile object

Interactive
dropssafe gripbreaks
Open: ready
Object
Desired forcen/a
Current force0
Errorn/a
Closing position 76
Quick demos for the selected object

The objects, their safe force ranges and the units are illustrative values chosen for this demo. The idea: a fragile object can break if too much pressure is applied, or be dropped if the pressure is not enough.

04

One loop, three quantities

The loop never changes: the error is always the desired value minus the current value, and the controller works to bring it to zero. Only the quantity changes. Switch between the three and drag the desired value.

Same loop, different quantity

Interactive
Desired90
Current0
Error90
Target position90
ControlInputError variableWhat it achieves
Positiondesired positiontarget position − current positionMoves the actuator to a desired position, following a trajectory if needed
Velocitydesired speeddesired speed − current speedRotates the actuator at a constant speed (the robot wheels)
Force / torquedesired forcedesired force − current forceGrasps with the right tension, without breaking or dropping
05

Which control fits?

06

Quiz