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.
    • evomotorsundefined
      evomotors
      last edited by

      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

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • evomotorsundefined
        evomotors
        last edited by

        @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
        • Phaedruxundefined
          Phaedrux Moderator @evomotors
          last edited by Phaedrux

          @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

          evomotorsundefined 1 Reply Last reply Reply Quote 1
          • evomotorsundefined
            evomotors @Phaedrux
            last edited by

            @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
            • evomotorsundefined
              evomotors
              last edited by

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

              droftartsundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @evomotors
                last edited by

                @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
                • Phaedruxundefined
                  Phaedrux Moderator @evomotors
                  last edited by

                  @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
                  • tristanryerparkeundefined
                    tristanryerparke
                    last edited by

                    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?

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

                      @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
                      • Dizzwoldundefined
                        Dizzwold @evomotors
                        last edited by

                        @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