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 07-25-2005, 05:43 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road
Convert Step/direction to phase drive

Does anyone know how I can convert a step/direction signal to phase drive?
Mach 2 uses step/direction and I want to control a BP boss which uses phase drive. Quadrature I think its called, it looks like this:
L L
H L
H H
L H

Their is bound to be a way to do this with transistors or something. I don't completely understand what step\direction looks like, nor do I understand how 4 steps (defined above) can control a stepper when their are many more than 4 steps per revolution.
Reply With Quote

  #2  
Old 07-25-2005, 05:57 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

There is only four basic methods for drive command, step and direction, +- analogue, digital and Two phase sinusoidal. It looks like the latter maybe the one you are looking for?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 07-26-2005, 07:15 AM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

I think I know what I am trying to do now, I just don't know how to do it. The pc output signal would look like this:
Direction: 1 (cw) or 0(ccw)
Step: pulses on and off for each step

Every time the step signal pulses I need to somehow shift my output from 0 to 1 or from 1 to zero, ultimately looking like above
00 Step 1
10 Step 2
11 Step 3
01 Step 4

a low direction signal will reverse steps from 4 to 1
Question is what electrical gadget will take a momentary input and convert its output from high to low (or low to high) for each input pulse.
I should have paid more attention in circuits class!
Reply With Quote

  #4   Ban this user!
Old 07-26-2005, 09:25 AM
 
Join Date: Aug 2003
Location: Netherlands
Posts: 114
limbo is on a distinguished road

Hi,

A basic circuit to this is uses 2 flipflops (74hc74) and 2 exclusive OR gates (74hc86).
See pic.

John
Attached Thumbnails
Click image for larger version

Name:	wave.gif‎
Views:	345
Size:	4.6 KB
ID:	9002  

Last edited by limbo; 07-27-2005 at 05:57 AM. Reason: Changed circuit diagram for correct one
Reply With Quote

  #5   Ban this user!
Old 07-26-2005, 10:22 AM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

Thanks John!
Do you know of any online references for this kind of stuff? Something that tells you what specific components do, like what a flip flop does?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-26-2005, 10:46 AM
 
Join Date: Aug 2003
Location: Netherlands
Posts: 114
limbo is on a distinguished road

Hmm, I think this circuit comes from a internet tutorial : "jones on stepper motors" or something like that.. Just do a google search. I believe there was also a PCB layout in this tutorial.

John
Reply With Quote

  #7   Ban this user!
Old 07-26-2005, 11:25 AM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

How is that any different from Direction / Step??
Reply With Quote

  #8   Ban this user!
Old 07-26-2005, 04:15 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

I stopped by the local radio shack to see if I could find a flipflop, no luck, but I did find a counter it is 8-bit though. It seems that if I had a 2-bit binary counter it would be a piece of cake. Problem is I can't find anyone that makes them! The lowest I can find is 4-bit. So now i'm thinking can I convert 8 bit to two bit?
What would be nice is a program (kinda like CAD for electronics) for designing circuits and testing them. Someone is bound to know of one?
Reply With Quote

  #9   Ban this user!
Old 07-26-2005, 05:23 PM
 
Join Date: Dec 2004
Location: Australia
Age: 58
Posts: 410
andy_ck87028 is on a distinguished road

Could somebody please explain the application for this?

I cannot understand the bigger context of the problem.

I thought computer speaks to driver which drives stepper which controls router. Is this somewhere within the driver stage and is therefore a non issue for anyone taking the gecko path?

Thanks

Andy
Reply With Quote

  #10  
Old 07-26-2005, 05:27 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Use a CD4013 for the dual D-Flop and a CD4030 for the quad XOR gate. Tie all unused inputs to ground. See www.digikey.com or other for these parts.

Mariss
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-26-2005, 08:09 PM
 
Join Date: Aug 2004
Location: USA
Posts: 366
jderou is on a distinguished road

andy, the original drive system is already intact and I don't want to spend the big bucks to replace it just yet. The old Bridgeport computer is not up to par so I want to replace it with a pc running mach2. I can use the original drive system if I can output the phase signal. It would be a piece of cake if the program would output the proper signal.
Reply With Quote

  #12   Ban this user!
Old 07-27-2005, 06:10 AM
 
Join Date: Aug 2003
Location: Netherlands
Posts: 114
limbo is on a distinguished road
Exclamation warning: error in first diagram

Guys,

I just noticed I had swapped the Q en Q_not outputs in the diagram... I redrew this from a PDF file. I now have replaced the schematic diagram in my initial post to be sure there is no false version on the site. Sorry about that. Now I've double-double checked it.

jderou,

A 2 bit counter can't be used directly. It produces

00
01
10
11

wheras you need

00
10
11
01

You could use some logic to convert one in the other but its probably easyer to try if you can get the components Mariss suggested. they should work fine.

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





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