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

    Trigger Macros using Arduino + Buttons

    Scheduled Pinned Locked Moved
    CNC
    2
    6
    226
    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.
    • Mastermarkundefined
      Mastermark
      last edited by

      Hi guys im just wondering is it possible to send gcode to a duet2 to trigger a macro. I want to make a small panel with 5-10 Buttons that will Trigger macros that i create.

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

        @Mastermark You don't need to send gcode - just connect your buttons directly to spare io pins. There are many examples but here is one from the documentation - https://docs.duet3d.com/en/User_manual/Tuning/Triggers

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

        Mastermarkundefined 1 Reply Last reply Reply Quote 0
        • Mastermarkundefined
          Mastermark
          last edited by

          but i want to use my personal macros do these io pins just like home all ect ?

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

            @deckingman Sorry i forgot to mention i have the Duet 2 Ethernet

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

              @Mastermark said in Trigger Macros using Arduino + Buttons:

              but i want to use my personal macros do these io pins just like home all ect ?

              See here https://docs.duet3d.com/User_manual/Reference/Gcodes#m581-configure-external-trigger

              In particular scroll down to the bit that says "Any trigger number # greater than 1 causes the macro file sys/trigger#.g to be executed". You can use your persoanl macros, but yiu need to name them "trigger2", "trigger3" etc.

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

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

                @Mastermark said in Trigger Macros using Arduino + Buttons:

                @deckingman Sorry i forgot to mention i have the Duet 2 Ethernet

                In that case, you'll likely be limited to using spare end stops. If that's the case, then IIRC there are 5 available on the board of which you might be using a couple, but I think there are another 5 on the expansion connector.

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

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