BS2 Control of Bipolar Stepper Motor
sjenny
Posts: 25
in BASIC Stamp
Two of my students would like to control a bipolar stepper motor with a BASIC Stamp 2. The motor is an Anaheim Automation 17Y302S-LW4 high torque stepper motor: http://www.anaheimautomation.com/manuals/stepper/L010174 - 17Y Series Spec Sheet.pdf. We found information about BASIC Stamp control of a stepper motor at http://smashingrobotics.com/controlling-a-stepper-motor/ and information about driving a bipolar stepper motor through an H-bridge IC at http://www.jasonbabcock.com/computing/breadboard/bipolar/index.html. We have wired up the SN754410 dual H-bridge with an external 12V battery supply as shown in the jasonbabcock reference. The motor hums but does not turn. Can anyone help us figure out what to do next?
Many thanks, as always, for being a lifeline of support.
Many thanks, as always, for being a lifeline of support.
Comments
Thanks again for your help!
Also, what is that blue wire doing that seems to go from the breadboard and stick onto the stepper motor?
Can't thank you enough for your help!
The code from that website isn't very efficient. This could be done much more elegantly and easier. If I had a bipolar stepper motor I'd hook one up and show an example, but alas I have only unipolar stepper motors.
Thanks again for your help.
Just don't use the center "COMMON" connection on the unipolar and treat it like a bipolar instead. It should be enough for proof of concept. (See Below)
sjenny,
As far as the motor humming and not turning ...
1) It may not be getting enough power. Double check your circuit and make sure that your power supply(batteries) is(are) providing adequate power. Do you have a meter you can measure voltages with?
2) You might be giving it a pulse that is too fast. Start out slow and then ramp the speed up.
Can you place your fingers on the shaft and feel it vibrate? .. or is it just audible?
Thanks for your help!
If the problem is that we are bouncing from 2 different phases without changing polarity, can you suggest what we need to change?
Many thanks again for your help. Didn't think a stepper motor would be as difficult to control as it is.
Thanks again for the help.
Under Downloads & Documentation is the StampWorks manual and the code files. In the StampWorks manual there is a section on driving a Stepper Motor. It is specifically for a Unipolar Stepper Motor, however the phase outputs could also control a Bi-Polar if the phases are properly wired to an H-Bridge chip. I've used the L293D myself.
As far as the outputs, you can disable the outputs of many H-Bridge chips and those outputs float. But in this case you don't want to disable them. Allow the outputs to be either high or low, which drives the corresponding driver output high/low.
The pictures you provide make it almost impossible to see the connections between the Stamp and the driver. Most of the wires obscure other wires where they actually connect. I always make it a habit to include connection lists in the program comments. Be sure the list reflects how you ACTUALLY have the connections, not copied from an online circuit diagram. Makes troubleshooting a little easier, especially when asking for help from others.
As a troubleshooting aid, connect 4 leds with suitable series resistors to the driver outputs and run the program with longer pauses to actually be able to see what the outputs are doing. Connect the anode to the driver output, and the cathode through a 3K or more resistor to ground.
You might try reversing the connections to one of the coils, such as Orange to where Black is and Black to where Orange was.
Also, thanks for following up. :nerd: