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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-28-2007, 06:40 PM
DaRy's Avatar  
Join Date: Nov 2006
Location: Sweden
Posts: 14
DaRy is on a distinguished road
Simple unipolar driver with current limiter

Hi there!

I have made a simple unipolar driver for small steppers. I use this to drive steppers recoverd from discarded 5.25" diskette drives. It is based on a voltage regulator LM317, used "backwards" as a current limiter. The current is limited by the shunt resistor (10 ohm here) and the internal referens voltage of the regulator (1.3 volt), this gives a current of 0.13 A. This can be changed by replacing the resistor. A resistor of 1 ohm would give 1.3 A insted. With a little change and some more components it can be made adjustable. But I wanted to keep it simple instead. The LM317 can handle current up to 1.5 A, and a heat dissipation of 20W each. Heatsink is needed!

The TTL inputs is driven directly from a parallel port, data pin 2 and 3. And I've made a small c program (linux) to test the driver.

Comments... suggestions...


Have a good day!
Attached Images
File Type: png simple_stepper_driver.png‎ (31.2 KB, 540 views)
Attached Files
File Type: zip step_pp.c.zip‎ (775 Bytes, 200 views)
Reply With Quote

  #2   Ban this user!
Old 01-29-2007, 10:38 PM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road

Woah.. very nice! You know of anything like LM317 that can handle more Amps? I am also attempting to design a simple unipolar driver, but what you have looks as simple as you can get!

http://www.cnczone.com/forums/showthread.php?t=30670
Reply With Quote

  #3   Ban this user!
Old 01-30-2007, 05:24 AM
DaRy's Avatar  
Join Date: Nov 2006
Location: Sweden
Posts: 14
DaRy is on a distinguished road

To get more amperage change the voltage ragulator. Here are some other types that might work (I have not tested... so... YAOYO):

LM317T: 2.2A, 40V (in the earlier post I was referring to the min 1.5A, not typical)
LM317HVT: 2.2A, 60V
LM338K: 5A, 35V
LM350T: 3A, 36V
LT1083CP: 7.5A, 31V
LM1084IT-ADJ: 5A, 31V

The higher current versions seems rather pricey except LM1084...
There is one more option and that is to use a powertransistor in conjunction with the regulator, but this ofcource adds to the complexity. Note that for some reason using this bridge the coils release voltage spike goes away. I'm not sure why, but I'm unable to messure any spikes at all (therefore I've removed these protective diodes, to add to the simplicity)

I forgot to mention that the driver is a fullstep 2fase driver that and it needs a qudra...um... something input sequence, but only using two signals instead of four.

Happy testing!

Last edited by DaRy; 01-30-2007 at 08:37 AM. Reason: Wrong with diodes i series.
Reply With Quote

  #4   Ban this user!
Old 02-06-2007, 04:55 AM
 
Join Date: Sep 2005
Location: Italy
Posts: 7
Brandano is on a distinguished road

Can this design be adapted to drive each coil in turn? I don't have much experience with electronics, electronics based on discrete components is black magic to me. How is the "matching pair" lm317 triggered?
Reply With Quote

  #5   Ban this user!
Old 02-06-2007, 10:05 AM
DaRy's Avatar  
Join Date: Nov 2006
Location: Sweden
Posts: 14
DaRy is on a distinguished road

Yes you can drive each coil individually (you need halfstep I guess), but this requires a negative voltage... See the last attachment below. Beware, this circuit is untested and may not work, and burn... You have been warned!

I will try to explain the "matching pair" circuit.
See attachment 1. The LM317 acts as a voltage follower. The OUT is 1.2V higher than the ADJ and if you raise the ADJ then OUT will follow. If ADJ is grounded OUT will be 1.2V. The resistor will have 1.2V over its terminals and this will generate a constant current of 0.12A independent of the input voltage to the regulator. It is this current that then drives the stepper coil (not shown).

See attachment 2. Now we have two opposing regulators. Regulator B Has ADJ to ground, and so its OUT pin will set to 1.2V. Assume the current flows through B, and this drive one coil (not shown). Now if we raise the ADJ voltage on A just a tiny bit so its OUT voltage goes to 1.25V. B senses this tiny raise and lower its current to compensate so much that it is completely turned off. And now the current flows through A instead.

Does this explain it?
Attached Images
File Type: png expl_1.png‎ (8.5 KB, 122 views)
File Type: png expl_2.png‎ (12.4 KB, 102 views)
File Type: png stepper_single.png‎ (11.7 KB, 128 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-06-2007, 11:00 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

You really only need two LM317...LM350. One for each phase in the centertap. Now where in a simple full step of simple half step sequence do you ever have both more than one/half phase energized at the same time. if you want to control the seq via a parallel port then put a simple mosfet switch on each of the 4 coil legs.
Attached Images
File Type: png USU.png‎ (9.0 KB, 370 views)
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #7   Ban this user!
Old 02-06-2007, 12:35 PM
DaRy's Avatar  
Join Date: Nov 2006
Location: Sweden
Posts: 14
DaRy is on a distinguished road

Yes, you can do it with only two regulators... But atleast here in sweden one IRL640 will cost more then twice as much as one LM317 (and the complexity: six power componenets instead of four per motor)...
Reply With Quote

  #8   Ban this user!
Old 02-06-2007, 01:29 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Have you tried the circuit? If the coils were purely resistive I would see no reason your circuit wouldn't work, but they are not purely resistive. I would be concerned that when changing states, the field collapse would cause a start of a potentially unstable circuit that could result in a nice oscillator?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #9   Ban this user!
Old 02-06-2007, 02:10 PM
DaRy's Avatar  
Join Date: Nov 2006
Location: Sweden
Posts: 14
DaRy is on a distinguished road

Yes, it works beautifully now here on my desk... tested on a experiment board (see http://www.cnczone.com/forums/attach...4&d=1170699140). I guess it is the regulators job to do just that, supress noise and stabilize.

I was concerned with the coils release spikes, but for no apparant reason there was no spikes. Not a single volt. Can't really grasp why but, well, I wont complain or so. There is however normal back-EMF when the motors run at high speed. So there has to be some voltage space between LM317 max and supplied voltage.

Last edited by DaRy; 02-06-2007 at 02:12 PM. Reason: broken link
Reply With Quote

  #10   Ban this user!
Old 02-07-2007, 05:02 AM
 
Join Date: Sep 2005
Location: Italy
Posts: 7
Brandano is on a distinguished road

DaRy, thanks for th explanation, I doubt I'll ever be able to think in anything other than a "digital" mindset, but you made it simple to understand.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-22-2007, 10:22 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road
Thumbs up

Excellent idea with the 317´s...

If any switching noise is present you couls add 2 100nF caps from Vin to GND and From Vout to GND.

It should kill spikes and noise generated if any present...

Regards from Denmark...

666
Reply With Quote

  #12   Ban this user!
Old 05-22-2007, 10:24 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road

And the caps should also prevent the device from oscillating...
Reply With Quote

Reply




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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unipolar Stepper run with Bipolar Driver bcromwell General Electronics Discussion 38 11-26-2009 04:10 AM
HobbyCNC Unipolar Chopper Driver Kit! HobbyCNC Product Announcements & Manufacturer News 1 11-09-2009 08:40 PM
Simple Current Limiting Chopper Circuit??? fairorgan Stepper Motors and Drives 1 01-20-2007 11:06 AM
current per phase, unipolar bipolar Ragnarok Stepper Motors and Drives 8 02-22-2006 09:57 PM
Simple unipolar schematic, opto isolated Konstantin General Electronics Discussion 1 03-31-2004 05:02 AM




All times are GMT -5. The time now is 05:20 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