You are reading a single comment by @user52526 and its replies.
Click here to read the full conversation.
-
I thought that was just one type of sequence... the Wave Drive, Normal Full Step, and the Half-Step Drive... will try this later, but could you explain what these step array elements are doing? Also, how am I able to reverse the direction of the motor? When I reverse the order of the pins in the code, it just jitters...
1 Attachment
Take a look at this conversation about Stepper Motor Spinning Slow.
Your second example of code is close to work... according to the motor's datasheet, it is a two phase 5-wire motor which needs two waves that overlap (that's why between every step with just one bit on there is an 'instable' half-step with 2 bits on)... just change your steps to
and it will work... almost always... Almost because the loop can be too fast. In above mentioned conversation I go into some details where the limits come and may come from...
The first example code *is a lot of busy code for little thing to achieve* (which last but not least contributes to the slowness - see Espruino Performance)...
Therefore, take advantage of what Espruino comes with right out of box: Smart, concise way to talk to the GPIOs... ;-) - thanks @Gordon
Enjoy!