Welcome to Our Community

Some features disabled for guests. Register Today.

Adding 4th axis rotary attachment for laser

Discussion in 'Laser Cutters' started by NickEng, Nov 7, 2022.

  1. NickEng

    NickEng Well-Known
    Builder

    Joined:
    Sep 10, 2020
    Messages:
    152
    Likes Received:
    18
    I know there are several threads about this, but I am still not sure the best way I should proceed. I want to add rotary axis to my arduino uno setup using grbl. From my understanding, grbl will not handle this with the uno, unless you swap the wiring from an axis (usually y?) and connect your rotary stepper device to this driver. Is this correct?

    If I am correct on this, I am thinking about connecting it this way to make the switch from y axis to the rotary axis as easy as possible. If I connect the rotary axis to a seperate stepper driver than my current y axis (2 drivers for two seperate motors running parallel) Both axis would be connected to the same step/dir pins on the uno, but I would place two switches between the power to the drivers. If I want to use the Y axis as normal, I have the power cut off to the rotary axis driver. If I want to use the rotary axis I turn the power on to the rotary axis and power off the two drivers that run the y axis motors. Does this sound like the best/easiest way to do what I am attempting?

    This would also prevent me from having to change the current settings if I were to share stepper drivers between the rotary axis stepper motor and the y axis motor.

    Thanks!
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Or a DPDT switch on DIR/STEP?

    Keeping the X/Y Driver powered up and enabled helps lock that axis in place for you. Without signals it will stay in place
     
    Ted Moyer and Rob Taylor like this.
  3. NickEng

    NickEng Well-Known
    Builder

    Joined:
    Sep 10, 2020
    Messages:
    152
    Likes Received:
    18
    That makes sense..... Didn't think about that. If I use the DPDT switch, wouldn't I need to use the same driver for both the rotary and the y axis?
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    No, seperate drivers. Switching STEP and DIR control signals between the UNO and drivers:


    Code:
    
    ┌───────────────┐        ┌──────────────────┐             ┌─────────────────┐
    │               │        │                  │   DIR       │                 │
    │               │        │ ┌────────────────┼─────────────►                 │
    │               │        │ │                │   STEP      │    A DRIVER     │
    │               │        │ │ ┌──────────────┼─────────────►                 │
    │               │ DIR    │ │ │              │             │                 │
    │               ├────────► │ │  ───────┐    │             │                 │
    │    UNO        │        │   │         │    │             └─────────────────┘
    │               │        │   │         │    │
    │               │ STEP   │   │         │    │             ┌─────────────────┐
    │               ├────────►   │  ─────┐ │    │   DIR       │                 │
    │               │        │           │ └────┼─────────────►                 │
    │               │        │           │      │   STEP      │    Y DRIVER     │
    │               │        │           └──────┼─────────────►                 │
    │               │        │     SWITCH       │             │                 │
    │               │        │                  │             │                 │
    └───────────────┘        └──────────────────┘             └─────────────────┘
    
    Made with https://asciiflow.com/
    
    

    Wouldn't want to switch Motor wiring - collapsing magnetic fields create a tonne of back EMF that easily fries drivers if accidentally switched while powered on
     
    NickEng likes this.
  5. NickEng

    NickEng Well-Known
    Builder

    Joined:
    Sep 10, 2020
    Messages:
    152
    Likes Received:
    18
    Thanks! I was thinking about it all wrong! Sorry!
     
    Peter Van Der Walt likes this.
  6. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,016
    Likes Received:
    1,682
    I plan to do this with my CO2 laser as well. Originally I thought a 4DPDT switch with a locking mechanism on the gantry, but if I am understanding you correctly a 2DPDT for Sig and Dir would work and then run power in parallel to both drivers removing the need for a manual lock on the gantry? If so, you just saved me $5 plus shipping on a 4DPT switch.
     
    Peter Van Der Walt likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice