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

Delay of starting motor after relasing brake #16

Open
georgekiwi opened this issue Jan 14, 2021 · 6 comments
Open

Delay of starting motor after relasing brake #16

georgekiwi opened this issue Jan 14, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@georgekiwi
Copy link

Is your feature request related to a problem? Please describe.
Hi,
I tried your library and I like it a lot!
When I use the stepper without the brake feature, everything works fine.

However, when using the brake feature, the driver does not enable the stepper fast enough, so that about 10-20 steps get lost everytime.

Describe the solution you'd like
Is it possible to define an additional variable that controls the time period between releasing the brake and outputting the motor steps?

Cheers
gk

@pkerspe pkerspe added the enhancement New feature or request label Jan 14, 2021
@pkerspe
Copy link
Owner

pkerspe commented Jan 14, 2021

@georgekiwi so what you are saying is, that the time between disabling the brake and sending the first step signal is to long, right?
Please provide more details about the speed and acceleration settings you use.
Can you be sure that your stepper has enough tork not to loose steps due to lack of torque?

@georgekiwi
Copy link
Author

Hi,
what I'm saying is that the time is actually too short.
The stepper is strong enough, when I do not use the brake everything works (i.e. one revolution is exactly one revolution). Only when the brake is enabled, one revolution is like 350° or so. This happens with every speed setting.

(I don't know if it is important, but I do not actually use the feature for a brake, I use it to disable the driver so the stepper doesn't get so warm)

@pkerspe
Copy link
Owner

pkerspe commented Jan 14, 2021

I see, thank you for the response.
Did you try using the "Delay to engage motor brake" and "brake release timeout" settings when creating a new stepper config? Those values are directly feed to the ESP-FlexyStepper instances used

@pkerspe
Copy link
Owner

pkerspe commented Jan 14, 2021

oh, sorry, just got it, these values are just for engaging the brake, not for releasing before moving. Sorry, yeah, that would require quite some work, since it needs to be adapted in the ESP_FlexyStepper library and then in the Server and UI. I will see into it these days, but feel free to create pull request if you are feeling like adapting it in ESP-FlexyStepper Library already :-)

@georgekiwi
Copy link
Author

Thanks for your response. I'm afraid thats a bit beyond my C-skills ;)

One more thing: The documentation for the CLI has two errors I think
mt=0&v=100&u=revs should be mt=0&v:100&u:revs
mb=0&v=-100&u=mm should be mb=0&v:-100&u:mm

Cheers

@pkerspe
Copy link
Owner

pkerspe commented Jan 24, 2021

thanks, I fixed the readme and pushed to master branch

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

No branches or pull requests

2 participants