All tutorials

3 · Outputs & actuators

Stepper motor

Advanced25 min

Goal

Make one full turn by counting steps.

Why it matters

A stepper positions itself without a sensor: you count pulses, not time.

Steps

  1. 01Add the stepper motor and its driver.
  2. 02Define the coil excitation sequence.
  3. 03Send 2048 steps (28BYJ-48) for one turn.
  4. 04Reverse the sequence to turn the other way.

This tutorial runs inside the Circuitly simulator: your wiring and your code are checked automatically at every step.

Next tutorials