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

    LJ12A3-4-Z/BX Proximity Sensor and 24V Relay with Optocoupler.

    Scheduled Pinned Locked Moved Unsolved
    CNC
    5
    5
    456
    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.
    • DigitalElfundefined
      DigitalElf
      last edited by

      Hello.
      I purchased the LJ12A3-4-Z/BX 6V-36V Inductive Proximity Sensor and a 24V 1-Channel Relay Module Board with Optocoupler (HIGH/LOW) for swapping the mechanical switches on my Duet-controlled CNC. Is anyone using a similar setup with Duet 2 who can assist me with the wiring, please?

      T3P3Tonyundefined DigiDundefined 2 Replies Last reply Reply Quote 0
      • DigitalElfundefined DigitalElf marked this topic as a question
      • T3P3Tonyundefined
        T3P3Tony administrators @DigitalElf
        last edited by

        @DigitalElf can you provide a bit more information on how you want to wire the inductive sensor and links to data sheets for those of us who don't know those products. Also which Duet mainboard are you using and how is the existing mechanical switch you want to replace wired.

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • SDJundefined
          SDJ
          last edited by

          Hello digital elf,

          In general it is best to used normally closed (NC) sensors. That way if there is an issue with the sensor the machine will refuse to home. I think the sensors you are using are normally open.

          Should still work fine, but I would suggest something like this: LJ12A3-4-Z/AX on this amazon page.

          Either way, the wiring should be nearly the same. Might have to switch the relay from high to low. Just test to see what works. Hold up something iron to the sensor and you should get the relay to switch on to off or opposite depending on how you wired it up.

          prox sensor setup Duet 2.jpg

          Hope that helps.

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

            @SDJ using a relay board is overkill. NPN sensors can be connected directly to the Duet. See https://docs.duet3d.com/en/User_manual/Connecting_hardware/Z_probe_connecting#npn-output-normally-open-inductive-or-capacitive-sensor. If using a normally-closed sensor then you need to invert the pin name in the M558 or M574 command.

            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
            • DigiDundefined
              DigiD @DigitalElf
              last edited by DigiD

              @DigitalElf
              I realize this post is 3 months old but thought for other CNC users looking to isolate their NPN Axis End Stop switches this might be of use , protoboard and opto isolators cost $15 , this is for a duet2 wifi

              2a326ae3-a4cd-4006-a8d7-61d09892e791-1614318490217-opto-for-inductive-sens.jpg

              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

              c120401b-de10-46f3-9777-d759519a5526-1614318937946-opto-isolate.jpg

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