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

Connecting NPN NC inductive switch to Tool board

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
5
13
1.2k
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
    evomotors @droftarts
    last edited by 9 Sept 2020, 16:36

    @droftarts said in Connecting NPN NC inductive switch to Tool board:

    @evomotors The general guide is here: https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_NPN_output_normally_open_inductive_or_capacitive_sensor

    You can use a probe of type 8 (ie M558 P8) or 9 (BLTouch) with the toolboard. Type 8 is like Type 5, but unfiltered, so should work with an NPN probe.

    The io0.in on the toolboard is, I believe, 30V tolerant. The rest of the wiring will depend on your probe, but the above link should get you going in the right direction.

    Ian

    I know about BLTouch, I do have it connected right now and I don't like it. Also the guide doesn't say anything about NC (Normally closed) and nothing about tool-board. The guide you sent is for normally open NPN probe.

    This question is specific to the NPN NC inductive probe.

    1 Reply Last reply Reply Quote 0
    • undefined
      evomotors
      last edited by 9 Sept 2020, 17:06

      Need more help please.

      Do I need to configure like this?

      M558 P8 C"121.io0.in" H8 F800 T10000
      

      Or like this?

      M558 P8 C"^121.io0.in" H8 F800 T10000
      

      Can/how can I configure OUT2 or OUT1 on a tool-board to be ON when I use the probe or to be always ON

      undefined 1 Reply Last reply 9 Sept 2020, 18:23 Reply Quote 0
      • undefined
        evomotors
        last edited by 9 Sept 2020, 17:22

        @droftarts Will this work?

        M950 P0 C"121.out1" ; create port 0
        M42 P0 S1  ; set GPIO port 0 on
        
        1 Reply Last reply Reply Quote 0
        • undefined
          Phaedrux Moderator @evomotors
          last edited by Phaedrux 9 Sept 2020, 18:24 9 Sept 2020, 18:23

          @evomotors said in Connecting NPN NC inductive switch to Tool board:

          Need more help please.

          Do I need to configure like this?

          M558 P8 C"121.io0.in" H8 F800 T10000
          

          Or like this?

          M558 P8 C"^121.io0.in" H8 F800 T10000
          

          Can/how can I configure OUT2 or OUT1 on a tool-board to be ON when I use the probe or to be always ON

          I don't know enough about your probe to say if it would need the pull-up resistor (^) to work properly. Try it without first.

          Do you have a photo of the probe or a link to it?

          @evomotors said in Connecting NPN NC inductive switch to Tool board:

          @droftarts Will this work?

          M950 P0 C"121.out1" ; create port 0
          M42 P0 S1  ; set GPIO port 0 on
          

          Yes I think that should work to create and enable that io pin.

          I suggest reducing motor currents for the Z axis just above the stall point when testing.

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 1 Reply Last reply 9 Sept 2020, 18:31 Reply Quote 1
          • undefined
            evomotors @Phaedrux
            last edited by 9 Sept 2020, 18:31

            @Phaedrux said in Connecting NPN NC inductive switch to Tool board:

            I don't know enough about your probe to say if it would need the pull-up resistor (^) to work properly. Try it without first.
            Do you have a photo of the probe or a link to it?

            Link to probe

            I tested powering from PSU:
            Brown: +VIN (6v to 36v)
            Blue: Ground
            Black: Signal out (normally ground and nothing when triggered)

            1 Reply Last reply Reply Quote 0
            • undefined
              evomotors
              last edited by 9 Sept 2020, 18:53

              Same probe used in Voron printers, and they use BAT85 diode
              e.PNG

              undefined undefined 2 Replies Last reply 9 Sept 2020, 19:16 Reply Quote 0
              • undefined
                droftarts administrators @evomotors
                last edited by 9 Sept 2020, 19:16

                @evomotors as it’s NO rather than NC, you will need to invert the signal. Put a “!” In front of the pin name, eg M558 P8 C"!121.io0.in" H8 F800 T10000.

                If you’re planning to run hot chamber temperatures, be aware that the accuracy of NPN probes, like the Prisa Pinda probe, changes with temperature.

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                1 Reply Last reply Reply Quote 1
                • undefined
                  Phaedrux Moderator @evomotors
                  last edited by 9 Sept 2020, 19:24

                  @evomotors said in Connecting NPN NC inductive switch to Tool board:

                  they use BAT85 diode

                  I've been informed that the diode should not be necessary here.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 1
                  • undefined
                    tristanryerparke
                    last edited by 28 Oct 2020, 20:32

                    Trying to do the same thing but with io1.in and a PNP sensor, tried with a diode to be safe but the sensor will not trigger. Any ideas?

                    undefined 1 Reply Last reply 28 Oct 2020, 20:39 Reply Quote 0
                    • undefined
                      Phaedrux Moderator @tristanryerparke
                      last edited by Phaedrux 28 Oct 2020, 20:39

                      @tristanryerparke Best to create a new thread with all your details.

                      Never mind, I see you have another thread already.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Dizzwold @evomotors
                        last edited by 19 Oct 2022, 11:05

                        @evomotors

                        Can I ask how you wired this in the end?

                        Where did you get you +6v from to power it.

                        I'm trying to wire my NPN Inductive Probe and already using Out0, Out1, Out2.

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