BL0127 stepper motor

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
ycc
Posts: 4
Joined: Tue Sep 17, 2019 9:04 am
Contact:

BL0127 stepper motor

Post 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
Attachments
stepper test.fcfx
(8.6 KiB) Downloaded 171 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BL0127 stepper motor

Post 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

ycc
Posts: 4
Joined: Tue Sep 17, 2019 9:04 am
Contact:

Re: BL0127 stepper motor

Post by ycc »

Hi Benj,

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

Post Reply