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

    Manually drive forward/backward a stepper motor?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    7
    313
    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.
    • CJ.BRAVOundefined
      CJ.BRAVO
      last edited by

      Hey,

      I was wondering if anyone has an idea of making a standalone switch for driving back and forth a stepper motor.

      For instance - I use a motor to drive a syringe so I'd like to tweak the steps back an d forth to adjust the tool in a fast fashion without running the feedrate/amount on the gui.

      The switch shouldn't interfere the if I choose to use the MCU or run a g-code file.

      If anyone knows the HYREL printers, something of that sort.

      thoughts ?

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @CJ.BRAVO
        last edited by

        @cj-bravo Might be possible. You could connect a switch to a spare end stop then set up an external trigger that will run a macro when the switch is pressed. Then maybe define the motor to be either another axis or an extruder. The macro would then run a G1 move for that motor. I'm on my phone right now and I can't off hand remember the trigger command.

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

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

          https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_Configure_external_trigger

          you'd need two triggers/pins, one for each direction.

          but i think this will be allowed to interfere during printing if accidentally pressed. removing the triggers in start.g will remedy that, but you'll have to recreate them in stop.g/cancel.g and have the silcer send M0 at the end of a print.

          CJ.BRAVOundefined 1 Reply Last reply Reply Quote 0
          • CJ.BRAVOundefined
            CJ.BRAVO @A Former User
            last edited by

            @bearer

            Would it interfere with the g-code file only if pressed ? or if not pressed with will affect the g-code?

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

              i'm not 100% sure where in the motion planning queue the triggered code would go as I haven't tried.

              but of course if you don't press the buttons connected to the triggers then it will not interfere the running g-code. however using the two macros to clear and set the triggers is a solution if it turns out to be a problem. (you could do a relatively safe test with short slow moves in a g-code file and try pressing the buttons attached to the triggers and see what happens)

              1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @CJ.BRAVO
                last edited by

                @cj-bravo said in Manually drive forward/backward a stepper motor?:

                @bearer

                Would it interfere with the g-code file only if pressed ? or if not pressed with will affect the g-code?

                Take a look at the "C" parameter for M581 - that might answer you question

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

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

                  C Condition: whether to trigger at any time (C0, default) or only when printing a file from SD card (C1)

                  Seems that could do with a C2 option for only triggering when not printing?

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