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

    Duet3 MBHC GPIO (input on output and vice versa)

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    5
    15
    779
    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.
    • peter247undefined
      peter247 @pfn
      last edited by

      @pfn Strange I was going to ask the same question .

      on the duet 5 mini you have 7 inputs to use for triggers and end stops , which 1 is shared with the display.
      So x , y , z end stops take 3 inputs , that leaves 1 filament run out and 2 triggers.

      Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

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

        @pfn said in Duet3 MBHC GPIO (input on output and vice versa):

        @dc42 so, to be clear, there is no capability for doing in on an out pin or vice versa?

        I don't understand the question. The IO ports have both in and out pins, do you want 2 in pins on a single IO port? Why would you need to go in on an out pin?

        Z-Bot CoreXY Build | Thingiverse Profile

        peter247undefined 1 Reply Last reply Reply Quote 0
        • peter247undefined
          peter247 @Phaedrux
          last edited by peter247

          @phaedrux I think what he is asking is that he as spare output pins can he turn them to input pins. ( and vice versa)

          Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

          pfnundefined 1 Reply Last reply Reply Quote 0
          • pfnundefined
            pfn @peter247
            last edited by

            @peter247 precisely, I've run out of output pins actually, it would be good if I could re-use in pins as out.

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

              @pfn said in Duet3 MBHC GPIO (input on output and vice versa):

              @dc42 so, to be clear, there is no capability for doing in on an out pin or vice versa?

              The IN pins have 10K protection resistors in series with them, so you would need to bypass that to use them as outputs. It should be possible to use the OUT pins as inputs on the MB6HC.

              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

              pfnundefined 2 Replies Last reply Reply Quote 0
              • pfnundefined
                pfn @dc42
                last edited by

                @dc42 Thanks for the clarity!

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

                  @dc42 I forgot to ask before. To what voltage levels are the OUTs safe if used as IN? 3.3v? 5v?

                  Thank you!

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

                    @pfn the outputs only have 470R series resistors so only use 3.3V

                    www.duet3d.com

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

                      @pfn the output pins have no protection diodes and only a 470R series resistor, so 3.3V only.

                      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 1
                      • pfnundefined
                        pfn
                        last edited by

                        I'm finally getting around to using an out pin as an input. Like follows for my X end stop:

                        M574 X1 S1 P"io7.out"

                        However, when I do this, it seems like there's a delay before the endstop signal is recognized, if I home at full speed, the motor stalls for a little bit before it stops and re-probes the endstop. If I slow down homing, it stalls less.

                        It seems like there's a delay in signal processing/polling on the out pins. Is there something that can be done to change this?

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

                          @pfn if the endtop is a simple 2 wire switch then you will need to either enable the pullup resistor in the M574 command or add an external 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

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

                            @dc42 oh duh! It totally slipped my mind. Thank you!

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