TactivergeLite

Lite / Building Machines That Respond / 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 · Full interactive version

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.

Predict

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

  1. Yes, always
  2. No: load, friction and battery level change how far it turns
  3. It does not turn at all
Guess first, then reveal

A DC motor turns at a speed set by its voltage and load. It has no idea where it is pointing, so the angle varies. For a known angle you need a sensor (as in a servo) or a stepper's fixed steps.

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?

What the interactive shows (text version)

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.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: 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.

“How Motors Work For Beginners (Episode 1): The DC Motor: 032” by Jeremy Fielding (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

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

Intuitive

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.

Technical

DC motor speed ≈ proportional to voltage at no load; torque rises with current. Servos use internal proportional control on angle. Steppers are open-loop position devices; microstepping divides steps further for smoother motion.

Mathematical

Step angle = 360° ÷ steps per revolution. Steps for angle θ = θ ÷ step angle = θ × N ÷ 360.

Applied

A robot vacuum uses DC motors with encoders for its wheels, a small servo or stepper for a flap, and its brushes are plain DC motors because only speed matters.

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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which actuator suits a desk fan best?

steps

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?

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.

Reflect

Which actuator would you most like to try on real hardware, and what would you test first?

Write your answer on paper or in your own notes. Lite never stores what you write.

← A state machine in twelve linesTalking to a servo in milliseconds →