Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Stepper motor as spindle in CNC mode

    Scheduled Pinned Locked Moved
    CNC
    5
    5
    445
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hatoffundefined
      hatoff
      last edited by

      Hello,

      is it possible to control a stepper motor as spindle in cnc mode instead of a servo drive?

      My goal is to control the stepper velocity instead of its position (as it is in normal 3d printer mode).
      E.g.: Move (endlessly until the next command) clockwise at 200 rotations per minute -> Move (endlessly until the next command) counterclockwise at 10 rotations per minute etc.

      Kind regards

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        There is currently no firmware support for that.

        I think it would be difficult to get the speed and torque needed for a CNC spindle from a stepper motor.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • 3DPMicroundefined
          3DPMicro
          last edited by 3DPMicro

          That and it could take a chunk out of your max step rate for the other motors

          Duet controlled Jet Lathe, scratch built micro mill and 3d printer. 1992 Haas VF2 VMC retrofit

          1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by

            AT 200 RPM you should be ok with the stepper, but I'd question the torque even if the firwmare was able (which its not as dc42 points out)

            I'd hook an external diver up to an arduino/esp32 and drive the stepper with either reading the pwm and direction from the duet or by sending uart commands to the paneldue port.

            What you planning on "spindling" and what stepper motor you got in mind?

            1 Reply Last reply Reply Quote 0
            • arhiundefined
              arhi
              last edited by

              I was playing with this for a lathe and did not find a proper solution with stepper

              • using a stepper shown to be crap for the spindle, I even tried large nema34 16A ones... the torque & speed are just not acceptable, even with FPGA stepper (mesa card and linuxcnc, so I was easily stepping at 2MHz but it's just not something stepper deals with)
              • using encoder and servo worked great on linuxcnc + mesa but I never managed to reproduce this on any of the 32bit boards (rrf, redeem, smoothie..), especially as there's no way to push encoder data back into them... also stepping speed on all of them is too slow for high precision encoder on the servo ..

              I do have a small mill where I use smoothieware (RRF would work even better maybe) where I control the spindle by SPI, I have a small pic that listen to SPI and it gets the speed for the spindle from SPI from the firmware and then it converts it to 1-10V input for the VFD ... (I lost that firmware for the pic 😞 but it's a 30min job to write for any mcu, I need to write it again I need another one for a bit different mini mill I have)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA