Motion Starts at the Motor

Every robot runs the same loop forever: sense, think, act. The "act" part is the motor. The problem is that the word "motor" covers three very different families: the brushed DC motor, the servo, and the stepper. Each one fits a different job, uses a different control method, and costs differently. Picking the wrong type is one of the most common reasons a first robot project fails: the wheels will not move the way you want, or the arm shakes and never holds its angle.

This guide explains the difference between the three types in plain language, when to use each one, which driver you need in 2026, and how to wire the power safely. Every suggestion here works with the boards that are common today, such as the Arduino UNO R4, the ESP32 family, and the Raspberry Pi 5, which we compared in detail in Arduino vs ESP32 vs Raspberry Pi.

The DC Motor: Speed First

A DC motor is the simplest and cheapest type: apply voltage and it spins, more voltage means more speed, and reversing the polarity reverses the direction. But a bare motor spins very fast with very little torque, which is why robotics almost always uses a DC motor with a gearbox (a gearmotor), such as Pololu's Micro Metal Gearmotor family, which trades speed for torque at a fixed ratio you choose when ordering.

When do you use it? Wheels and tracks: any robot that drives on the ground needs two (or more) DC motors. It is the right choice when you care about continuous rotation and speed, and you do not care where the shaft stops.

Its main drawback: it has no idea where it is. There is nothing inside that reports shaft position. If you need position accuracy, you add an external sensor (like an encoder) or pick a different motor type from the start.

The Servo: A Specific Angle on Command

A servo is not just a motor; it is a complete system in a small box: a DC motor, a gearbox, a position sensor (a potentiometer), and a control circuit. You do not control its speed; you send the angle you want, and it moves there and holds. That is why it is the first choice for arms, steering on RC cars, latches, and camera pan-tilt mounts.

Controlling it is easy: a pulse signal at a fixed frequency of about 50 Hz, where the pulse width (roughly 1 to 2 milliseconds) sets the angle. You need no external driver; wire it straight to a digital pin. The official Arduino Servo library compresses all of this into one line: myServo.write(90);.

The classic beginner example is the tiny SG90 (9 grams) shown in the photo at the top of this article. It is cheap and fine for light loads; for heavier work there are metal-gear models like the MG996R. Just note that most hobby servos sweep roughly 180 degrees; if you need continuous rotation, special "continuous rotation" versions exist.

The Stepper: Position Accuracy Without a Sensor

A stepper motor moves step by step: each electrical pulse from the driver rotates the shaft by a fixed, known angle (1.8 degrees per step on common models, so 200 steps per full revolution). Send 200 pulses, get exactly one revolution. You always know the position from the pulse count, with no position sensor at all. This is called open-loop control.

When do you use it? When precision matters more than speed: 3D printers, desktop CNC machines, motorized camera sliders, and any axis that must return to the same position repeatably. A bonus: it can hold its position with steady torque as long as the coils stay powered.

Its drawbacks: slower than DC, torque drops as speed rises, and it never runs straight off a board pin; it needs a dedicated driver such as the DRV8825 or A4988. These drivers are cheap and also offer microstepping, which divides each step into smaller ones for smoother motion.

Quick Comparison

Type Best for Position control Needs a driver?
DC gearmotor Wheels, continuous motion No (unless you add an encoder) Yes (H-bridge)
Servo Arms, angles up to ~180° Yes, built in No
Stepper Precise, repeatable axes Yes, by counting pulses Yes (dedicated driver)

Motor Drivers in 2026

A board pin (on Arduino or anything else) outputs a few milliamps; motors draw amps. So there is always a driver between the board and the motor:

  • For DC motors: the old classic L298N is still everywhere, but it runs hot and wastes a noticeable voltage drop. The better modern choice is the TB6612FNG: smaller, far more efficient, and it controls two motors at once with speed and direction over PWM.
  • For steppers: a driver like the DRV8825 takes just two pins from you (step and direction) and handles the complex coil sequencing itself, with over-current protection.
  • For servos: nothing at all; PWM straight from a digital pin, plus a suitable power supply.

Power: The Biggest Beginner Mistake

The most common mistake is powering a motor from the 5V pin on an Arduino. The onboard regulator is weak, and a motor pulls a high burst of current when it starts, so the board browns out, resets, or dies. The rule is simple:

  1. A separate supply for the motors (a battery or a power adapter at the voltage your motor expects).
  2. Common ground (GND): connect the motor supply's negative to the board's ground, or the control signal has no reference and nothing works reliably.
  3. Respect each part's voltage: the SG90 runs on 4.8 to 6 volts, small DC motors typically run on 3 to 12 volts depending on the model, and a stepper gets its voltage through its driver.

Which One for Your Project?

  • A robot that drives on the floor? Two DC gearmotors plus a TB6612 driver. Then you are ready for the Arduino obstacle-avoiding robot with the HC-SR04 project.
  • An arm that grabs something, or a moving camera? A servo, starting with the SG90.
  • An axis that must move a precise, repeatable distance? A stepper plus a DRV8825.
  • Not sure yet? Start with a single servo; it is the cheapest and simplest to wire, and the PWM idea it teaches you comes back with every other motor type. Then plan the full road with our 90-day robotics learning plan.

Common Problems and Fixes

  • The servo jitters or resets the board: almost always weak power. Feed the servo from its own 5-6 V supply with a shared ground, and the shaking disappears.
  • The DC motor does not spin although the code is right: check the driver wiring (enable and direction pins), make sure motor voltage actually reaches the driver, and that its ground is shared with the board.
  • The stepper "skips steps," buzzes, and does not move: you are driving it faster than it can handle, or the driver current is set too low. Start slow, raise speed gradually, and set the driver current to the value printed on your motor.

These three cover most of what you will meet in your first month.

Sources