BL0127 stepper motor

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

Moderator: Benj

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

BL0127 stepper motor

Postby ycc » Mon Nov 11, 2019 9:35 am

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 11 times

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

Re: BL0127 stepper motor

Postby Benj » Mon Nov 11, 2019 2:09 pm

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

Postby ycc » Tue Nov 12, 2019 7:04 am

Hi Benj,

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