Skip to content
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

Stepper motor library homing/limit capability #3

Closed
soundanalogous opened this issue Apr 19, 2015 · 1 comment
Closed

Stepper motor library homing/limit capability #3

soundanalogous opened this issue Apr 19, 2015 · 1 comment

Comments

@soundanalogous
Copy link
Member

From @FineLineAutomation on March 23, 2014 20:5

I have been looking over the stepper motor library and was wondering if there was a way to stop a motor movement based on on a digital input going low. I have 2 use cases:

  1. Using a stepper for position control you get to the end of physical motion and would like to put a limit switch in place that can stop the stepper.
  2. Performing a homing operation on a stepper controlled motion axis with

I could always perform #2 by bit banging everything from the PC, but would prefer to use a higher level command if necessary.

I also thought about just doing it in hardware and just having the limit switch trip the enable pin on the Big Easy driver I am using, but you would need some way to manually control re-enable that pin to get it to move off the switch.

Copied from original issue: firmata/arduino#124

@soundanalogous
Copy link
Member Author

There is currently no way to do this. However it makes me think it may be beneficial to add a 'stop' command to the stepper implementation. Then you could watch a digital input. Depending on the step speed you could potentially get one additional step by the time the digital input changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant