• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    pfn
    last edited by pfn 6 Aug 2021, 19:46 8 Jun 2021, 19:45

    I'm running out of IO ports, is there any way to use an output pin on the IO0-8 ports as an input or vice versa? To clarify, the question is more along the lines of what features are supported on which pins? Which of the IO pins capable of ADC? Which are capable of PWM? etc.

    Thanks!

    undefined 1 Reply Last reply 8 Jun 2021, 20:14 Reply Quote 0
    • undefined
      dc42 administrators @pfn
      last edited by 8 Jun 2021, 20:14

      @pfn this is documented at https://duet3d.dozuki.com/Wiki/Duet_3_Mainboard_6HC_Hardware_Overview#Section_IO.

      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

      undefined 1 Reply Last reply 8 Jun 2021, 20:58 Reply Quote 0
      • undefined
        pfn @dc42
        last edited by 8 Jun 2021, 20:58

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

        undefined undefined undefined 3 Replies Last reply 8 Jun 2021, 21:16 Reply Quote 0
        • undefined
          peter247 @pfn
          last edited by 8 Jun 2021, 21:16

          @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
          • undefined
            Phaedrux Moderator @pfn
            last edited by 8 Jun 2021, 21:53

            @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

            undefined 1 Reply Last reply 8 Jun 2021, 22:13 Reply Quote 0
            • undefined
              peter247 @Phaedrux
              last edited by peter247 6 Aug 2021, 22:15 8 Jun 2021, 22:13

              @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+

              undefined 1 Reply Last reply 8 Jun 2021, 22:15 Reply Quote 0
              • undefined
                pfn @peter247
                last edited by 8 Jun 2021, 22:15

                @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
                • undefined
                  dc42 administrators @pfn
                  last edited by 9 Jun 2021, 06:58

                  @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

                  undefined 2 Replies Last reply 11 Jun 2021, 16:40 Reply Quote 0
                  • undefined
                    pfn @dc42
                    last edited by 11 Jun 2021, 16:40

                    @dc42 Thanks for the clarity!

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      pfn @dc42
                      last edited by 10 Aug 2021, 14:27

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

                      Thank you!

                      undefined 1 Reply Last reply 11 Aug 2021, 08:59 Reply Quote 0
                      • undefined
                        T3P3Tony administrators
                        last edited by 11 Aug 2021, 08:59

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

                        www.duet3d.com

                        1 Reply Last reply Reply Quote 1
                        • undefined
                          dc42 administrators @pfn
                          last edited by 11 Aug 2021, 08:59

                          @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
                          • undefined
                            pfn
                            last edited by 22 Aug 2021, 15:11

                            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?

                            undefined 1 Reply Last reply 22 Aug 2021, 15:31 Reply Quote 0
                            • undefined
                              dc42 administrators @pfn
                              last edited by dc42 22 Aug 2021, 15:31

                              @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

                              undefined 1 Reply Last reply 22 Aug 2021, 15:51 Reply Quote 0
                              • undefined
                                pfn @dc42
                                last edited by 22 Aug 2021, 15:51

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

                                1 Reply Last reply Reply Quote 1
                                • undefined Phaedrux referenced this topic 19 Dec 2021, 02:59
                                • First post
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA