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

    Proximity sensor for rotary home switch

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    2
    5
    255
    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.
    • jimakronundefined
      jimakron
      last edited by

      I have a Duet3 mini5+, using a PNP NC proximity sensor currently using the IO_3.in using the 5V_EXT, GND and IN pin.
      The sensor has a light that is lit when not sensing anything and 5V is read from this. When sensing, the light goes out and it goes to 0V.
      My config for it is M574 A1 S1 P"!io3.in".
      The axis rotates according to the homea.g file, but never stops at switch.

      I've searched for an answer but have not found any.

      Anyone have any ideas as to why it isn't stopping at the home switch?

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

        @jimakron to connect a PNP sensor to a Duet you normally need to use a voltage divider or at least a pulldown resistor. See https://docs.duet3d.com/User_manual/Connecting_hardware/Z_probe_connecting#pnp-output-normally-open-inductive-or-capacitive-sensor.

        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

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

          @dc42 Thank you!
          I switched to the NPN NO sensor.
          Am I still able to use this in the IO_3? Connecting the ground to the IO_3 GND, the power to 12/24v supply, and the signal to IO_3 IN? Still using the same config? M574 A1 S1 P"!io3.in"?

          TIA

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

            @jimakron yes that looks correct to me.

            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

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

              @dc42 Thank you so much

              1 Reply Last reply Reply Quote 0
              • jimakronundefined jimakron marked this topic as a question
              • jimakronundefined jimakron has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA