Stepper Wiring

How Stepper Motors Work

Stepper motors are an unusual sort of motor. They take a special pulsed signal and for each pulse, they move one step, which is usually 1/200 of a rotation. You have to send 200 pulses to move the motor around once. This allows for very accurate positioning.

Our stepper motor is a very small one, and it also has a 1:10 gearbox, which means that we need to send 2,000 pulses for the shaft to move one full rotation.

Tip
Stepper motors are used in 3D printers, CNC machines, and other devices that need precise positioning. Unlike brushed DC motors, you can control exactly how far a stepper turns.

Wiring the Circuit

Connect the stepper motor and stepper driver board like this:

Stepper driver connections

Connect the Micro:bit breakout to the stepper driver:

  • Pin 13 (yellow) to IN1
  • Pin 14 (yellow) to IN2
  • Pin 15 (yellow) to IN3
  • Pin 16 (yellow) to IN4

Connect the white plug of the stepper motor to the white socket on the stepper driver.

Connect the stepper driver to power. For the power connection, you can use any of the red and black pins, but we will use Pin 0:

  • Pin 0 black to black wire to “5-12V -” on the driver board
  • Pin 0 red to white wire to “5-12V +” on the driver board
Tip
Remember that the positive power is marked with a + and is usually red, but we will have a white wire for positive. The negative is marked with a - and is usually black. In our circuits, the negative is always also connected to ground.

Wiring Checklist

Before powering on, verify:

  1. Signal wires go to the correct IN1-IN4 pins in order (13, 14, 15, 16)
  2. The stepper motor plug is fully seated in the driver board socket
  3. Power wires are connected with correct polarity (+ and -)
  4. No loose connections

Challenge

If you finish early, trace each wire in your circuit and draw a simple diagram showing the signal path from the Micro:bit to the motor. Label each connection point.