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

    Custom toolboard + duet wiring limitations

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    6
    24
    405
    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.
    • jay_s_ukundefined
      jay_s_uk @SamKudarauskas
      last edited by

      @SamKudarauskas fair enough.
      and yes, you understand that correctly

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      SamKudarauskasundefined 1 Reply Last reply Reply Quote 0
      • SamKudarauskasundefined
        SamKudarauskas @jay_s_uk
        last edited by

        @jay_s_uk Thank you for your help. Is the duet IO pins capable of triggering different events if it receives a pulse of being turned on/off versus a stable on or off signal?

        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
        • jay_s_ukundefined
          jay_s_uk @SamKudarauskas
          last edited by

          @SamKudarauskas yes. have a look at M581

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          SamKudarauskasundefined 1 Reply Last reply Reply Quote 0
          • SamKudarauskasundefined
            SamKudarauskas @jay_s_uk
            last edited by

            @jay_s_uk M581 appears to be used to detect going from low to high or high to low for some trigger, how can I use that to map it to different actions based off of if it goes high low high quickly or just from low to high and stays that way?

            fcwiltundefined gloomyandyundefined droftartsundefined 3 Replies Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @SamKudarauskas
              last edited by fcwilt

              @SamKudarauskas

              I'm using a Duet 3 6HC board with 3.5.4 firmware.

              I have cases where I have used M581 to assign two triggers to the same input.

              One for the inactive-to-active condition and the other active-to-inactive condition.

              It seems to work just fine.

              But I'm not sure how you would detect a steady state condition.

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              SamKudarauskasundefined 1 Reply Last reply Reply Quote 0
              • gloomyandyundefined
                gloomyandy @SamKudarauskas
                last edited by

                @SamKudarauskas It might help if you explain what it is you are trying to do here. So what sensor (or other input) are you trying to monitor and what conditions do you want to detect and what do you want to do when that condition is detected.

                1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @SamKudarauskas
                  last edited by

                  @SamKudarauskas you can use M582 https://docs.duet3d.com/User_manual/Reference/Gcodes#m582-check-external-trigger to check the state of a trigger, and to trigger it if it is in a particular state.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  1 Reply Last reply Reply Quote 0
                  • SamKudarauskasundefined
                    SamKudarauskas @fcwilt
                    last edited by SamKudarauskas

                    @fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.

                    Sam

                    fcwiltundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @SamKudarauskas
                      last edited by

                      @SamKudarauskas said in Custom toolboard + duet wiring limitations:

                      @fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.

                      Sam

                      Held down how long?

                      You might be able to put in the trigger a G4 delay followed by a test of the appropriate input using

                      sensors.gpIn[#].value = 0 
                      ; or
                      sensors.gpIn[#].value = 1
                      

                      where # is the number of the gpin used as the input for the trigger to monitor.

                      Frederick

                      Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                        @SamKudarauskas you will need to detect it's held down in the trigger then have a while loop that looks for the release, if it's released within a certain time then carry out action A, if after that time, Action B

                        www.duet3d.com

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