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

DUET 3 6HC - Using Inductive proximity sensor as endstop

Scheduled Pinned Locked Moved
Duet Hardware and wiring
8
19
1.8k
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
    reFlexlab
    last edited by 25 Feb 2021, 09:33

    Hello everyone,

    I am currently developping a 5Axis manufacturing plateform in which I would like to use Inductive proximity sensors as endstop, here is a photo of the machine in it's current state.

    Capture.PNG

    The model that i would like to implement is a SN-04 NPN like this one

    51z3T-MOakL.AC_SY355.jpg

    I wanted to know what would be the best way to connect those endstop to the Duet 3 and how should i implement the firmware part.

    For the moment I wanted to power the sensor with a 12V signal comming from a always on fan pin and use the I0_0_IN pin of the GPIO as the sensor input.

    What do you think ?

    Tom

    @ reFlexLab Paris # MMMM project
    Modular Multimaterial Multiprocess Manufacturing

    undefined undefined 2 Replies Last reply 25 Feb 2021, 15:03 Reply Quote 0
    • undefined
      fcwilt @reFlexlab
      last edited by 25 Feb 2021, 15:03

      @reFlexlab

      Using such a device as an endstop is fine.

      I tested a number of different inductive sensors and the one thing that all had in common was the needed to use something to get the logic voltage levels from the sensor to be compatible with the logic voltage levels needed by the Duet.

      I found that two resistors of suitable values in a suitable arrangement could obtain the needed levels - but different sensors needed different values/arrangements.

      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

      1 Reply Last reply Reply Quote 0
      • undefined
        jay_s_uk
        last edited by 25 Feb 2021, 15:19

        I believe the inputs are tolerant up to 30v so just plug it in and go.
        I use a very similar one on the mini5+ at 24v with no modifications or extra resistors etc

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        undefined 1 Reply Last reply 25 Feb 2021, 17:32 Reply Quote 0
        • undefined
          fcwilt @jay_s_uk
          last edited by 25 Feb 2021, 17:32

          @jay_s_uk said in DUET 3 6HC - Using Inductive proximity sensor as endstop:

          I believe the inputs are tolerant up to 30v so just plug it in and go.
          I use a very similar one on the mini5+ at 24v with no modifications or extra resistors etc

          True the inputs will not be harmed but you still have to insure the logic levels are correct.

          The output levels of the sensors I tested were all over the place.

          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 2 Mar 2021, 09:39 Reply Quote 0
          • undefined
            dc42 administrators
            last edited by dc42 25 Feb 2021, 18:22

            Would there be any interest in Duet3D manufacturing and selling a small inductive sensor that runs from 3.3V or 5V? Most of the existing sensors advertised as being 5V appears to be 6 to 36V sensors sold as 5V.

            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

            undefined undefined 2 Replies Last reply 25 Feb 2021, 18:29 Reply Quote 2
            • undefined
              jay_s_uk
              last edited by 25 Feb 2021, 18:24

              definitely!

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              1 Reply Last reply Reply Quote 0
              • undefined
                weed2all @dc42
                last edited by 25 Feb 2021, 18:29

                @dc42 yes definitely

                https://www.thingiverse.com/weed2all/designs

                1 Reply Last reply Reply Quote 0
                • undefined
                  DigiD @reFlexlab
                  last edited by DigiD 26 Feb 2021, 06:02

                  @reFlexlab

                  opto isolator x 4 on my Delta , allows you to use what ever voltage the sensor works best with ( in my case 24volts) , isolates the high voltage from the low , decouples any kind of line noise from steppers etc and doesn't toast the board if you plug it in backwards

                  in config file use

                  M574 X2 S1 P"!xstop" ; configure active low endstop for high end on X via pin xstop !prefix

                  Opto for inductive sens.JPG

                  opto isolate.jpg

                  undefined undefined undefined 3 Replies Last reply 26 Feb 2021, 07:47 Reply Quote 2
                  • undefined
                    JoergS5 @DigiD
                    last edited by 26 Feb 2021, 07:47

                    @DigiD using optocoupler is a great idea and using a LED for added signal is it also!

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      fcwilt @DigiD
                      last edited by 26 Feb 2021, 08:55

                      @DigiD

                      Clever.

                      What is the brand and part number of the inductive sensor you are using?

                      I will have to re-test the sensors I tested to see if they would work with such a circuit.

                      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 26 Feb 2021, 13:09 Reply Quote 0
                      • undefined
                        fcwilt @dc42
                        last edited by fcwilt 26 Feb 2021, 08:59

                        @dc42 said in DUET 3 6HC - Using Inductive proximity sensor as endstop:

                        Would there be any interest in Duet3D manufacturing and selling a small inductive sensor that runs from 3.3V or 5V?

                        Yes if it could be as small as the 8mm cylindrical inductive sensor I use now.

                        And the switching frequency should be 2 kHz or better.

                        Most of the existing sensors advertised as being 5V appears to be 6 to 36V sensors sold as 5V.

                        Perhaps that is why the two models I tested didn't work as well as those rated 10-30 volts.


                        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 26 Feb 2021, 09:32 Reply Quote 0
                        • undefined
                          dc42 administrators @fcwilt
                          last edited by dc42 26 Feb 2021, 09:32

                          @fcwilt said in DUET 3 6HC - Using Inductive proximity sensor as endstop:

                          Yes if it could be as small as the 8mm cylindrical inductive sensor I use now.

                          We're looking at using a 6mm diameter sense coil. We would supply the PCB and the sense coil, leaving you to print an enclosure for it (we would publish a sample design). It would be designed to work well with non-magnetic surfaces, but would work with magnetic surfaces too. We would aim for 1ms response time.

                          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

                          undefined undefined 2 Replies Last reply 26 Feb 2021, 10:38 Reply Quote 2
                          • undefined
                            fcwilt @dc42
                            last edited by 26 Feb 2021, 10:38

                            @dc42 said in DUET 3 6HC - Using Inductive proximity sensor as endstop:

                            We're looking at using a 6mm diameter sense coil. We would supply the PCB and the sense coil, leaving you to print an enclosure for it (we would publish a sample design). It would be designed to work well with non-magnetic surfaces, but would work with magnetic surfaces too. We would aim for 1ms response time.

                            That all sounds reasonable.

                            Send me a couple and I will test them and add them to my list. 😉

                            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

                            1 Reply Last reply Reply Quote 1
                            • undefined
                              DigiD @fcwilt
                              last edited by DigiD 26 Feb 2021, 13:09

                              @fcwilt

                              LJ12A3-4-Z/BX Inductive Proximity sensor NPN (OMRON and no name brands seem to work equally well) , very common on Ebay about $3-4 AUD each

                              4mm sensing distance , best results using mild steel as a target that is close to the diameter of the sensor . derate sense distance for stainless .7 and Aluminium .4

                              been in the printer for a few years now with out any issues

                              I use first pass fast coarse and second pass slower accurate for homing

                              undefined 1 Reply Last reply 26 Feb 2021, 14:00 Reply Quote 1
                              • undefined
                                pkos @dc42
                                last edited by 26 Feb 2021, 13:54

                                @dc42 I would definitely be interesting in something like that! 🙂

                                Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  fcwilt @DigiD
                                  last edited by 26 Feb 2021, 14:00

                                  @DigiD said in [DUET 3 6HC - Using Inductive proximity sensor as endstop]> LJ12A3-4-Z/BX Inductive Proximity sensor NPN (OMRON and no name brands seem to work equally well) , very common on Ebay about $3-4 AUD each

                                  Interesting.

                                  The number looked familiar.

                                  I had ordered one of each variety (-AX -AY -BX -BY -BX-5V) under the TWIDEC brand but they do not appear in my list of tested devices.

                                  I need to find them and finish testing.

                                  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

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    reFlexlab @DigiD
                                    last edited by 2 Mar 2021, 09:38

                                    @DigiD Thank you for your help, how should I select the OptoCoupler and the resistor based on the model of inductive endstop that I used ?

                                    @ reFlexLab Paris # MMMM project
                                    Modular Multimaterial Multiprocess Manufacturing

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      reFlexlab @fcwilt
                                      last edited by 2 Mar 2021, 09:39

                                      @fcwilt

                                      Hello Thank you for your help,

                                      How do I test that the logic levels are correct and how should I correct if they are not ?

                                      Thank you,
                                      Tom

                                      @ reFlexLab Paris # MMMM project
                                      Modular Multimaterial Multiprocess Manufacturing

                                      undefined 1 Reply Last reply 2 Mar 2021, 10:00 Reply Quote 0
                                      • undefined
                                        fcwilt @reFlexlab
                                        last edited by 2 Mar 2021, 10:00

                                        @reFlexlab said in DUET 3 6HC - Using Inductive proximity sensor as endstop:

                                        @fcwilt

                                        Hello Thank you for your help,

                                        How do I test that the logic levels are correct and how should I correct if they are not ?

                                        Thank you,
                                        Tom

                                        I have an oscilloscope that I use but any device capable of measuring DC voltages in the 0 to 24 volt range would work.

                                        Here is an example of the small low cost oscilloscopes available today. This one is half the cost of the older unit I have and five times as fast.

                                        Oscilloscope

                                        The OptoCoupler used is a 4N25 which is quite common.

                                        The 1K resistor should be good for most inductive sensors IF they source current which is usually the case for PNP types of sensors.

                                        NPN types of sensors usually sink current in which case the cathode end of L1 would connect to the sensor output and the J1 end of the resistor would connect to power source, labeled V1+ in the diagram above.

                                        Yet I have found PNP and NPN types that both source and sink current.

                                        I wish manufactures would stick to pure open-emitter (PNP) or open-collector (NPN) designs. Sigh... 😉

                                        You can start with just R1 and L1 connected to sensor output and ground OR sensor power and output. If L1 goes on and off with the sensor then you have found the correct setup and can finish the wiring adding the 4N25, etc.

                                        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

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