miceuz made a power sequencer circuit for the stepper driver. It switches the logic power before the motor power is on.

image
image
image

Assembling the stepper control:

image

Testing: