Eight
Member level 2
Hello,
I am curious about something. Recently I bought a small bipolar stepper motor and a driver that supports microstepping. This driver has 4 outputs (2 outputs and 2 inputs actually) that can be directly connected to a bipolar stepper. It can also take digital input via simple IO pins - three of them are used to configure microstepping, one is for configuring direction, and the last one is used for steps. For each rising edge the driver will increment its step index by one, so technically we can use a PWM generator to control the rotation speed. I am going to use an atmega microcontroller to generate PWM, and control the rest of the IO pins. This means I have control over microstepping as well as the PWM frequency.
My question is how to finetune/optimize the motor rotation. Depending on the required speed, what settings should I use? Should I simply use a certain frequency with no microstepping enabled, or should I double the PWM frequency, and enable 1/2 microstepping? Should I quadruple the frequency, and use 1/4 microstepping? What about other slower/faster speeds? Is there any cookbook approach to calculating the parameters for a given speed? I hear it's best to use no microstepping for high rotation speeds. The stepper motor is going to be used to drive a small peristaltic pump.
Thanks for any help!
EDIT: This is the driver: https://www.pololu.com/product/2133
I am curious about something. Recently I bought a small bipolar stepper motor and a driver that supports microstepping. This driver has 4 outputs (2 outputs and 2 inputs actually) that can be directly connected to a bipolar stepper. It can also take digital input via simple IO pins - three of them are used to configure microstepping, one is for configuring direction, and the last one is used for steps. For each rising edge the driver will increment its step index by one, so technically we can use a PWM generator to control the rotation speed. I am going to use an atmega microcontroller to generate PWM, and control the rest of the IO pins. This means I have control over microstepping as well as the PWM frequency.
My question is how to finetune/optimize the motor rotation. Depending on the required speed, what settings should I use? Should I simply use a certain frequency with no microstepping enabled, or should I double the PWM frequency, and enable 1/2 microstepping? Should I quadruple the frequency, and use 1/4 microstepping? What about other slower/faster speeds? Is there any cookbook approach to calculating the parameters for a given speed? I hear it's best to use no microstepping for high rotation speeds. The stepper motor is going to be used to drive a small peristaltic pump.
Thanks for any help!
EDIT: This is the driver: https://www.pololu.com/product/2133