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

    NPN Inductive Sensor

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    11
    2.0k
    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.
    • npm1undefined
      npm1
      last edited by npm1

      Hi Guys,
      I have connected a diode to the sensor, with anode side(no line on the plastic) into the connectors on the duet wifi, and the cathode side(line on the plastic) into the wire on the sensor itself.

      LJ12A3-4-Z/AX

      When using either E0 STP pin or the Z STP for the sensor signal no light comes on. i.e. when the probe is triggered the red light is turned off, when the probe isn't triggered the red light is on( in my case the lights have never been on to begin with)

      Please Help as this is making me pull my hair out.
      At the moment the sensor is connected to the E0 Connector
      The code is as follows:

      ; Endstops
      M574 X1 Y1 S1;
      M574 E0 Z1 S0;
      M558 P4 X0 Y0 Z1 E0 H10 I1 F80 T6000 ; for inductive sensor, Set Z probe type to switch, the axes for which it is used and the dive height + speeds
      M557 X0:170 Y13:180 S25; Define mesh grid
      G31 P1000 X0 Y0 Z0; Set Z probe trigger
      alt text

      Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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

        1. If you are using a glass bed, are you sure that the sensor can detect the aluminium below it?

        2. Otherwise, it sounds like a wiring issue to me. You haven't shown where you have connected the sensor power and ground wires.

        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
        • npm1undefined
          npm1
          last edited by npm1

          Its a standard inductive sensor where the light turns of when it reaches the bed, whilst the red light near the motor connector(when connected to the Z STP) doesn't light up at all i.e. regardless of whether the sensor is triggered or not. The VCC(power) is connected directly to the power supply, this is where the red light is at its brightest.

          Ground is connected to any ground pin as expected.

          Either the board is faulty or the cable i ran through the cabling and there is no issues im actually gonna test it

          PS How comes theres no IRC chat, Ive been working on this all day especially with the z probe issue, that method of chat would be great. Kind Regards, How comes reprap has issues with the bed leveling in 2018, marlin seems to be easier on that aspect, But I paid a lot of money to have the comfort of the duet.

          Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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

            In your photo, which wires go to the Duet - the green ones at the bottom, or the black/blue ones at the top - and which to the 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

            1 Reply Last reply Reply Quote 0
            • npm1undefined
              npm1
              last edited by

              the side with black goes into the duet

              Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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

                Then the wiring looks OK. if you have a multimeter, please measure the voltage on each side of the diode, relative to ground, when the sensor is triggered and when it is not triggered.

                PS when you said:

                When using either E0 STP pin or the Z STP for the sensor signal no light comes on. i.e. when the probe is triggered the red light is turned off, when the probe isn't triggered the red light is on( in my case the lights have never been on to begin with)

                which red light did you mean: the one on the sensor or the endstop LED on the Duet?

                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
                • npm1undefined
                  npm1
                  last edited by

                  Hi,
                  I'm referring to an endstop led.
                  Thanks
                  what would you mean relative to ground.

                  Would a voltage divider make it easier. For this kind of probe.

                  Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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

                    @npm1 said in NPN Inductive Sensor:

                    Hi,
                    I'm referring to an endstop led.
                    Thanks
                    what would you mean relative to ground.

                    Would a voltage divider make it easier. For this kind of probe.

                    No, for an NPN output sensor, use a diode. Some people have found that it needs to be a Schottky diode, e.g. BAT43 or BAT85. It depends on your 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

                    npm1undefined 1 Reply Last reply Reply Quote 0
                    • npm1undefined
                      npm1 @dc42
                      last edited by npm1

                      @dc42
                      i used all three diodes on three different cables no differance and not working at all, this was the case on when this was connected in probe connector

                      Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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

                        @npm1 said in NPN Inductive Sensor:

                        Its a standard inductive sensor where the light turns of when it reaches the bed, whilst the red light near the motor connector(when connected to the Z STP) doesn't light up at all i.e. regardless of whether the sensor is triggered or not. The VCC(power) is connected directly to the power supply, this is where the red light is at its brightest.

                        Does the red endstop LED turn on if you disconnect the VCC to the inductive sensor and connect the output wire (which is connected to the diode cathode) to ground? If it doesn't, then the diode is faulty or not connected correctly.

                        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

                        npm1undefined 1 Reply Last reply Reply Quote 0
                        • npm1undefined
                          npm1 @dc42
                          last edited by

                          @dc42 now that is really interesting
                          ill give that a go and take from there

                          Ender 5 pro(LGXextruderddewith e3d revo rapid changer) with fly rrf e3 and a standard prusa mk3, both siting air-tight in a ikea kitchen cabinet.

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