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-17-2007, 08:03 AM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road
Help Request: Simple Stepper Hardware with EMC's HAL

Hello all,

I have some 8 wire 5.4V 1.5A 0.9 deg/step stepper motors. I think they are in the realm of 100-120 oz/in. For the time, I plan to go unipolar with the steppers. http://www.cnczone.com/forums/showth...t=vexta+8+wire

I have successfully configured EMC's HAL to act as a half stepping 4 phase pulse generator. Pins 1-4 on my parallel port single through an optocoupler. The optocoupler output triggers a combination of 4 transistors... (1 transistor for each phase.)

My power source comes from an old computer. It is a ~150W switching power supply.

My electronics background is "ok" but I have been out of it for a number of years, and have been re-climbing the learning curve.

I need some help picking out an adequate transistor. I think I am looking for a mosfet NPN that can handle at least 1.5A. I managed to parallel a couple (per phase) 800mA NPN's I had laying around for a test... stepper moves fine, but when I stop the stepper the transistors get very hot. (They were only rated at 1.8W a piece) These were not meant to be permanent... just a test.

I have also noticed that I can run my steppers faster at greater 5.4V... is this a bad idea? Do I need to add something else to the circuit to protect the stepper?

Should the power source be modified in any way? Any other suggestions or words of caution? Any other information I can supply?

Thank you in advanced for your help.
Reply With Quote

  #2   Ban this user!
Old 01-18-2007, 09:32 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Feeding more than the 5.4 volt will create currents higher than the Imax stated on your datasheets for that motor. In order to do that, without risking damaging your motors, you need to limit the current by either adding current limiting resistors, en series with each phase's central tap (the one connected to VCC), or a chopper circuit.

Look at this thread http://www.cnczone.com/forums/showthread.php?t=25361 there is a lot of information there, look also in the Pminmo's website (http://www.pminmo.com/ ) and Gecko's website http://www.geckodrive.com/
Reply With Quote

  #3   Ban this user!
Old 01-18-2007, 02:40 PM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road

Great links! I am familiar with some of those links, but need to study some more.

A couple quick questions. As is now, I have VCC going through the each phase with the central taps on ground. In recent days I have noticed it is usually done the other way around. ( http://www.cs.uiowa.edu/~jones/step/circuits.html ) Is there a particular reason for this?

A chopper seems the best way to go, and the resistor are simple but inefficient. (Does that sound like an accurate assessment?) For now I will probably look at using the resistor method. Since the stepper is rated at 1.5A, and my power source could supply 24V...

24V / 1.5A = 16 Ohms >>> 16 Ohms – {coil resistance} = Resister needed. 36 – 40 watts? Does this look about right?
Reply With Quote

  #4   Ban this user!
Old 01-18-2007, 03:08 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

I have VCC going through the each phase with the central taps on ground. In recent days I have noticed it is usually done the other way around.
Reason: It is easier to drive a low side N-Channel Mosfet (reference to ground) than a high side Mosfet, where you must get between 12 and 15 volts above VCC in order to drive the gate.

A chopper seems the best way to go, and the resistor are simple but inefficient. (Does that sound like an accurate assessment?)
Yes, it does.

24V / 1.5A = 16 Ohms >>> 16 Ohms – {coil resistance} = Resister needed. 36 – 40 watts? Does this look about right?
You will need (24-5.4) / 1.5 =aprox 12 Ohm, 50 watt resistors (2), your resistors will disipate 1.5 x 1.5 x 12 =aprox 28 Watt.

Last edited by kreutz; 01-18-2007 at 04:00 PM.
Reply With Quote

  #5   Ban this user!
Old 01-18-2007, 09:11 PM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road

Originally Posted by kreutz View Post
You will need (24-5.4) / 1.5 =aprox 12 Ohm, 50 watt resistors (2), your resistors will disipate 1.5 x 1.5 x 12 =aprox 28 Watt.
For the heck of it, I measured the resistance of one of the stepper coils... 3.6 Ohms. V = IR >>> V = 1.5A * 3.6Ohms = 5.4V (which is the voltage rating of the motor.) Is it always this straight forward?

Ok 12 Ohms and 28 watts follows... for one coil. Now 2 coils at the same time... the 50 watts follows.. but is it still 12 ohms? If so could you attempt to explain why?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-18-2007, 10:18 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

You have 4 coils in two groups, the coils in each group are joined at the center tap where the connect to VCC. You place each resistor between VCC and this tap. Hence 2 resistors.

From each group only one coil (half) will be activated at the time. So the peak current flowing on each resistor will be about 1.5 amps.

Ohm's Law is always true: I * R = V
Reply With Quote

  #7   Ban this user!
Old 01-18-2007, 10:21 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

50 watt resistors are needed in order to dissipate heat without burning the resistors. You always leave 50% margin on power resistors.
Reply With Quote

  #8   Ban this user!
Old 01-19-2007, 12:58 PM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road

How does the attached image look?
Attached Images
File Type: png unistep.png‎ (39.8 KB, 47 views)
Reply With Quote

  #9   Ban this user!
Old 01-19-2007, 02:01 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Why do you want to use PnP Transistors in that configuration? What kind of driver circuit will you use for that configuration?. Look at the data-sheets for your transistors, your base-emitter junction will be very stressed when switching inductive loads.

Why don't you use Npn transistors, Collectors connected to the coils, emitters to ground, that way they are easier to drive.

Use anti-parallel fast diodes (at least 3 Amperes) across collectors and emitters for each transistor.

Mount your power transistors to a good heatsink, use thermal pads (mica or thermal) between the metal tabs and the heatsink..
Reply With Quote

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

Originally Posted by kreutz View Post
Why do you want to use PnP Transistors in that configuration? ... Why don't you use Npn transistors, Collectors connected to the coils, emitters to ground, that way they are easier to drive.
My test circuit is setup to use NPN, but after reading various sources such as the one I posted above ( http://www.cs.uiowa.edu/~jones/step/circuits.html ) it looked as if the norm was to switch on the ground side of the coil. I asked about the reasoning for this in which you replied:
Reason: It is easier to drive a low side N-Channel Mosfet (reference to ground) than a high side Mosfet, where you must get between 12 and 15 volts above VCC in order to drive the gate.
I took that as meaning it was the recommended method. I guess I am a bit confused now.


Originally Posted by kreutz View Post
What kind of driver circuit will you use for that configuration?.... Look at the data-sheets for your transistors, your base-emitter junction will be very stressed when switching inductive loads.
I am useing EMC's hal to supply the pulses. Hal has a pulse generator, and each phase can be assigned to a pin on the parallel port. Please see page 72 of http://linuxcnc.org/docs/HAL_Documentation.pdf (Step Type 9) for the step type I plan to use.

As of right now, I do not have driver specific transistors picked out... but I will look into the recommendations you made. Thank you again for the help!
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-19-2007, 03:57 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by kreutz
Why do you want to use PnP Transistors in that configuration? ... Why don't you use Npn transistors, Collectors connected to the coils, emitters to ground, that way they are easier to drive.
Look at figure 3.7 on the link http://www.cs.uiowa.edu/~jones/step/circuits.html , that is what I meant.
Reply With Quote

  #12   Ban this user!
Old 01-19-2007, 04:12 PM
 
Join Date: Aug 2006
Location: USA
Posts: 40
adamziegler is on a distinguished road

Originally Posted by kreutz View Post
Look at figure 3.7 on the link http://www.cs.uiowa.edu/~jones/step/circuits.html , that is what I meant.
Ahh!! Yeah I feel dumb. Thank you for your patience.. I understand now!
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





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