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

stallguard2 & AccelStepper library #82

Open
csurf opened this issue Aug 24, 2019 · 2 comments
Open

stallguard2 & AccelStepper library #82

csurf opened this issue Aug 24, 2019 · 2 comments

Comments

@csurf
Copy link

csurf commented Aug 24, 2019

I'm trying to use the TMC2130Stepper library along with the AccelStepper library in order to drive the stepper motor. The AccelStepper library requires making a function call stepper.run() for each step that the motor must make, which means that the motor is technically idle/stopped in between each call to the run() function. So, does this also mean that I won't be able to get a valid stallguard value during the off period between the calls to stepper.run()? Or, is it possible to get the last reading of sg_result even though the motor has just stopped? I simply need some confirmation/further explanation on how this works...

I'm thinking I'm going to need to look into using an interrupt-driven strategy to drive the motor in order to measure the load simultaneously while the motor is actually running. Any feedback/advice on getting this to work?

@MilanVDB
Copy link

Working on the same thing right now. Did you find a soloution?

@edwardocano
Copy link

I am working in the same thing, trying avoid using the accelstepper library. Did you sovled it @MilanVDB ?

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

3 participants