About stepper motors controlling (help)

I'm looking for the best way for stepper motor controlling: I tried to approximate the continuous space versus time curve, calculating the time intervals where space increase one but it requires square root and divisions that whould force me to choose a very fast microcontroller/dsp. I've looked for some commercial controller and I've seen that all of them have a cycle loop: seems like they don't control directly space; they instead update the speed at any control cycle approximating so the speed versus time curve: it is correct ?

Thanks in advance.

Simone Navari.

Reply to
Loading thread data ...

Have a look at the bottom half of this page:

formatting link
and also check the Silabs application note:
formatting link
(sorry if that wraps in your newsreader) Which takes the technique one stage further so that you only need a single table of pre-calculated timer values for any values of acceleration.

Consider also using a timer in your microcontroller as a rate generator to send a pulse train out to the stepper driver at a known frequency. Vary this for the speed. However, you will need either encoder inputs to tell you how far you really moved or some way to count the pulses sent to the motor, assuming no loss of steps.


Reply to
Peter Harrison

Not necessarily. You don't usually need great accuracy/resolution. Consider a look up table (possibly with interpolation) to calculate pulse width.

Cheers TW

Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.