Continue to Site

Welcome to EDAboard.com

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.

stepperr acceleration

Status
Not open for further replies.

Eng_MC

Member level 1
Joined
Nov 16, 2010
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,865
hi can anyone help me with information on how to design acceleration and decelration for stepper motor controlled by a pic16f74:?:
 

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
 

Hi Friend

For Stepper motor acceleration and deceleration, You must control timing between two pulses of motor.

This is done by this way.
Take one timer like timer0.
Make one data table for delay between two pulse

for ex.

const unsigned int CStepDelayTable[25] = { (0xB643),
(0xB8FB),
(0xBBA7),
(0xBE43),
(0xC0CF),
(0xC34F),
(0xC5BF),
(0xC81F),
(0xCA6F),
(0xCCB3),
(0xCEE7),
(0xD10B),
(0xD31F),
(0xD527),
(0xD71B),
(0xD903),
(0xDADB),
(0xDCA3),
(0xDE5F),
.............
.............
.............
............
}

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.

Shyam
INDIA
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top