Prop driving a stepper motor
Graham Stabler
Posts: 2,510
Nothing all that impressive I suppose by the sound of it but I do have the propeller driving a stepper motor using a counter module in NCO mode, the frequency is updated at regular intervals by the algorithm to implement acceleration, constant speed and decelleration or if the move is short just acceleration and decelleration. All with perfectly lineat frequency increase/decrease. Distance travelled in steps is the frequency applied in each update time period multiplied by that period and the algorithm tweaks appropriately to ensure the wanted distance is acheived.
Here is a video, the speed is restricted by the hardware, 2mm lead, 8X microstepping and 26v on the stepper. In theory it can produce pulse rates up to 40Mhz but that is not useful as you cannot store the distances travelled even if you had a motor/application needing that sort of frequency
www.youtube.com/watch?v=bAgV2vtI468
No code yet but will probably follow, I'd also like to get 2-axis co-ordinated motion working eventually.
If anyone is interested the method uses is based on that of the g-rex motion controller by geckodrive.com.
Cheers,
Graham
Here is a video, the speed is restricted by the hardware, 2mm lead, 8X microstepping and 26v on the stepper. In theory it can produce pulse rates up to 40Mhz but that is not useful as you cannot store the distances travelled even if you had a motor/application needing that sort of frequency
www.youtube.com/watch?v=bAgV2vtI468
No code yet but will probably follow, I'd also like to get 2-axis co-ordinated motion working eventually.
If anyone is interested the method uses is based on that of the g-rex motion controller by geckodrive.com.
Cheers,
Graham
Comments
Graham
Will you post the circuit ? , the soft ? (I never used a stepper motor before, well never had the need, but if you have some soft for brushless 3 phase motors... that will be a deal). Nice work !
Graham
Starting speed is determined by the acceleration acc is added to velocity on each loop.
I'm not sure what you mean by an offset move?
Graham
The motor is not noisey but the combination of motor and leadscrew are, with a ballscrew it would be very quiet.
Graham
I think I have a good understanding of them now. And I'm pretty sure I have all the parts I need. I just don't have the time!
http://www.arcus-technology.com/performax_1cd.php
Or for the minimalist,
http://www.allegromicro.com/en/Products/Part_Numbers/3984/3984.pdf
(They also have lower current versions)
The arcus drives are interesting but the propeller combined with a stepper amp/drive can do exactly the same thing, the propeller could easily take a serial command and convert it into motion except the propeller can produce higher pulse rates too!
Here is another video, I can now set the number of steps accurately, here the motor performs 50 revolutions:
www.youtube.com/watch?v=dwtY6gTwQNs
It also proves it is not an inherently noisy motor [noparse]:)[/noparse]
I also have another video (not posted) that shows what happens if you make the maximum speed too high, its quite weird.
Graham
What these options offer are micro-stepping and PWM constant-current drive which gives much better stepper performance on the speed-torque curve than simple constant voltage drives. The Allegro chips are VERY inexpensive and I would certainly consider marrying them to a propeller design before using transistors or other dumb devices.
For forum readers (re: Maximum speed too high):
Steppers have certain bands of speeds at which they will cease to move smoothly. The motor and the mechanical system to which it is connected start to step unpredictably at certain resonant speeds. There is also a maximum speed at which the torque required exceeds the torque available from the motor -- Under certain stepping conditions, it is also possible for the motor to actually reverse direction.
do you bother to stop the motor when you have it bolted in place? It seemed to take a while to spin down to stop in your video.
Too high speed: probably goes in and out of phase and lurching from speeding up to slowing down.
Fred
Fred,
Yes at the end of a move the motor is stopped although not for long.
In the video with the actuator the acceleration is quite high and the maximum speed is lower. In the video of just the motor because I am running it up to a high speed I make the acceleration quite low (well compared to the max) so the rotor can keep up, the deceleration takes so long because it is coming down from a high speed.
At really high pulse rates I have seen the motor move backwards in a really odd way. In the video it just falls out of sync altogether but amusingly still sounds like it is accelerating, only right at the end does it ever start moving again.
Graham
The stepper should swiftly accelerate and decelerate (limited by system mass and friction) through whatever mechanical resonances your system has to some reliable high speed as suggested by the torque v.s. speed envelope.
While this is not intuitive, too little acceleration can be just as detrimental as too much. Experimentation is normally required to determine suitable parameters for acceleration, start and maximum frequencies. One test is to mount a dial gauge at one end to make sure you're not losing pulses.
But you probably know all this, so I'll sit down and shut up now... : )
Nice work though... I was looking at using the Propeller for just such a purpose.
Why would too low an acceleration be a problem?
When I say really high I really mean really high, far beyond the motor and drive voltage.
Graham
Think of the famous video everyone has seen where the bridge resonated itself to pieces under the right wind conditions. Basically the same principle applies here.
Re really high frequencies: Ah, you are driving the motor using beat frequencies. Fun I suppose, but not too useful...
If you use a constant current driver, you will achieve higher stepping speeds and better performance altogether.
The high frequency was just me exprimenting to see how fast I could run it.
I am using constant current drivers.
Graham
Graham
You're way ahead -- With anti-midband-resonance circuitry (and/or firmware), you may not have to worry about any stalling problem. I'm not sure how this circuitry performs under varying loads in the resonant ranges, but it sounds like you are cutting successfully at a variety of speeds...
I might just order one of those drives...
Graham
I converted it myself and it makes useful parts, the spindle is actually excellent, steel three-slot collets up to 1/8th and up to 20krpm, great for tiny carbide tooling. It uses all thread on the leadscrews and delrin leadnuts and has surprisingly little backlash. Only downside is the limited working envelope.
My site doesn't show it but I have now done quite a bit of work in aluminum, it makes great d-type cut outs!
Hmm, let me find a picture
Graham
No deburring required!
Graham
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Graham
Ouch, less than 6"x2"? the 6 isn't bad imo, but the <2 makes me want to cry.
My budget is almost non-existent. I have motors, I have all I need to prototype my motor drivers, but getting a physical machine to mount them on has proven to be more expensive than I can afford. Even when I find something I could possibly afford, the shipping kills me. My best bet has been that there is a harbor freight outlet in my city, and they should have this http://www.harborfreight.com/cpi/ctaf/Displayitem.taf?itemnumber=47158.
However, I've almost thrown the idea away due to my boss telling me that their machines have lots of backlash. I need to go down there and look at them myself...
I have access to cnc mills and a cnc lathe at work, but I can't even get to a point when they would be usefull to me. I drew up plans for making my own from some scrap metals around the shop, but bearings of different sort raises the price to above mills I could buy. Anyway, starting to sound emo
Nice projects once again, I've been a bit interested in EDM since I found out such a thing existed, going to go read your page some more now.