DersTedersDersTeders

Home / Blog / Servo vs stepper.

Servo vs stepper: how each motor is commanded

A servo and a stepper both move a shaft, but the command they receive is different. Our guides and parts records show the wiring and the control signal for each.

Study guideElectronicsActuators

The recorded difference

The servo guide drives a three-wire motor: signal, 5 V supply and ground. A 50 Hz PWM pulse sets the angle, with roughly 1 ms for 0 degrees, 1.5 ms for 90 degrees and 2 ms for 180 degrees. The servo holds the angle using feedback inside the motor. Because it draws current in bursts, the guide takes the supply from a separate 5 V line and joins that supply ground to the Arduino ground.

The stepper record in our simulator exposes five connections: IN1, IN2, IN3, IN4 and VCC. The circuit data describes pins 0 to 3 as the four coils and pin 4 as the common supply. The shaft advances as the coils are energised in sequence; our record does not describe a position feedback line for this part.

Servo vs stepper side by side

QuestionServostepper
Command signal50 Hz PWM pulse widthSequence on four coil inputs
Connections in our modelSignal, +5 V, groundIN1, IN2, IN3, IN4, VCC
Position feedbackInternal feedback circuit recordedNo feedback line in our part record
Supply advice in our guideSeparate 5 V line plus common groundCommon supply pin in the model

Read both columns against the same question. A difference in interface or recorded range is a reason to choose, not a claim that one part is generally better.

Evidence from our own material

Servo angle

About 1 ms is 0 degrees, 1.5 ms is 90 degrees and 2 ms is 180 degrees in the 50 Hz PWM guide. (source: en/devre/servo-motor-ile-konum-kontrolu.html)

Common ground

Servo ground and Arduino ground must meet at one point or the signal reference is lost. (source: en/devre/servo-motor-ile-konum-kontrolu.html)

Stepper coils

Pins 0-3 are the coils and pin 4 is the common supply in the 28BYJ-48 circuit template. (source: DEVIR-DEEPSEEK/devre-parcalari/group-c.json)

Which one to pick

Best for a commanded angle: the servo, because the guide gives a direct pulse-width to angle mapping and the motor holds that angle with internal feedback.

Best for practising a coil sequence: the stepper in our simulator. Drive the four inputs in order rather than expecting a single pulse to set an angle.

A short check you can do now

Question 1. Which PWM frequency does the servo guide use?

Question 2. How many coil inputs does the stepper record?

Question 3. Why must the two grounds be joined?

If you can answer all three without rereading, move on. If not, go back to the table and one source note — that is usually enough.

Next steps in the library

Continue with a hands-on guide, a browser simulator or a free account.

Generated from DersTeders' own material. Source files: en/devre/servo-motor-ile-konum-kontrolu.html · DEVIR-DEEPSEEK/devre-parcalari/group-c.json · js/breadboard-sim.js (stepper module pins). Names such as Uno, Nano, DHT11, DHT22, HC-SR04, VL53L0X, servo and stepper are used as component identifiers only. This page records documented behaviour and interface differences; it makes no cost comparison, no maker ranking, no commercial endorsement and no performance promise.

Save your progress. Create a free account to keep your place across lessons, quizzes and circuits.

Save your circuit