"Jog" type inputs for stepper motors controllers
Benj
Posts: 66
I would like to use a prop for handling 4 stepper motors. I would be using DRV8825 or similar type drivers on the steppers. I'm sure this is pretty simple, but I need to be able to have an external set of buttons that (if anyone has experience with CNC) will "jog" the motors. After a certain amount of time, I want the buttons to be disabled and the motors to "home" themselves to a set of limit switches.
I've looked at the unipolar driver in the OBEX, but am not sure how to get started with inputting the external button signals into actually sending the direction and step signals.
Can anyone push me in the right direction?
If I can get that part working, then I will tackle the "homing" portion.
Benj
I've looked at the unipolar driver in the OBEX, but am not sure how to get started with inputting the external button signals into actually sending the direction and step signals.
Can anyone push me in the right direction?
If I can get that part working, then I will tackle the "homing" portion.
Benj
Comments
Will ramping be a requirement of the jog or just a steady pace?
What do you mean by having the buttons disabled? Is this just basically a requirement of a button press initiating a direction then finding home?
You mention unipolar, are you bound to uniplar drivers, or is bipolar okay?
How many buttons do you want and what other IO is required by your project?
Benj
Sounds a bit challenging, but of course it can be done.
There are still more questions and decisions must be made before proceeding.
For instance, how much torque will be required from the motors? Motor torque is going to be a key factor in motor and driver selection. Once you find a motor that has the desired torque, a driver must then be selected to match the amperage of the motor. Additionally, the selection of the driver, will also be based upon the type of motor. For example, many unipolar stepper motors can be driven by bipolar drivers, but you cannot run a bipolar motor on a unipolar driver. I personally use hybrid unipolar stepper motors to run on bipolar drivers. If you decide to go in a similar fashion, I can certainly help you, because I have been writing several software drivers for this particular setup over the past several years. However unipolar motors is not the key to the software, but rather the bipolar drivers. When selecting motors based upon torque, you should select motors that are either bipolar or unipolars that can be wired up as bipolar, to enable them to be run on bipolar drivers.
Bipolar drivers require a step and direction input. The direction input is basically a set and forget situation, while the step input requires a pulse to keep it moving. Just recently, I released a new stepper driver object within the forum, that I had written for bipolar drivers, and it works very well, once you have the paramenters dialed in correctly. Here is a link to that new driver: http://forums.parallax.com/showthread.php/159853-New-Stepper-Driver-Object-A-Variant-Of-PulseTheStepPin
With some careful thought, this driver can be altered to perform the tasks that you desire.