Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Stepper motor acceleration is done by reducing timing between two pulses.
The timing mostly depends on the load.
Deacelartion depends on load and speed of the stepper
Now timer0 load by CStepDelayTable[0]
and wait for timer0 over flow, when timer over flow, apply one pulse and timer 0 load by CStepDelayTable[1]
and wait for timer0 over flow, when timer over flow, apply second pulse and timer 0 load by CStepDelayTable[2]
and so on.
thats way motor running with acceleration.
For deceleration, apply this logic in reverse direction.
For ex.
timer0 load by CStepDelayTable[25]
and wait for timer0 over flow, when timer over flow, apply one pulse and timer 0 load by CStepDelayTable[24]
and wait for timer0 over flow, when timer over flow, apply second pulse and timer 0 load by CStepDelayTable[23]
and so on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.