Stepper motor – 5/6 wires and STEP / DIR
A unipolar motor on four outputs, or a bipolar motor through an external driver.
Unipolar motor on four outputs since 0.5.27
A motor with 5 or 6 wires has two windings with centre taps. The taps go to positive, the four ends to four controller outputs.
How to find taps and ends
- within one winding the resistance between the ends is twice that from the centre to an end,
- with 5 wires one common wire has the same resistance to the other four,
- with 5 wires the end pairs of a winding are found by trial (see below).
Wiring
- Centre taps (common wire) – +12 V from a relay, through a fuse.
- Four ends – four low-side outputs, each with a flyback diode.
- The current of one coil (voltage ÷ resistance) must be within the output rating; two coils work at once.
- Do not use ignition outputs.
uaEFI: outputs B7, B16, B17 and B18 have a diode, but B16 usually drives the fuel pump relay. A 6-wire motor is easiest to connect as bipolar to the H-bridges.
Settings

- Actuator: Stepper motor, wiring: Four coils on four outputs.
- Assign outputs to coils A, B, C and D, save with F2.
- Run the motor test.
| Behaviour | Fix |
|---|---|
| the motor shakes and does not move | wrong pairs: A and C must be the ends of the same winding |
| moves the wrong way | Reverse the direction |
| weak, loses steps | lower speed, check the voltage on the common wire |
A 6-wire motor as bipolar
Leave the centre taps unconnected and insulated. Connect the ends of the first winding to bridge 1 and of the second to bridge 2, then follow the 4-wire motor instructions. The end to end resistance is twice that from the centre.
External STEP / DIR driver since 0.5.27
A stepper driver module takes step pulses and a direction, powers the coils itself and limits their current. This is the solution for K8 and for boards whose H-bridges are busy.
- Connect STEP, DIR and optionally ENABLE to free controller outputs.
- Low-side outputs need a pull-up resistor to 5 V on every driver input (e.g. 4.7 kΩ). Check the signal levels in the driver data sheet.
- Join the driver ground with the controller ground and power the driver as its documentation says.
- Set the driver current limit to the motor data.
- In the program choose External STEP / DIR driver and assign the outputs.
- If the driver is enabled by the opposite level, tick Invert the ENABLE output.

The program also allows free ignition outputs (5 V signal) for these signals. Check which level the driver expects before connecting.