AnsweredAssumed Answered

Stepper motor Speed Ramp

Question asked by Juan Carlos Orozco on May 21, 2011
Latest reply on Jun 3, 2011 by bigmac

hello, as the title says i´m trying to do a speed ramp for a slo-syn stepper motor.

I´m using DEMO9s08LL16 board, an example of my code (not speed ramp):

 

PTCD_PTCD4 = 0;

delay(10)   //cpu cycles 10 multiplies 100 cycles

PTCD_PTCD4 = 1;

delay(10); //cpu cycles

PTCD_PTCD4 = 0;

delay(10)   //cpu cycles

PTCD_PTCD4 = 1;

delay(10)   //cpu cycles

PTCD_PTCD4 = 0;

delay(10)   //cpu cycles

PTCD_PTCD4 = 1;

delay(10)   //cpu cycles

 

If I decrement the delay time the motor will go faster, but in order to speed it, i need to have a speed ramp.

 

I know speed ramps change the starting delay and decrement it.

 

greetings,

 

Skaptor

Outcomes