sandy9159 / DIY-Arduino-based-Guitar-Pickup-Coil-Winder

This is mini Arduino based machine to wind guitar pickup coil.
GNU General Public License v3.0
40 stars 10 forks source link

Stepper Motor Delay #1

Open Talal-Zahid786 opened 2 years ago

Talal-Zahid786 commented 2 years ago

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 commented 4 months ago

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

domiluci commented 4 months ago

@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.