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

    Constant Speed Stepper

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    5
    13
    437
    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.
    • CNCModellerundefined
      CNCModeller
      last edited by

      Hi All,
      Is there a recommended way to set a stepper motor running at a constant Speed continuously until you command it to stop.

      I thought perhaps sending a G1 command and just use Damon.g to reset the axis position to prevent it getting to the target value?

      Or am I missing something obvious...?

      Any constructive thoughts would be much appreciated.

      All the best
      Barry M

      Polar Duet3 Mini + 1HCL
      https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
      Wanhao D4S: Duet2
      https://forum.duet3d.com/post/296755
      K40 Laser, Duet2
      https://forum.duet3d.com/post/312082
      Wanhao D5S
      https://www.youtube.com/CNCModellerUK

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        The stepper isn't the same as a DC motor you can just turn on, you have to send it steps. So it depends how long you need to to run for. You could make it a very long axis and command it to move the entire length.

        What exactly are you trying to do?

        Z-Bot CoreXY Build | Thingiverse Profile

        CNCModellerundefined 1 Reply Last reply Reply Quote 0
        • deckingmanundefined
          deckingman @CNCModeller
          last edited by

          @CNCModeller Part of the problem is stopping the motor when you want to. If you use a series of moves, there will always be a slight pause between one move ending and the next starting. You can mitigate that somewhat by using longer length moves but then you can only stop the motor when one move finishes which might not be desirable depending on what you are trying to do. One possibility might to use an external pulse generator built around a 555 timer or some such and feed to output of that into an external stepper driver. You could then use an io pin to start and stop the pulse generator. All in all, it'd be a lot simpler to use a DC motor.

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          CNCModellerundefined 1 Reply Last reply Reply Quote 1
          • CNCModellerundefined
            CNCModeller @Phaedrux
            last edited by

            @Phaedrux said in Constant Speed Stepper:

            What exactly are you trying to do?

            It's to drive a mechanical mixing shaft on a custom mixing extruder based on the papers here

            https://www.reprap.org/wiki/Mixer_extruder

            I could just use a DC motor but I really wanted to have accurate speed control so I have repeatable control over the extrusion conditions.

            After thinking more I'm also guessing that any gcode based control would prevent other motion until the long mixing "move" was completed.

            Many thanks
            Barry M

            Polar Duet3 Mini + 1HCL
            https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
            Wanhao D4S: Duet2
            https://forum.duet3d.com/post/296755
            K40 Laser, Duet2
            https://forum.duet3d.com/post/312082
            Wanhao D5S
            https://www.youtube.com/CNCModellerUK

            deckingmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
            • CNCModellerundefined
              CNCModeller @deckingman
              last edited by

              @deckingman, thanks, yes I'm gravitating towards an external Arduino setup that monitors a speed variable over the panel due interface if that's possible...

              Polar Duet3 Mini + 1HCL
              https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
              Wanhao D4S: Duet2
              https://forum.duet3d.com/post/296755
              K40 Laser, Duet2
              https://forum.duet3d.com/post/312082
              Wanhao D5S
              https://www.youtube.com/CNCModellerUK

              o_lampeundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @CNCModeller
                last edited by

                @CNCModeller said in Constant Speed Stepper:

                It's to drive a mechanical mixing shaft on a custom mixing extruder based on the papers here.......................

                Before you go too far down this road, I'd like to offer a word of caution if I may. As someone who has spent years developing multi-input hot ends, I feel qualified to do so. You'll note that the papers you referred to are from 2014 and earlier - some 9 years ago and yet there are no successful commercially available designs. Some claim to be but when you delve into things, you'll discover that they only work with continuous printing - i.e with no travel moves and usually at constant extruder speed such as vase mode. The biggest challenge that you will face (and which nobody mentions), is how to stop extrusion for non-print moves. We currently do this by retracting filament which works fairly well with current hot end designs. But when you introduce a complex mixing chamber in between the extruder and the nozzle, that retraction of filament at the input to the mixing chamber, does not lead to a simultaneous reduction in pressure at the nozzle. So you'll need to find some other way of preventing the filament from oozing during travel moves. The second biggest problem is related to the first and it is that small extruder moves on the inlet side may result in an increase in pressure at the entrance to the mixing chamber, but that increase in pressure does not instantly translate to the nozzle tip. For want of a better description, the volume of molten filament and the complexity of the geometry within the mixing chamber act as a sponge and damp out any small extruder moves. So parts with any sort of detail, become almost impossible to print.

                So unless you can overcome those two challenges, you'll be restricted to producing things like vases or other parts that lack detail and/or which have no "non-print" travel moves.

                I have thought that the retraction problem could possibly be overcome by shaping the end of the mixing shaft such that it would form a pintle valve. This would of course involve using a linear vertical movement as well as rotary movement. The lack of detail issue would involve using some form of "squirting" filament out of the nozzle other than varying the flow of filament entering the mixing chamber which is a much more complex problem to solve.

                So just a word of caution before you spend too much time, effort and cash (as I have done).

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

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

                  @CNCModeller we are planning to implement this feature in RRF 3.6. Meanwhile it would be possible to use daemon.g to turn a stepper constantly using the second motion system, but the response time to a command to stop turning might be poor.

                  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

                  CNCModellerundefined 1 Reply Last reply Reply Quote 0
                  • o_lampeundefined
                    o_lampe @CNCModeller
                    last edited by

                    @CNCModeller A long time back, I have used a few DC motors with encoder to mimic a stepper controlled by a ATtiny arduino and a DCDC- halfbridge.( not L298..but L6201?)

                    Using those encoder motors for closed loop speed control is much easier.
                    dc-steppermotor_proto.jpg

                    CNCModellerundefined 1 Reply Last reply Reply Quote 0
                    • CNCModellerundefined
                      CNCModeller @dc42
                      last edited by

                      @dc42 said in Constant Speed Stepper:

                      @CNCModeller we are planning to implement this feature in RRF 3.6. Meanwhile it would be possible to use daemon.g to turn a stepper constantly using the second motion system, but the response time to a command to stop turning might be poor.

                      Thanks @dc42 useful information 👍

                      Polar Duet3 Mini + 1HCL
                      https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                      Wanhao D4S: Duet2
                      https://forum.duet3d.com/post/296755
                      K40 Laser, Duet2
                      https://forum.duet3d.com/post/312082
                      Wanhao D5S
                      https://www.youtube.com/CNCModellerUK

                      1 Reply Last reply Reply Quote 0
                      • CNCModellerundefined
                        CNCModeller @deckingman
                        last edited by

                        @deckingman thanks for sharing your experience.

                        It sounds like most of the issues you discussed I already have to deal with with lightweight foaming pla.

                        My models are mostly large very complicated vase mode prints so in theory much of what you discussed shouldn't be a problem.

                        https://youtu.be/mLz1vDJkfgs

                        I'm looking to mix standard pla, foaming pla and carbon fibre pla to achieve different material properties / densities in different regions of my prints so proper mixing is really important.

                        I'm also hoping that vigorous mechanical mixing with a relatively small mixing region will reduce the lag between mix change and mixed filament composition at the nozzle. I'm assuming preprocessing the gcode to change the mix ratio ahead of time should cover that.

                        Having some form of valve at the exit of the mixing chamber could be interesting 🤔 albeit it would increase composition lag at the nozzle due to added volume, and would need to operate at high temperatures.

                        I have several other technical issues to address, but for now just want to get a working prototype mechanical mixing nozzle that doesn't leak filament!

                        Anyway thanks again for everyone's thoughts.

                        All the best
                        Barry M

                        Polar Duet3 Mini + 1HCL
                        https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                        Wanhao D4S: Duet2
                        https://forum.duet3d.com/post/296755
                        K40 Laser, Duet2
                        https://forum.duet3d.com/post/312082
                        Wanhao D5S
                        https://www.youtube.com/CNCModellerUK

                        deckingmanundefined 1 Reply Last reply Reply Quote 0
                        • CNCModellerundefined
                          CNCModeller @o_lampe
                          last edited by

                          @o_lampe thanks yeah I am considering a separate Arduino+ step stick based controller that jus takes a pwm input from a fan header or the spindle output.

                          Polar Duet3 Mini + 1HCL
                          https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                          Wanhao D4S: Duet2
                          https://forum.duet3d.com/post/296755
                          K40 Laser, Duet2
                          https://forum.duet3d.com/post/312082
                          Wanhao D5S
                          https://www.youtube.com/CNCModellerUK

                          1 Reply Last reply Reply Quote 0
                          • deckingmanundefined
                            deckingman @CNCModeller
                            last edited by

                            @CNCModeller The only other advice I can give is that the inside pressures are much greater than one would have thought. My multi sectioned hot ends involved lots of lapping of faces and more fixings than I would have thought necessary. Sealing the shaft from filament leakage whilst still allowing it turn reasonably freely is another challenge that won't be easy to overcome.

                            But good luck and please keep us informed of progress. Although age and lack of funds have led me to abandon my own efforts, it's still a subject of interest to me.

                            Ian
                            https://somei3deas.wordpress.com/
                            https://www.youtube.com/@deckingman

                            CNCModellerundefined 1 Reply Last reply Reply Quote 0
                            • CNCModellerundefined
                              CNCModeller @deckingman
                              last edited by

                              @deckingman will post updates as I go. 👍

                              Polar Duet3 Mini + 1HCL
                              https://youtube.com/playlist?list=PLWjZVEdMv1BY82izahK45qKh-hp3NFkix
                              Wanhao D4S: Duet2
                              https://forum.duet3d.com/post/296755
                              K40 Laser, Duet2
                              https://forum.duet3d.com/post/312082
                              Wanhao D5S
                              https://www.youtube.com/CNCModellerUK

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