Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Adjusting servo speed

    Duet Hardware and wiring
    3
    6
    146
    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.
    • Arkadiusz
      Arkadiusz last edited by

      Hello,

      I assigned servo to unused fan I/O pins using M42 command, then I managed to move servo to desired position using M280.
      However servo is moving at its top speed. Is there any extra command that can be added to M280 in order to slow down the servo?

      Cheers

      zapta 1 Reply Last reply Reply Quote 0
      • zapta
        zapta @Arkadiusz last edited by zapta

        @arkadiusz, as a workaround, will it help splitting the move into multiple M280 and waiting for the completion of each step before moving to the next one?

        1 Reply Last reply Reply Quote 0
        • Arkadiusz
          Arkadiusz last edited by

          I was thinking about this solution, but I need to move servo with single macro button.
          I could pack macro with loads of individual M280 commands but I'm not sure how to set delay.

          zapta 1 Reply Last reply Reply Quote 0
          • zapta
            zapta @Arkadiusz last edited by zapta

            @arkadiusz, does this help? https://duet3d.dozuki.com/Wiki/Gcode#Section_G4_Dwell

            (not discounting the original feature request of allowing to control the servo rate of change).

            1 Reply Last reply Reply Quote 0
            • Arkadiusz
              Arkadiusz last edited by

              I tried Dwell but its too "robotic", Its hard to achieve smooth movement. Looks like there is no such setup available on Duet at this moment. I ended making external servo controller using servo testers.

              Cheers

              T3P3Tony 1 Reply Last reply Reply Quote 0
              • T3P3Tony
                T3P3Tony administrators @Arkadiusz last edited by T3P3Tony

                @Arkadiusz you can use dwell with the "P" parameter ans low as P1 for P1 millisecond do something like

                G4 P1
                M280 Pn S55
                G4 P1
                ..
                etc
                

                could work?

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