← All articles
technologycontrolrobotsengineeringSeptember 17, 20263 min read

How Does a Machine Know It Has Moved Far Enough? It Checks

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

A motor combined with a sensor that reports its actual position, and a circuit comparing that against the position wanted, will drive itself to where it was told and hold there. Almost every machine that positions anything works this way.

Why feedback is necessary

A plain motor turns while power is applied and stops somewhere when it is removed, and where it stops depends on the load, on friction, on momentum and on the supply voltage, none of which are known precisely. Commanding a plain motor to move something to a particular position is therefore impossible with any accuracy. Adding a sensor that continuously reports where the output actually is, and a circuit that compares that report against the commanded position and drives the motor in whichever direction reduces the difference, converts the arrangement into one that reaches the target regardless of load and holds it against disturbance. The correction loop rather than the motor is what makes it work.

What the loop contains

The same three elements appear in every such arrangement:

  • A command specifying the position, speed or force wanted
  • A sensor measuring what is actually being achieved
  • A comparison producing the difference between the two
  • A controller deciding what drive to apply given that difference
  • An actuator, which is usually a motor but may be hydraulic or pneumatic
  • A mechanical connection from the actuator to whatever is being moved

Why tuning is the hard part

Deciding how hard to push given a particular error is the whole engineering problem, and getting it wrong produces characteristic failures. Responding too weakly leaves the output arriving slowly or stopping short permanently. Responding too strongly makes it overshoot, correct back, overshoot again and oscillate, which in a large machine is destructive. The standard approach combines three responses, one proportional to the current error, one to how long the error has persisted, and one to how fast it is changing, and choosing the relative weights of those three is the tuning. Methods for doing it range from formal calculation through published procedures to adjusting by hand until the behaviour looks right, and the last remains extremely common.

What the sensor actually measures

The device reporting position determines what the whole arrangement can achieve, and several kinds are used. A potentiometer is a variable resistor turned by the output shaft, which is cheap, simple and limited in precision and lifetime, and it is what small hobby units contain. An optical encoder counts marks on a disc as it turns, which gives high resolution and reports changes rather than absolute position unless a reference mark is included. An absolute encoder reports a unique code for each position, so the system knows where it is at switch-on without moving. A resolver uses coils and works reliably in heat, vibration and dirt, which is why aircraft and heavy industry use them. Choosing badly limits everything downstream.

Where they are

The arrangement is so widespread that its absence is more notable than its presence. Industrial robots use one per joint, with position and speed loops running many thousands of times a second. Machine tools position a cutting head to micrometres. Aircraft control surfaces are moved by them, with the pilot commanding a position rather than applying force directly. Vehicle steering and throttle systems use them. Radio-controlled models use small self-contained units combining motor, gears, sensor and circuit in one package, which is what most people picture. Hard drives position read heads. Camera lenses focus. And a domestic thermostat is exactly the same arrangement applied to temperature rather than to position.

The takeaway

A motor alone stops wherever load and friction leave it, so accurate positioning requires a sensor reporting the actual position and a circuit driving the motor to reduce the difference from the target. The loop rather than the motor is what makes it work. Deciding how hard to push given an error is the hard part, with weak response stopping short and strong response oscillating. A domestic thermostat is the same arrangement applied to temperature.

Practise this

Questions from What is Technology?

Reading about something is not the same as being able to recall it. These are real questions from the What is Technology? unit in our Technology track, answers and explanations included. The unit has 123 in total across 24 steps.

  • Fill the blankLevel 3

    1. The many satellites orbiting Earth are technology that help with weather forecasts, television and ____.

    • navigationcorrect
    • gravity
    • sunlight
    • rainfall

    Satellites help with navigation systems like GPS, along with weather and television signals.

  • Multiple choiceLevel 1

    2. What is technology?

    • Tools and machines that people make to help do jobscorrect
    • Plants that grow in a forest
    • Weather like rain and wind
    • Wild animals that live in the woods

    Technology is the tools and machines people invent to help solve problems and do jobs.

  • Type the answerLevel 4

    3. Technology designed to help people with disabilities, like ramps and hearing aids, is called ____ technology.

    Answer: assistive

    Assistive technology is designed to help people with disabilities do daily tasks.