Skip to content

Run stepper motor for a precise number of steps. #88

Description

@philipp-cloudproduce

Thanks for making this package. It is really great. I am unable to figure out how to do something specific that I am after though. I would like to be able to turn stepper motor for a precise number of steps. Currently the only thing I can see that I can do is to execute pwmWrite and then set a javascript timer to go off after a specified number of milliseconds and then turn off the pwm. But this seems very imprecise to me. Is there a way that I can set a pwm frequency and duty cycle and then a duration in microseconds? Or even set a number of steps as an input? If this is not currently supported, is it something that could be added to the API? It would make working with stepper motors precisely a lot easier. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions