Page 1 of 2 12 LastLast
Results 1 to 12 of 19

Thread: Convert Step/direction to phase drive

  1. #1
    Registered
    Join Date
    Aug 2004
    Location
    USA
    Posts
    370
    Downloads
    0
    Uploads
    0

    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.


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    19116
    Downloads
    0
    Uploads
    0
    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 Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered
    Join Date
    Aug 2004
    Location
    USA
    Posts
    370
    Downloads
    0
    Uploads
    0
    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!


  4. #4
    Registered
    Join Date
    Aug 2003
    Location
    Netherlands
    Posts
    114
    Downloads
    0
    Uploads
    0
    Hi,

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

    John
    Attached Thumbnails Attached Thumbnails Convert Step/direction to phase drive-wave.gif  
    Last edited by limbo; 07-27-2005 at 06:57 AM. Reason: Changed circuit diagram for correct one


  • #5
    Registered
    Join Date
    Aug 2004
    Location
    USA
    Posts
    370
    Downloads
    0
    Uploads
    0
    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?


  • #6
    Registered
    Join Date
    Aug 2003
    Location
    Netherlands
    Posts
    114
    Downloads
    0
    Uploads
    0
    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


  • #7
    Registered
    Join Date
    Aug 2004
    Location
    US
    Posts
    2827
    Downloads
    0
    Uploads
    0
    How is that any different from Direction / Step??


  • #8
    Registered
    Join Date
    Aug 2004
    Location
    USA
    Posts
    370
    Downloads
    0
    Uploads
    0
    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?


  • #9
    Registered
    Join Date
    Dec 2004
    Location
    Australia
    Posts
    410
    Downloads
    0
    Uploads
    0
    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


  • #10
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    2788
    Downloads
    0
    Uploads
    0
    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


  • #11
    Registered
    Join Date
    Aug 2004
    Location
    USA
    Posts
    370
    Downloads
    0
    Uploads
    0
    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.


  • #12
    Registered
    Join Date
    Aug 2003
    Location
    Netherlands
    Posts
    114
    Downloads
    0
    Uploads
    0

    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


  • Page 1 of 2 12 LastLast

    Posting Permissions



    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.