EmbeddedRelated.com
Forums

micro-stepping pwm motor

Started by Luis March 2, 2005


Hi all !
I need make a stepping motor 1.8 in micro-stepping mode in: 0,05 .

who know to build it whith PIC ??

I will try with CI-3973 (Alegro), but I need a exemple to run it...

(sorry my english...)




--- In , "Luis" <fzanoto@y...> wrote:
>
>
> Hi all !
> I need make a stepping motor 1.8 in micro-stepping mode in: 0,05 .
>
> who know to build it whith PIC ??
>
> I will try with CI-3973 (Alegro), but I need a exemple to run it...
>
> (sorry my english...)

Hi Luis,

The Allegro line of stepper motor controller chips includes full
microstepping, up to 8x. your 1.8 per step motor could be
controlled to 0.9 (half step) 0.45 (quarter step) and then 8x
which would be 0.225 degrees.

from there it is most common to use a gear reduction by using pulleys
or some such. since you want better than 32 microsteps, you will
need to design your own driver.

Read the allegro data sheet
http://www.allegromicro.com/techpub2/stp/stp01-2.pdf
http://www.allegromicro.com/techpub2/stp/stp99-11.pdf and the Microchip data sheets
AN907 - Stepping Motors Fundamentals
AN822 - Stepper Motor Microstepping with PIC18C452
AN822 Source Code - Stepper Motor Microstepping with PIC18C452
AN906 Stepper Motor Control Using the PIC16F684 Once you understand the mathematical relationships between channels,
you will be able to determine the duty cycle on each pulse stream for
each axis.

But, my recomendation is to get 400 setep per rev motor (0.9/step)
and an 8x chip from Allegro and use timing belts to get the final
movement you want.

Dave