Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Using Endstop Pins for GPIO

    General Discussion
    2
    9
    1024
    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.
    • jml
      jml last edited by

      I was reading this:
      https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins

      Looks like pins 45-49 can be I/O pins. I used M42 P49 S0 and S1 to try to turn the pin high or low, but I don't get any change.

      Does "pin 49" correspond to the leftmost endstop pin (when looking at the Duex5 board layout)? That one is labeled E1 STOP.

      If thats correct, then how do I set it to be an output?

      1 Reply Last reply Reply Quote 0
      • jml
        jml last edited by jml

        Maybe its a problem with my board. Can someone else try M42 P49 S0/S1 and see if the E1 Stop pin changes?

        Usually if I write to a pin that I'm not supposed to, I get this message:
        "Logical pin %d is not available for writing"

        But I don't get that message with M42 P49 S0 or M42 P49 S1

        1 Reply Last reply Reply Quote 0
        • jml
          jml last edited by

          Did anybody try it?

          jml 1 Reply Last reply Reply Quote 0
          • jml
            jml @jml last edited by

            @jml 😢

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

              If you have a DueX5 or DueX2 connected, then the additional pins you can control are not endstop pins, they are CS5-CS8 on the temperature daughter board connector.

              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
              • jml
                jml last edited by

                Thanks, I'll give that a try. Looks like those pins correspond to E3_STOP, E5_STOP, and E6_STOP. Any way to control E2_STOP or E7_STOP?

                jml 1 Reply Last reply Reply Quote 0
                • jml
                  jml @jml last edited by jml

                  @jml I guess I'm confused by this wording in the link:

                  "45-49 are input/output. On the Duet WiFi and Duet Ethernet, 45-49 are the endstop connectors on the DueX5 expansion board." It makes it seem like 45-49 can be outputs, and they are on the Duex5 - if thats right, then how to control 45-49?

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

                    In theory, 45-49 could be controlled as GPIO, however the firmware doesn't currently support that. I'll correct the documentation.

                    EDIT: I'm sorry, I made a mistake in my earlier reply. 44-49 are always the endstop connectors. Logical pins 60-63 are the CS pins on the daughter board connector.

                    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

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

                      @dc42 Thanks for the clarification.

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