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

Port over to FastAccelStepper #46

Open
dronus opened this issue Jul 10, 2024 · 2 comments
Open

Port over to FastAccelStepper #46

dronus opened this issue Jul 10, 2024 · 2 comments

Comments

@dronus
Copy link

dronus commented Jul 10, 2024

Currently, the used stepper library is CPU-bound and does not cooperate well with other CPU tasks. This results in stepper pulse jitter even on quite low stepping frequencies, making microstepping quite unusable, when for example using the web interface, which puts load on CPU.

On contrast, FastAccelStepper uses ESP hardware units to generate the pulse train, and is quite immune to short CPU load. Especially, using AsyncWebserver over WiFi does not add much jitter, even at 50000 pulses / second (numbers by own experimentation), which is much faster that currently possible with FlexyStepper. This makes microstepping feasable, resulting in much smoother motor operation.

As FastAccelStepper does not provide unit conversion as far as I understand, those would have to be done in ESP-StepperMotor-Server code.

@pkerspe
Copy link
Owner

pkerspe commented Jul 10, 2024

Thank you for your input, I am absolutely willing to consider an integration with another stepper library! Please create a pull request for a first POC and we can review jointly.

@Anasrais-hub
Copy link

I have been trying to integrate the accelstepper library along with other changes but as I am not a programmer I have been struggling a lot. I am willing to finance a programmer to do it, so if one of you are interested or know someone who can do it I would be glad to work it out.

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