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

Can't use iox.in and iox.out as input at the same time

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
io pin endstops
2
3
148
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
    JoA-RHU
    last edited by JoA-RHU 8 Feb 2024, 14:49 2 Aug 2024, 14:47

    Hi,
    I'm using a Duet3 6HC, firmware 3.5.2, and I'd like to use both io0.in and io0.out for X and Y endstops but I can't make it work. I've NC microswitches wired between GND and io0.in/io0_out and my config is the following:

    M574 X2 S1 P"io0.in"
    M574 Y2 S1 P"io0.out"
    M574 Z2 S1 P"io1.in"

    For some reason, both inputs are constantly "triggered" (axes name with green background in DWC).
    I thought it could be related to the fact that io0 is shared with UART (despite not using it), so I tried on the io1 header but got the same result.

    Am I missing something? Should I wire the switches differently? Use invertion / pull-up (! ^) ?
    Any help would be appreciated. Thank you!

    undefined 1 Reply Last reply 2 Aug 2024, 19:09 Reply Quote 0
    • undefined
      dc42 administrators @JoA-RHU
      last edited by dc42 8 Feb 2024, 19:12 2 Aug 2024, 19:09

      @JoA-RHU check that you don't have a M575 P0 command in config.g. That.will switch the port into UART mode.

      When using a io_out pin as an input, you need to either enable the pullup resistor using the ^ character at the start of the port name, or use an external pullup resistor to +3.3V.

      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 5 Aug 2024, 09:21 Reply Quote 0
      • undefined
        JoA-RHU @dc42
        last edited by 5 Aug 2024, 09:21

        @dc42 I enabled the pullup resistor for the io0.out pin, (and I found out a bad crimping contact for the X endstop... ^^').
        Everthing works fine now. Thank you David.

        1 Reply Last reply Reply Quote 0
        • undefined dc42 marked this topic as a question 5 Aug 2024, 09:40
        • undefined dc42 has marked this topic as solved 5 Aug 2024, 09:40
        3 out of 3
        • First post
          3/3
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA