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 Delay #1

Open
Talal-Zahid786 opened this issue Jan 20, 2022 · 2 comments
Open

Stepper Motor Delay #1

Talal-Zahid786 opened this issue Jan 20, 2022 · 2 comments

Comments

@Talal-Zahid786
Copy link

Hi, I build your project. The project is really helpful, but I have an issue. When I input values in the Nextion display, The stepper motors stop for a second after every revolution of the stepper. It looks like a delay.

@carl1961
Copy link

@Talal-Zahid786 it is the StepperDriver driver, I tried every thing to remove the delay. minimum delay require using much lower RPM

@domiluci
Copy link

@Talal-Zahid786 it is the StepperDriver driver, I tried every thing to remove the delay. minimum delay require using much lower RPM

I'm working on an upgraded version of this project. I was initially experiencing these odd delays after building this project as a base, so I ended up writing my own stepper motor driver library utilizing interrupts to send the pulses to the motor. I do not believe the StepperDriver library does that, which likely explains the delays you're getting at higher RPM; pulses need to be sent faster the higher the RPM,, meaning everything else has to wait for a long enough free spot of time to run between pulses being sent to the SM driver.

That's why interrupts are the best way to run a SM at high RPM. If you can convert to a dual+ core MCU, that's even better, and another way to solve the delay issue.

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