Page 1 of 1

BL0127 stepper motor

Posted: Mon Nov 11, 2019 9:35 am
by ycc
Hi,

I wrote a n example of stepper motor using Bl0127 board.
The motor always rotate clockwise no matter I use incrementStep or DecrementStep macro.
Is there anything I should notice?

ycc

Re: BL0127 stepper motor

Posted: Mon Nov 11, 2019 2:09 pm
by Benj
Hello,

Please try altering the order of your pin connections.

Currently you have the connections as this.

Coil 1 = C3
Coil 2 = C4
Coil 3 = C5
Coil 4 = C6

Please change the order to look like this and hopefully this should work as expected.

Coil 1 = C3
Coil 2 = C5
Coil 3 = C4
Coil 4 = C6

Re: BL0127 stepper motor

Posted: Tue Nov 12, 2019 7:04 am
by ycc
Hi Benj,

Changing the step type to half step works OK now. :D