Skip to content
Tactiverge

Actuators

How the three most common electric actuators in small robots work, how each is controlled, and when to choose a brushed DC motor, a servo or a stepper.

Lesson 5 of 6 · 35 min · Self-paced · Free

Turning decisions into motion

Sensing and thinking achieve nothing until something moves. In small and medium robots, that something is nearly always an electric motor. But "motor" covers devices that behave very differently. A brushed DC motor spins freely when powered; a hobby servo holds a commanded angle; a stepper moves in precise, countable steps. Choosing the wrong one makes a robot clumsy, inaccurate or needlessly complicated. This lesson explains how each works, how you command it, and where it fits.

Brushed DC motors

Inside a brushed DC motor, a coil of wire sits between permanent magnets. Current through the coil makes it an electromagnet, which is pushed round by the permanent magnets. Just as it would settle, a rotating switch called the commutator, touched by sliding contacts called brushes, reverses the current so the push continues. The result is continuous rotation.

Two simple relationships describe it well:

  • Speed rises with voltage. More voltage, faster spinning (for a given load).
  • Torque rises with current. The harder the motor has to push, the more current it draws.

When a motor is held still while powered, it is stalled: it produces its maximum torque and draws its maximum current, often many times its normal running current. Stalls are when motors and the electronics driving them overheat.

Controlling a DC motor

To vary speed, controllers rarely vary the voltage smoothly. Instead they use pulse-width modulation (PWM): switching the full voltage on and off thousands of times per second. The fraction of time it is on is the duty cycle. At 60% duty from a 12 V supply, the motor behaves roughly as if it had an average of 0.6 × 12 = 7.2 V. The motor's inertia smooths out the pulses.

To reverse direction, you reverse the current, using an H-bridge: four electronic switches arranged so that either pair can connect the motor's terminals one way round or the other. Motor driver chips package an H-bridge with protection circuits.

Strengths and weaknesses

Brushed DC motors are cheap, simple, efficient enough and can spin fast. Their weaknesses: the brushes wear and create electrical noise, and the motor has no idea of its own position. To control angle you must add a sensor, usually an encoder, and a feedback controller. Most DC motors also spin too fast with too little torque for a robot joint, so they are paired with a gearbox, the subject of the next lesson.

Brushless DC motors move the commutation into electronics, removing the brushes. They last longer and are used in drones and many modern robot joints, but need more complex drive electronics.

Servos

A hobby servo is a package: a small DC motor, a gearbox, a potentiometer on the output shaft and a little control circuit. You tell it an angle, and its internal feedback loop drives the motor until the potentiometer says the output has arrived, then holds it there against disturbances.

The command is a pulse repeated about every 20 ms (50 times per second). The pulse width sets the angle: commonly about 1.0 ms for one end of travel, 1.5 ms for the middle and 2.0 ms for the other end. Exact values and range vary between models. For a servo with 180° of travel mapped linearly over 1.0–2.0 ms:

angle = (pulse − 1.0 ms) / 1.0 ms × 180°
pulse 1.25 ms → (0.25 / 1.0) × 180° = 45°

Servos are wonderfully convenient: position control in one part, with three wires. The trade-offs: limited travel, modest torque and precision in cheap models, gears that can strip if forced, and usually no way to read back the actual position or force. Larger industrial "servo motors" use the same idea, a motor with built-in feedback, at much higher performance.

Stepper motors

A stepper motor has several sets of coils around a toothed rotor. Energising the coils in sequence pulls the rotor round one small, fixed step at a time. A very common design has 200 full steps per revolution:

360° / 200 = 1.8° per step

Stepper drivers can also microstep, sharing current between coils to place the rotor between full steps. With 1/16 microstepping, one revolution takes 200 × 16 = 3200 microsteps, though the real accuracy of each microstep is less certain than of a full step.

The great attraction is open-loop positioning: if you send a known number of steps, the shaft turns a known amount, with no position sensor needed. A stepper turning an 8 mm-per-revolution lead screw needs 3200 / 8 = 400 microsteps per millimetre, so a 25 mm move is 10,000 microsteps. This is how many 3D printers and plotters position their heads.

The weaknesses are just as important:

  • Missed steps. If the load is too great or you accelerate too quickly, the rotor fails to follow, and the controller does not know. Every later position is then wrong by a fixed amount, which is why such machines home themselves at the start.
  • Torque falls with speed. Steppers are strong at low speed and weak at high speed.
  • Constant current. A stepper draws current to hold position even when stationary, so it gets warm and wastes energy.
  • Vibration and noise, especially at certain speeds where the steps excite resonance.

Adding an encoder to a stepper to catch missed steps is increasingly common, which blurs the line with closed-loop motors.

Choosing between them

A quick guide, based on what the task needs:

  • Continuous rotation, speed matters, position does not (wheels, fans, pumps): a brushed or brushless DC motor, perhaps with an encoder for speed control.
  • Simple angle positioning, light loads, limited travel (a pan–tilt camera head, a toy arm, a small gripper): a hobby servo.
  • Repeatable positioning at low to moderate speed without a sensor (printers, plotters, camera sliders): a stepper, with homing.
  • High performance joints that must be fast, strong, precise and safe around people: a motor with an encoder and a carefully tuned feedback controller, usually through a gearbox.

Notice that the most capable option is also the one that relies most on the control ideas in the feedback module. Actuators and control are two halves of one problem.

Recap

Brushed DC motors spin with speed set by voltage (via PWM) and torque by current, reverse through an H-bridge, and need a sensor to know their position. Servos bundle motor, gears, potentiometer and controller to hold a commanded angle set by pulse width. Steppers move in fixed steps for open-loop positioning but can silently miss steps and lose torque at speed. Choose by what the task needs: speed, convenience or countable position.

Project

Paper project: pick the actuator

For each of these five robot parts, choose a brushed DC motor, a hobby servo or a stepper motor, and justify your choice in two or three sentences using the strengths and weaknesses from this lesson:

  1. The drive wheels of a small floor-cleaning robot.
  2. The jaw of a small gripper that only needs to be open or closed.
  3. The pen-lifting and pen-moving axes of a drawing plotter.
  4. A camera on a tilting mount that must point at a chosen angle.
  5. A turntable that must rotate an object exactly 37.8° between photographs.

For the turntable, calculate how many full steps of a 200-step-per-revolution stepper are needed, and whether 1/16 microstepping is required.

This is a paper exercise. No hardware is needed.

Deliverables

  • An actuator choice and justification for each of the five parts
  • The step calculation for the turntable
  • One sentence on what could go wrong with each choice

Adult supervision requiredThis activity is on paper only. If you later test any idea with real motors, do so only with adult supervision, use low-voltage supplies or hobby battery packs, keep fingers and hair away from moving parts, and disconnect power before adjusting anything.

Knowledge check

Check your understanding

  1. 1. A DC motor is driven by PWM at 25% duty cycle from a 12 V supply. Roughly what average voltage does it see?
  2. 2. What tells a hobby servo which angle to move to?
  3. 3. A 200-step stepper is commanded to turn exactly 90°. How many full steps is that?
  4. 4. Why can an open-loop stepper system end up permanently wrong in position?
  5. 5. Which is the best match for the drive wheels of a small mobile robot?

Go further