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

    How to Use connlcd.enca As a Trigger?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    9
    361
    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.
    • dieguitoundefined
      dieguito
      last edited by dieguito

      How can I map connlcd.enca/connlcd.4 as a trigger? I used

      M950 J0 C"xstop"
      

      , which worked, but I am already using xstop, ystop, zstop, e0stop, and e1stop for other purposes. The code I used was:

      M950 J0 C"connlcd.enca"
      M581 P0 T0 S0				
      

      with a trigger0.g file:

      M577 P0 S1 M112 
      

      I am also using the extension breakout board for additional drivers, so I am not sure I can use the stops on the expansion pins.

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

        What firmware version are you using?

        Your pin name looks OK I think based on the list here: https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet

        @dieguito said in How to Use connlcd.enca As a Trigger?:

        I am also using the extension breakout board for additional drivers, so I am not sure I can use the stops on the expansion pins.

        This I'm not sure about. Let me check.

        I checked: "yes he can use connlcd, or he can use a ribbon cable with 3 connectors clamped on it"

        Z-Bot CoreXY Build | Thingiverse Profile

        dieguitoundefined 1 Reply Last reply Reply Quote 0
        • dieguitoundefined
          dieguito @Phaedrux
          last edited by

          @Phaedrux

          @Phaedrux said in How to Use connlcd.enca As a Trigger?:

          What firmware version are you using?

          RRF 3.1

          This I'm not sure about. Let me check.

          I checked: "yes he can use connlcd, or he can use a ribbon cable with 3 connectors clamped on it"

          What does this mean? I tried wiring the CONN pins, and they didn't work

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

            What have you connected to the connlcd.enca pin? if it is a switch connected to ground then you will need to enable the pullup resistor by using "^connlcd.enca" as the pin name.

            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

            1 Reply Last reply Reply Quote 0
            • dieguitoundefined
              dieguito
              last edited by

              I am connecting two alarm signals (alm +/-) from two stepper drivers. The manufacturer recommends to connect a 1k pullup resistor to alm and connect the alm- to ground. The connections work when connected to the xstop/ystop pins on the duet wifi (without the suggested 1k pullup resistor recommended from the manufacturer), but they don't when connected to the conn enca/encb pins with or without the pullup resistor recommended from the manufacturer. I created two trigger files for both connections.

              Are there other pins different from the ones on the expansion header or the normal xstop, etc, pins that I can connect these two alarm signals, and, if so, how would the duet handle them?

              Thanks in advance

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

                How did you connect the pullup resistor?

                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

                1 Reply Last reply Reply Quote 0
                • dieguitoundefined
                  dieguito
                  last edited by

                  @dc42 said in How to Use connlcd.enca As a Trigger?:

                  How did you connect the pullup resistor?

                  As in the picture below. I repeated the same connection for the "^connlcd.encb" pin. The 5V and ground come from the CONN_SD header.

                  alm diag.png

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

                    The pullup resistor should have been to +3.3V not +5V because the microcontroller is a 3.3V device.

                    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

                    1 Reply Last reply Reply Quote 0
                    • dieguitoundefined
                      dieguito
                      last edited by

                      I switched to the 3.3V pin. It still did not work. I had to shield the wires from noise. Some noise from the driver was invoking the triggers I was using. Thanks for the help!

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