-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Improvements to Stepper library #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
speed resolution. Also optimized step routine a bit by removing extra call to get time.
|
||
|
||
*/ | ||
For 4 wire configurations only, the motor can be driven with full-stepping (the default), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to have this comment in both the .h and .cpp file? It might be easier to maintain if i was exclusively in the .h (unless this is part of convention for the project).
- drive multiple steppers in unison - halt in the middle of a step sequence - callback in step loop - some optimizations for code size. code size is still ~2k larger than the previous version, however. Also, importing a simplified vector impl found on arduino forums.
@@ -0,0 +1,73 @@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this would be better in a common location?
also refactored so to expose the meet of the step loop so people can roll their own if they like.
segfault. Also renaming the setDirection method and factoring out a method to force a step.
is actually in here.
Fixing endless loop
Hi @smike , |
Hi!
I found the library very useful as a starting point, but thought it could use better speed resolution and some alternate drive types. Hopefully others will find it useful as well.
I've tested my changes on my Arduino Uno using a PX244-02A stepper in both unipolar and bipolar configurations.