Skip to content
Tactiverge

School/△ Builder/Week 24

DC motors, servos and steppers

A fan, a robot's elbow and a 3D printer's nozzle all move with motors. Why do they use three different kinds?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Picking the wrong actuator is one of the most common early design mistakes: a DC motor where you needed a precise angle, or a stepper where you needed speed. Knowing what each one does by itself saves a project from fighting its own hardware.

  • ◇ Compare DC motors, servos and stepper motors by how they are controlled and what they are good at.
  • ◇ Calculate a stepper's step angle and the steps needed for a given turn.
  • ◇ Match an actuator to a task and justify the choice.

2.Watch

→ Notice what sets a DC motor's speed and direction, and what the motor does not know about its own position.

A hands-on engineer explains DC motors with real hardware, which helps when you pick a motor for a project.

11 min 46 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

3.Predict

You power a plain DC motor for exactly 1 second. Does it always turn exactly the same angle?

Guess first. Being wrong here is how the surprise works.

4.Discover

Move the arm's two joint angles and watch the tip. In a real arm, each joint must reach and hold an angle you choose. As you play, ask: which actuator could do that by itself, and which would need extra sensors?

Explorer 01 — Robotic kinematics

From joint angles to a position, and back again

Forward kinematics turns joint angles into an end-effector position. Inverse kinematics asks the harder question: which angles put the tip where I want it?

REACH 35.0 CMHOLE 5.0J1J2(15.1, 26.4)

Fig. — 2-link planar arm · units cm · y up

Mode

Joint angles (relative)

35 °
60 °

Arm geometry

Links
20.0 cm
15.0 cm
End x
15.1 cm
End y
26.4 cm
Distance r
30.4 cm
workspace 5.0–35.0 cm
|sin θ2|
0.87
well-conditioned
Tip angle φ
95.0°

State

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

How to read this

The base sits at the centre (grid squares are 10 cm). Each thick bar is a link; circles are joints J1, J2. The shaded ring is the workspace: every point the tip can reach with unlimited joint travel. Its outer edge is L1 + L2; the inner hole appears when one link is longer than the others combined.

Arcs show each joint angle. θ1 is measured from the dashed horizontal; θ2 from the dashed extension of link 1. In inverse mode the square is the target (dashed and labelled unreachable when outside the ring), and the arm is solved with the law of cosines. Most targets have two solutions: elbow-up and elbow-down.

Assumptions & limitations
  • Ideal rigid links and revolute joints with no mass, friction, backlash, or flex.
  • Joints may rotate a full ±180°; real joints have hard limits that shrink the workspace, and links cannot pass through each other or the floor.
  • Kinematics only: nothing here says whether the motors are strong or fast enough to hold or reach a pose (that is dynamics).
  • Three-link inverse kinematics is made solvable by fixing the tool angle φ; real controllers choose among redundant solutions with extra goals.
  • Unreachable targets are projected onto the nearest edge of the reachable ring for display; a real controller would refuse or plan around them.
Can't use the interactive? Read a description instead

The kinematics lab shows a two-joint arm; changing each joint's angle moves the tip. The lesson uses it to ask which actuator can reach and hold a chosen joint angle: a servo can by itself, a stepper can by counting steps if it never skips, and a plain DC motor needs an added position sensor and feedback.

5.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

Which actuator suits a desk fan best?

6.Understand

DC motor: speed from voltage

A DC motor spins when current flows: more voltage, more speed; reverse the voltage, reverse direction. It is cheap, fast and powerful for its size, which is why fans, drills and wheels use it. But it does not know its position. To control position it needs a sensor such as an encoder and a feedback loop.

Servo: an angle on command

A hobby servo packs a small DC motor, a gearbox, a position sensor and a control circuit into one box. You send it a pulse that means an angle (next lesson), and its built-in feedback turns to that angle and holds it. Great for robot joints, steering and flaps; most hobby servos only cover about 180°.

Stepper: counted steps

A stepper motor moves in fixed steps each time its coils are switched in order. A common type has 200 steps per revolution: 360° ÷ 200 = 1.8° per step. Count steps and you know the angle without a sensor, as long as it never skips (too much load or acceleration makes it skip silently). Printers and CNC machines use steppers.

Explain it another way

DC motor: a runner told how hard to run. Servo: a runner told which flag to stand at. Stepper: a runner told how many exact paces to take.

Worked example 1

A 200-step stepper drives a dial. How many steps turn it through 54°?

Step angle = 360 ÷ 200 = 1.8°. Steps = 54 ÷ 1.8 = 30 steps.

Common mix-ups

  • A servo is a special kind of motor that spins.
    ✓ A hobby servo is a motor plus gears plus a position sensor plus control electronics, built to reach and hold angles.
  • Steppers always know where they are.
    ✓ They know how many steps they were told to take. If they skip, nothing tells them.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A stepper with 48 steps per revolution must turn 90°. How many full steps is that?

steps

Practice 3 · a fresh version every time

A stepper with 200 steps per revolution must turn 180°. How many full steps is that?

steps

Practice 4

A stepper-driven printer head is pushed too hard and skips 10 steps. What does the firmware believe?

Practice 5

A small robot arm's elbow must point at 30°, then 75°, and hold still against gravity. Which is the simplest choice?

8.Apply it

For a smart greenhouse, choose an actuator for (1) a vent flap that opens to 0°, 45° or 90°, (2) a circulation fan, (3) a seed tray that must move along a rail to exact positions. Justify each choice in one sentence.

9.Reflect

Concepts: Motors, servos and steppers