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

    Help with NPN probe installation on Duet3 6HC

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    11
    519
    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.
    • Anthovalundefined
      Anthoval
      last edited by Phaedrux

      Hi, I've been trying to install this sensor as an endstop (link at the end) on the OI_2 port configured as an input (M574 Y1 S1 P"!io2.in").

      Even though I have the correct voltage on the input pin, the Duet 3 6HC always read the input as "no".

      Any idea why?

      Thanks.

      Link to sensor : reference 729-5107 on https://fr.rs-online.com/

      fcwiltundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        How exactly do you have it wired?

        Is it NPN or PNP?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • Anthovalundefined
          Anthoval
          last edited by

          The sensor is powered by the Vin of the Duet.
          The signal from the sensor is wired to io2.in.
          I configured the sensor as a NPN by wiring it the the IO_2 ground pin.

          To sum up:
          2 wires for the power - POWER IN Vin & GND
          1 signal wire - io2.in
          1 config wire - IO_2 GND

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

            I wonder if @fcwilt has any ideas. I know he's tested a lot of these style probes.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 1
            • fcwiltundefined
              fcwilt @Anthoval
              last edited by fcwilt

              @anthoval said in Help with NPN probe installation on Duet3 6HC:

              Hi, I've been trying to install this sensor as an endstop (link at the end) on the OI_2 port configured as an input (M574 Y1 S1 P"!io2.in").

              Even though I have the correct voltage on the input pin, the Duet 3 6HC always read the input as "no".

              Any idea why?

              Thanks.

              Link to sensor : reference 729-5107 on https://fr.rs-online.com/

              What are the voltages you are seeing when the probe is activated and not activated?

              The specs suggest the logic low voltage is not going to be low enough.

              And just out of curiosity how are you going to mount this on your machine?

              Thanks.

              Frederick

              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

              Anthovalundefined 1 Reply Last reply Reply Quote 1
              • Anthovalundefined
                Anthoval @fcwilt
                last edited by

                @fcwilt Sorry for my late response.

                When the probe is activated, the voltage is 24V. When it is not, the voltage is 0V.
                The datasheet shows that the sensor generates a current <= 100 mA, which might not be enough for the Duet to read.

                I have designed a small PCB and used a relay in order to use the sensor as intended.

                I don't know yet how I am going to mount it, the best option would be to 3d print something.

                T3P3Tonyundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
                • T3P3Tonyundefined
                  T3P3Tony administrators @Anthoval
                  last edited by

                  @anthoval have you seen this; https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_NPN_output_normally_open_inductive_or_capacitive_sensor

                  www.duet3d.com

                  1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @Anthoval
                    last edited by

                    @anthoval said in Help with NPN probe installation on Duet3 6HC:

                    @fcwilt Sorry for my late response.

                    When the probe is activated, the voltage is 24V. When it is not, the voltage is 0V.
                    The datasheet shows that the sensor generates a current <= 100 mA, which might not be enough for the Duet to read.

                    Normally a NPN probe would output a low voltage when activated and a high voltage when not activated.

                    The voltages are fine and the current is not an issue.

                    But the way I read the datasheet when the config wire is connected to ground the output is PNP.

                    Can you clarify?

                    Frederick

                    Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                      @anthoval said in Help with NPN probe installation on Duet3 6HC:

                      729-5107

                      The datasheet at https://docs.rs-online.com/2e20/0900766b816e114c.pdf indicates that for the -5107 variant the output is PNP.

                      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
                      • Anthovalundefined
                        Anthoval @fcwilt
                        last edited by

                        @fcwilt in my case, the config wire is connected to +24V : When the laser does not see an object the output is 24V, else it is 0V.

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

                          @anthoval it looks like the model you have is a PNP sensor:
                          017a0361-e34f-47ce-9e35-81aa0d7271e4-image.png

                          The documentation suggests using a resistive voltage divider to connect a PNP sensor:
                          https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_PNP_output_normally_open_inductive_or_capacitive_sensor

                          For Duet 3 and 3 Mini: all IOx.in inputs have a 27K pullup resistor to +3.3V, therefore the value of R2 must be low enough to defeat this. We suggest R2 = 2.2K. Then the value of R1 should be 4.7K to 6.8K if the sensor is powered from +12V; or use 10K to 15K if the sensor is powered from +24V.

                          100mA is far more current than can be sourced/sunk from the IOn.IN pins so that is not the issue.

                          www.duet3d.com

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