CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > Stepper Motors and Drives


Stepper Motors and Drives Discuss stepper motors, drivers and related topics here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-15-2010, 08:25 AM
 
Join Date: May 2010
Location: Malta
Posts: 3
mykill is on a distinguished road
Speed Problem with Stepper

Hello this is my first post.

I've got a bit of a problem. I am working on a project where we need to use stepper motors for motion.

I designed an L297-L298 combo driver for the stepper based mainly on design for the controller of the reprap machine. I interfaced it with arduino and it works fine. The stepper motor I am using is KL34H280-45-8B.

www.kelinginc.net/KL34H280-45-8B.pdf

The only problem is that the maximum speed I am able to reach is of 170 rpm. This is too slow!! I am sure the motor is capable of faster speeds. Above that speed the stepper starts vibrating and produces no motion.

I am current supplying 12V to the motor via an old pc psu. Is this the reason why I am not able to achieve higher speeds or is it because a max current limit of 2A is too low? Or is it something software related?

I attached the code.

Hope you can help me out.

Thanks.
Attached Files
File Type: txt Stepper Code.txt‎ (1.3 KB, 56 views)
Reply With Quote

  #2   Ban this user!
Old 05-15-2010, 09:43 AM
johnmac's Avatar  
Join Date: May 2007
Location: USA
Posts: 376
johnmac is on a distinguished road

I think you need to replace the PC power supply with one that produces more voltage. Do not exceed the voltage rating of your stepper driver. More amps will give you more torque, too. Again, the driver may be the limiting factor.

John
Reply With Quote

  #3  
Old 05-15-2010, 09:47 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,463
ger21 is on a distinguished road
Buy me a Beer?

If it's wired Unipolar, then you're getting less than half the rated torque at 2 amps. And for maximum rpm, you'll want about 48V, and you'll need to supply 4.5amps.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #4   Ban this user!
Old 05-16-2010, 03:17 PM
James Newton's Avatar  
Join Date: May 2005
Location: USA
Posts: 756
James Newton is on a distinguished road
Buy me a Beer?

Actually, if you wire it bipolar, make sure you use parallel bipolar, and not series, because series bipolar will actually top out at a lower RPM than unipolar; all other things being equal.

Unipolar looses torque less rapidly at higher speeds than people think. In fact, unipolar and parallel bipolar actually are pretty close to each other on top end speed in most cases.

See:
http://techref.massmind.org/techref/...onnections.htm for comparisons of the different types of connections and the advantages and disadvantages of each.

The primary limiting factor for top end speed, as far as I know, is how fast the coil can change it's magnetic field strength to pull the stator to the next position. A motor with lower impedance will turn faster. Higher voltage, as John and Gerry suggest, will allow the same driver to push the field to it's desired strength faster.

Another feature that will increase speed is active current regulation. If the driver measures the current flowing through the coil, and turns the FULL available voltage on until the current (and so the field) has built to the desired level before backing the voltage off to the correct level, it will allow faster movement with the same voltage.

I know the L297-L298 senses current in order to limit max drive, but I'm not sure if it actively regulates current buildup between steps. Anyone know?
Reply With Quote

  #5   Ban this user!
Old 05-16-2010, 04:39 PM
 
Join Date: Aug 2008
Location: UK
Posts: 74
serriadh is on a distinguished road

Originally Posted by mykill View Post
The only problem is that the maximum speed I am able to reach is of 170 rpm. This is too slow!! I am sure the motor is capable of faster speeds. Above that speed the stepper starts vibrating and produces no motion.
Sounds an awful lot like 'mid-band resonance'; a problem that can effectively paralyse steppers in the slow-to-fast transition. Google for it (many of the results will be from this site!) to see how other people go about solving or avoiding the issue.

Off the top of my head, using less than full steps (I'm pretty certain your setup will do half-stepping with no additional effort on your part) helps a reasonable amount. Also try just pushing it faster to get out the other side of the resonance band.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-17-2010, 04:01 AM
 
Join Date: May 2007
Location: UK
Posts: 702
wildwestpat is on a distinguished road

Note that you say 'we' need more speed. Are you developing the motor drive as a separate part of the project? I only ask as stepper motors work best when they have a load to work against. With no load the spindle of the motor can twitch as the magnetic fields are switched. The action is to oscillate about the step mean position and this rapidly develops into a larger oscillation that eventually stops the motor rotating. This has been pointed out by Serriadh.

There is not much point in testing further without the mechanics as the addition of the load will alter the resonance tendancy.

Try accelerating hard past stall point by demanding say 300 rpm. If the motor rotates then you have a mid band resonance problem and could just program out any demands for speeds in this band.

There threads on this site giving details of dampers (rattlers) or just tighten the mechanism.

A quick test is to hold onto the motor spindle (wear leather gloves if it is a big motor!) between the fingers to add load and try accelerating to see if the stall speed is increased. If the speed is increased by pinching the motor shaft then you have a case of resonance to sort out. Add daping in the form of friction or mechanical inertia.

Hope this helps Regards Pat

Last edited by wildwestpat; 05-17-2010 at 04:08 AM. Reason: Some typos corrected
Reply With Quote

  #7  
Old 05-17-2010, 06:25 AM
Gold Member
 
Join Date: May 2005
Location: UK
Age: 48
Posts: 264
davidmb is on a distinguished road

Hi mykil,
one thing to watch out for is the 5v logic supply must be supplied to the 297/298 before the high voltage, otherwise the 298's sort of disappear ( speaking from experience ).
__________________
David
( never stop learning )
http://www.steamcastings.co.uk/
Reply With Quote

  #8   Ban this user!
Old 05-17-2010, 10:53 AM
James Newton's Avatar  
Join Date: May 2005
Location: USA
Posts: 756
James Newton is on a distinguished road
Buy me a Beer?

serriadh and wildwestpat are absolutely right, and I forgot to mention it as well: Resonance could also be causing your problem. Resonance is part of any stepper drive system just due to the fact that they step! In addition to mechanical damping through inertia or friction, moving from a full step mode into a microstepping mode will reduce resonance. Also, some drives, like our Linistepper, can further reduce resonance by smoothing the transitions between microsteps to practically eliminate resonance electronically at certain speeds. I believe the Gekko drivers do this as well, although with a different method since linear drive is not practical at the higher powers they support.
Reply With Quote

  #9   Ban this user!
Old 05-19-2010, 02:34 PM
 
Join Date: May 2010
Location: Malta
Posts: 3
mykill is on a distinguished road

I've tried giving the stepper more voltage however I did not see an increase in speed. The stepper is part of a pick and place mechanism and it makes part of the motion system of the x and y axis. The stepper is coupled to the screw thread via a sprocket and chain. One thing I noticed is that when I give the motor certain rpms the motor doesn't turn and when I help it a bit with my hand it starts the rotations at that speed.

I assume that it needs more torque to overcome the initial inertia. I will try to build a higher current driver.

Also I read about accelerating the stepper to a desired speed however I am uncertain how to go about this. When I tried implementing such a system on software I did not achieve the desired results. Any ideas on this matter???

Thanks.
Reply With Quote

  #10   Ban this user!
Old 05-19-2010, 03:58 PM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

All of the above comments may well be true, but I'm guessing you are running this motor in bipolar series configuration? If thats the case you'll never get anything like the speed you want with a 297/298 design simply because of slow decay characteristics of the L298 driver and the inductance of the motor...

I have motors that should in theory run at 600+rpm but in practice wont get about 300 before they stall (running on 36v which is the max for the L298 driver), and, before anyone says it, I know its not midband resonance. Look at the traces in the pictures..

Trace 1 is at 150rpm - see the 0.7mS delay before the current ramp... thats the L298 recovering from the back-emf of the last reversal. Then you can see the nice ramp up of current till it hits the current limit and the chopper maintaining that limit (in this case 1.4A).

Now look at trace2 - 225rpm. Same 0.7mS delay, same ramp, same chopping, but less of it of course...

Trace 3 - 270rpm. Same 0.7mS delay, same ramp but now we dont get any chopping because theres no time left before the next cycle...

Anything faster than 270rpm with that motor and it never gets enough current into the coil.. even off load it stops spinning and makes graunchy noises at about 290rpm but you can give it some hand assist and it will run. But 300rpm is the absolute limit! Adding damping or load makes no difference at all. It simply that the bipolar transistors in the driver cant decay the current in the coil fast enough because at no time do the two bottom transistors turn on together to 'short the coil'. I have other (MOSFET based) drivers that will run the same motor at a much faster rate.
Attached Thumbnails
Click image for larger version

Name:	stepper1.GIF‎
Views:	31
Size:	23.7 KB
ID:	107440   Click image for larger version

Name:	stepper2.GIF‎
Views:	29
Size:	21.1 KB
ID:	107441   Click image for larger version

Name:	stepper3.GIF‎
Views:	28
Size:	18.9 KB
ID:	107442  
__________________
If you're in Europe why not come and visit the UK CNC Community at http://www.mycncuk.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-19-2010, 04:10 PM
 
Join Date: May 2010
Location: Malta
Posts: 3
mykill is on a distinguished road

Originally Posted by irving2008 View Post
All of the above comments may well be true, but I'm guessing you are running this motor in bipolar series configuration? If thats the case you'll never get anything like the speed you want with a 297/298 design simply because of slow decay characteristics of the L298 driver and the inductance of the motor...

I have motors that should in theory run at 600+rpm but in practice wont get about 300 before they stall (running on 36v which is the max for the L298 driver), and, before anyone says it, I know its not midband resonance. Look at the traces in the pictures..

Trace 1 is at 150rpm - see the 0.7mS delay before the current ramp... thats the L298 recovering from the back-emf of the last reversal. Then you can see the nice ramp up of current till it hits the current limit and the chopper maintaining that limit (in this case 1.4A).

Now look at trace2 - 225rpm. Same 0.7mS delay, same ramp, same chopping, but less of it of course...

Trace 3 - 270rpm. Same 0.7mS delay, same ramp but now we dont get any chopping because theres no time left before the next cycle...

Anything faster than 270rpm with that motor and it never gets enough current into the coil.. even off load it stops spinning and makes graunchy noises at about 290rpm but you can give it some hand assist and it will run. But 300rpm is the absolute limit! Adding damping or load makes no difference at all. It simply that the bipolar transistors in the driver cant decay the current in the coil fast enough because at no time do the two bottom transistors turn on together to 'short the coil'. I have other (MOSFET based) drivers that will run the same motor at a much faster rate.
Thanks for the explanation. As a matter of fact I am using the stepper in bipolar series configurations. What mosfet based drivers are you using to run your steppers? Are any of those open source or have you bought them?

Thanks.
Reply With Quote

  #12   Ban this user!
Old 05-19-2010, 04:33 PM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

Originally Posted by mykill View Post
Thanks for the explanation. As a matter of fact I am using the stepper in bipolar series configurations. What mosfet based drivers are you using to run your steppers? Are any of those open source or have you bought them?

Thanks.
I borrowed them but they are a commercially available unit similar to these and to be honest, for the price, I wouldn't build another set again, there's little difference in cost.
__________________
If you're in Europe why not come and visit the UK CNC Community at http://www.mycncuk.com
Reply With Quote

Reply

Tags
l297-l298, speed




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stepper speed question .xXACEXx. Stepper Motors and Drives 5 07-17-2008 03:12 PM
Stepper motor max speed? Labidus Controller Cards 2 02-23-2008 11:11 AM
EMC 2.2.2 stepper speed Big John T LinuxCNC (formerly EMC2) 2 01-29-2008 10:35 AM
high speed stepper jseiler Stepper Motors and Drives 19 01-17-2008 08:12 PM
Stepper for Spindle Speed danielm Stepper Motors and Drives 3 08-06-2007 11:18 AM




All times are GMT -5. The time now is 02:13 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361