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  
Old 08-21-2004, 12:36 AM
chuckknigh's Avatar
Gold Member
 
Join Date: Apr 2003
Location: United States
Posts: 594
chuckknigh is on a distinguished road
Question: Starting a stepper driver?

OK, I've been thinking about the simplest possible driver circuit, thinking about the open source project. That would be a 4 transistor (per axis) driver, using wave control under TurboCNC. A few transistors, some diodes, and some resistors wired up to the parallel port should suffice, though I welcome other input.

My reason for asking is, I'm working on a <$20 "proof of concept" model with a single axis. A CNC Primer unit, if you will...which can function as a Z axis when completed. I intend for it to be an "I can actually do this!" type of project...simple, cheap, and easily understandable.

But, the more I think about it, the worse it gets. (Of course, I have a tendency to overanalyze everything)

OK...we have 4 coils...numbered 0, 1, 2, and 3. The motor is "stopped" at a random coil, let's say coil 2, and power is removed / computer is rebooted. That means the next step would require a pulse on coil 1 or 3, depending on the direction...that would be the next step.

But, since there's no feedback as to the position of the rotor, how does TCNC know where to start the pulses when it's first started? It could be, depending on the orientation, as much as 2 steps off at the start.

Extending this logic, it would seem this problem would exist in all stepper driver circuits. Any time power is removed, do the chips "zero" themselves back to the initial step? Seems like that's how it would work.

So, how is this situation handled? I really can't figure it out. Help?

-- Chuck Knight

Last edited by chuckknigh; 08-21-2004 at 12:43 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-30-2004, 05:03 PM
 
Join Date: Apr 2004
Location: United States
Posts: 149
berin is on a distinguished road

The easyest way to solve the problem is to goto home then go back to where you where last. But this only works if you know where you where in the middle of a running cycle when using some kind of a drawing/cutting setup.
As for the easy single axis driver, you need only 4 darlington transisters which have built in diodes, You DONT have to have 4 resisters for the stepping phase controll when run directly from the parallel port but it is reccomended. As for setting up a home switch thats easy enuff.
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 08-31-2004, 12:03 AM
chuckknigh's Avatar
Gold Member
 
Join Date: Apr 2003
Location: United States
Posts: 594
chuckknigh is on a distinguished road

The resistors I mentioned were pull-up resistors, so that the signal would be sufficient to trigger the transistor switching.

Are these not necessary with this setup? I'm assuming a "not quite" compliant port...they all seem to be not quite compliant.

-- Chuck Knight
Tweet this Post!Share on Facebook
Reply With Quote

  #4  
Old 08-31-2004, 04:00 AM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

When the drive starts up, it does this in one known state. It energizes the windings with this state and the motor assumes the nearest position that corresponds to this state. So it may move up to half a step in an arbitrary direction when powered up. In fact you can strike "may". Usually you can hear the motor move as you turn on the drive. From there on, the driver just sequences around left or right and assumes the motor follows it. And as mentioned, the homing routine makes it possible to synchronize to the actual position of the machine.

There are tons of copies of "your circuit" already on the net. Go Google. What is your task is to sort out those that does not work. No diodes to kill the spikes from the motor is the most common. If you try that, make sure your transistors can be changed in a few seconds, and buy a lot of them.
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 09-01-2004, 11:33 AM
chuckknigh's Avatar
Gold Member
 
Join Date: Apr 2003
Location: United States
Posts: 594
chuckknigh is on a distinguished road

I did google for it -- without the right search terms, they're a little hard to find. I found one in an old robotics book, though...

Regardless, that's what I was aiming for. Something which, despite buying parts at Radio Shack, could be built for $5 or so. Even on a breadboard, if desired.

It doesn't have to work beautifully -- just work as a proof of concept model for a single axis, to prove to people that they can actually do this CNC thing, without having to pay $100+ for Geckos, before anything even moves.

I'm not an electronics guy. If I can build one of these (and ever find enough continuous spare time to focus) then anyone can.

-- Chuck Knight
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-01-2004, 09:10 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

I thought I had submitted my answer but I don't see it. Anyway it the motor goes to the state the drive resets to. Think unipolar all four swtich lines open. Motor won't move. If it resets and one of those lines is switch on, the motor will go to that position, direction is only predictable if it the motor in the power off state is positioned at an adjacent coil.

Phil
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-01-2004, 10:00 PM
Konstantin's Avatar  
Join Date: Feb 2004
Location: Mexico
Posts: 464
Konstantin is on a distinguished road

What about that Luberth wave drive.
Only one IC used. LNxxxx dont recall.
The simplest you can get.


Konstantin.
Tweet this Post!Share on Facebook
Reply With Quote

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

ULN2803 a darlington transistor driver set with built in clamp resistors. They can be run directly off the parallel port. BUT only sink 500ma, and as I recall there is a watage and sum total limit on the combination of the drivers.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-02-2004, 10:37 AM
 
Join Date: Oct 2003
Location: Sweden
Age: 33
Posts: 398
arvidb is on a distinguished road

I built a universal I/O interface for the parallel port some 7 years ago. It used the ULN2803 and I ran steppers with it (the kind you can find in 5.25" disk drives). I did however not know about the clamping diodes, so for some mysterious reason I had to change them every now and then... It was breadboarded, BTW, and ran from a DOS program I wrote in Pascal.

But it worked!

Arvid
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-02-2004, 09:14 PM
 
Join Date: Apr 2004
Location: United States
Posts: 149
berin is on a distinguished road

you know now that I think about it, there is one other way to get back to the very possion you left from if the computer should shut down. Say you use a pic chip like the 16f867 or there abouts. It could be the step to phase converter as well as a number of other things, and a half/full step converter. but it could also remember where it is, just by counting. a quick home and it could be right back where it started. OR it could remember what winding was energised LAST and start that one up again so the motor wont move anyware!

The nice thing about that is that it could also read posision encoders.

speak of has any one created a ONE chip, 3-4 axis all in one step to phase converter? using some kind of a single pic chip?
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-02-2004, 09:21 PM
 
Join Date: Apr 2004
Location: United States
Posts: 149
berin is on a distinguished road

Originally Posted by pminmo
ULN2803 a darlington transistor driver set with built in clamp resistors. They can be run directly off the parallel port. BUT only sink 500ma, and as I recall there is a watage and sum total limit on the combination of the drivers.
You can run thoughs in pairs and get 1000ma, good to drive only one stepper motor per uln2803 but its more powerful and doesnt get as hot. then again you can always use a 100ohm dropping resister and remove even more heat.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 12-12-2004, 11:44 PM
 
Join Date: Dec 2004
Location: Sweden
Posts: 12
sandos is on a distinguished road

I have done something along the lines of the topic:

http://sandos.ath.cx:8080/~sandos/pics/GBA_stepper/

Breadborded four power-transistors and controlling them from a GBA (this should readily be substitutable by the parallell port of any PC, the GBA EXT-port gives out 3.3V though) and four protective diodes that Im not sure are fast enough for the task.

The circuit isnt very complicated, although it did take a few hours to get it all right. (I did one phase at a time, also Im buying COLOURED wire next time). The purpose was mainly to experiment with how strong that little stepper was, conclusion: supplying 11V to a stepper rated at 14V and energising one or two phases doesnt get you much torque. I could vary the speed by pressing keys on the GBA.
Tweet this Post!Share on Facebook
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
Stepper Driver Questions bcromwell General Electronics Discussion 10 09-25-2006 04:01 AM
Stepper Question ignatz Stepper Motors and Drives 5 04-23-2005 05:26 AM
servos motor controled by stepper motor driver? mike10 Servo Motors and Drives 1 01-03-2005 06:05 PM
Fun with floppy stepper and driver Konstantin General Electronics Discussion 5 03-08-2004 02:18 AM
Selecting stepper driver components... fyffe555 General Electronics Discussion 0 09-26-2003 10:50 AM




All times are GMT -5. The time now is 09:15 PM.





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