Bipolar Stepper motor
Bzmicro7
Posts: 12
I have Boe-Bot educational kit. I need to drive 2 bipolar stepper motor. I need help with picking up the right stepper motor driver for this project. Additional wiring diagram and code would be greatly appreciated.
Comments
Note that the example is for a single stepper. It would be easy to modify the program to control one of the two motors at a time, but simultaneously running two motors would be difficult and you might consider using some kind of external stepper motor controller. Pololu makes a variety of stepper drivers and controllers. Here's one used with bipolar motors.
Mike, out of curiosity I looked at that manual and that example looks like it is for a unipolar stepper motor. Wouldn't a bipolar motor require something like an L298 and alternating the current through the coils? When I looked into that I decided it would be easier to use a Pololu module which only requires two spins for step and direction.
Then you sort through your driver code, using the ULN2x03 code as a model: http://www.parallax.com/Portals/0/Downloads/docs/prod/motors/Stepper_Motor_27964.pdf Instead of switching the 4 different coils of a unipolar, you will alternate driving your A & B coils "positive and negative" using the L298 inputs in1, in2, in3 and in4. You could use either high/low commands or OUTL/OUTH with DIRS.
My unipolar stepper experiments have used "full step", which is energizing two (of 4) coils at a time in a pattern like: 12 23 34 41 (repeat).
I would assume yours would be A+B+, A+B-, A-B-, A-B+ (repeat) but check on that.
I did learn that you want to switch everything off after you stop your motor. If you leave coils energized, it's drawing the maximum current when the motor is stopped and your motor can overheat (maybe even melt wiring insulation) just sitting there. So code carefully and have fun!
Best regards.
Best regards
Why did you give up on the 298 h-bridge?
See if the L297 stepper controller interests you. Nothing that a Stamp can't do, but it handles low-level motor management, leaving your Stamp free to do other things (make coffee, do the laundry, etc).
Best regards.