• Tags
  • Documentation
  • Order
  • Register
  • Login
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
506
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
    Anthoval
    last edited by Phaedrux 9 Jan 2021, 04:50 30 Aug 2021, 14:22

    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/

    undefined undefined 2 Replies Last reply 3 Sept 2021, 17:05 Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 30 Aug 2021, 20:01

      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
      • undefined
        Anthoval
        last edited by 31 Aug 2021, 08:36

        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
        • undefined
          Phaedrux Moderator
          last edited by 3 Sept 2021, 16:43

          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
          • undefined
            fcwilt @Anthoval
            last edited by fcwilt 9 Mar 2021, 17:11 3 Sept 2021, 17:05

            @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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            undefined 1 Reply Last reply 6 Oct 2021, 09:39 Reply Quote 1
            • undefined
              Anthoval @fcwilt
              last edited by 6 Oct 2021, 09:39

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

              undefined undefined 2 Replies Last reply 6 Oct 2021, 09:40 Reply Quote 0
              • undefined
                T3P3Tony administrators @Anthoval
                last edited by 6 Oct 2021, 09:40

                @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
                • undefined
                  fcwilt @Anthoval
                  last edited by 6 Oct 2021, 12:27

                  @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 small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  undefined 1 Reply Last reply 19 Oct 2021, 07:08 Reply Quote 0
                  • undefined
                    dc42 administrators @Anthoval
                    last edited by 6 Oct 2021, 13:38

                    @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
                    • undefined
                      Anthoval @fcwilt
                      last edited by 19 Oct 2021, 07:08

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

                      undefined 1 Reply Last reply 19 Oct 2021, 09:22 Reply Quote 0
                      • undefined
                        T3P3Tony administrators @Anthoval
                        last edited by 19 Oct 2021, 09:22

                        @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