Skip to content

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

Closed
wants to merge 8 commits into from
Closed

Conversation

smike
Copy link

@smike smike commented Jan 6, 2012

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.

smike added 2 commits January 6, 2012 03:41
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),
Copy link
Author

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).

smike added 2 commits January 10, 2012 00:23
 - 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 @@
Copy link
Author

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?

smike added 3 commits January 19, 2012 03:22
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.
pasky referenced this pull request in pasky/Energia Jun 15, 2012
@ffissore ffissore added the New label Feb 27, 2014
@cmaglie cmaglie added feature request A request to make an enhancement (not a bug fix) Library: Stepper The Stepper Arduino library labels Apr 8, 2015
tbowmo pushed a commit to tbowmo/Arduino that referenced this pull request Jul 14, 2016
@facchinm
Copy link
Member

Hi @smike ,
if you are still interested in pulling this contribution in, could you rebase it to https://github.com/arduino-libraries/stepper ? I'm closing it here in the meantime

@facchinm facchinm closed this Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request to make an enhancement (not a bug fix) Library: Stepper The Stepper Arduino library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants