arduino-libraries / Stepper

Stepper Library for Arduino
http://arduino.cc/
107 stars 114 forks source link

Half-steps in stepper library for 4-wire motors [imported] #2

Open agdl opened 8 years ago

agdl commented 8 years ago

From @cmaglie on November 15, 2012 18:19

This is Issue 139 moved from a Google Code project. Added by 2009-11-05T07:28:01.000Z by john.zan...@gmail.com. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium

Original description

Using a half-step-library would double the precision of the stepper.

Attached you'll find my proposal for the changed Stepper library. I kept the changes to a minimum. It contains a new (added) constructor, a private boolean which indicates whether or not to use the half-step system. The Stepper::step function was changed to allow 2, 4, or 8 steps and the Stepper::stepMotor was changed to send the 8 different signals to the 4 wires.

Users who created sketches using the previous lib can change to this new library without compatibility problems.

Copied from original issue: arduino/Arduino#139

SwiftNick commented 8 years ago

Has this been published in the standard Stepper library yet? I too have just added half step support to my local copy.