<p>I am trying to figure out how to wire up Auto Bed Leveling (ABL) on my Ender 3 using the optocoupler and inductive proximity sensor below.  </p>

<p>I cannot figure out how to wire it all together, all the tutorials I have found are for 2 and 3 wire per side of the optocoupler.</p>

<p><a href="https://i.stack.imgur.com/VL6Ix.jpg" rel="nofollow noreferrer" title="NOYITO Optocoupler Isolation MOS FET 10A DC 2.7-27V High-Power Field Effect Tube Driver Module 0-20Khz PWM Switch Control Board Development Board Module"><img src="https://i.stack.imgur.com/VL6Ix.jpg" alt="NOYITO Optocoupler Isolation MOS FET 10A DC 2.7-27V High-Power Field Effect Tube Driver Module 0-20Khz PWM Switch Control Board Development Board Module" title="NOYITO Optocoupler Isolation MOS FET 10A DC 2.7-27V High-Power Field Effect Tube Driver Module 0-20Khz PWM Switch Control Board Development Board Module"></a></p>

<p><a href="https://i.stack.imgur.com/t5FWj.jpg" rel="nofollow noreferrer" title="uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX"><img src="https://i.stack.imgur.com/t5FWj.jpg" alt="uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX" title="uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX"></a></p>

[{'answer_id': 8759, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 2, 'selected': False, 'text': '<p>Connecting is pretty straightforward like the other modules, difference is an extra input lead.</p>\n\n<p>From e.g. <a href="https://www.desertcart.ae/products/92694483-noyito-optocoupler-isolation-mos-fet-10-a-dc-2-7-27-v-high-power-field-effect-tube-driver-module-0-20-khz-pwm-switch-control-board-development-board-module" rel="nofollow noreferrer">here</a>: Module interface description: </p>\n\n<ol>\n<li>DC+: Positive DC power supply. </li>\n<li>DC- : Negative DC power supply. </li>\n<li>PWM: Signal input (connect MCU port, PLC interface, DC power supply, etc.) </li>\n<li>GND: The negative terminal of the signal </li>\n<li>OUT+: Positive output terminal (connected to the device positive) </li>\n<li>OUT-: Negative output terminal (connected to device negative)</li>\n</ol>\n\n<p>So, 1 and 2 connect to your power supply that matches the voltage of the logic of your microprocessor (5&nbsp;V) as this must be linked to 5 and 6 which are connected to the endstop signal and ground respectively.</p>\n\n<p>As for the sensor, blue is GND, black is signal (PWM) and brown is power as seen in e.g. <a href="/a/6359">this answer</a>.</p>\n'}, {'answer_id': 8761, 'author': 'Greenonline', 'author_id': 4762, 'author_profile': 'https://3dprinting.stackexchange.com/users/4762', 'pm_score': 1, 'selected': False, 'text': '<p>This is a bit of an <em>addendum</em> to 0scar\'s answer, as I didn\'t want to edit it in to his post.</p>\n<p>For completion, the sensor\'s internal schematic is on the side of the sensor itself<sup>1</sup>:</p>\n<p><a href="https://i.stack.imgur.com/DbsjD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DbsjD.png" alt="Sensor schematic" /></a></p>\n<p>where:</p>\n<ul>\n<li>PNP - 1 BN - Brown - V<sub>SUPPLY</sub></li>\n<li>N/O - 4 BK - Black - Sensor output</li>\n<li>4\xa0mm - 3 BU - Blue  - GND</li>\n</ul>\n<p>However, the complete diagram, taken from <a href="https://www.instructables.com/id/Enable-Auto-Leveling-for-your-3D-Printer-Marlin-Fi/" rel="nofollow noreferrer">Instructables - Enable Auto Leveling for Your 3D Printer With an Inductive Sensor (Marlin Firmware)</a>, can be seen here:</p>\n<p><a href="https://i.stack.imgur.com/2O66A.jpg" rel="nofollow noreferrer" title="Complete schematic"><img src="https://i.stack.imgur.com/2O66A.jpg" alt="Complete schematic" title="Complete schematic" /></a></p>\n<hr />\n<h3>Footnotes</h3>\n<p><sup>1</sup> Taken from <a href="https://www.picclickimg.com/d/w1600/pict/273297496840_/4mm-Inductive-Proximity-Approach-Sensor-Switch-PNP-NO.jpg" rel="nofollow noreferrer">this image</a>, which was on this product page, <a href="https://picclick.com/4mm-Inductive-Proximity-Approach-Sensor-Switch-PNP-NO-273297496840.html" rel="nofollow noreferrer">4mm Inductive Proximity Approach Sensor Switch PNP NO DC 6-36V 200mA Cylinder</a>:</p>\n<p><a href="https://i.stack.imgur.com/nSWyh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nSWyh.jpg" alt="Sensor image#1" /></a></p>\n<p>There is a bit more to the schematic, which can be glimpsed here (on the left hand side):</p>\n<p><a href="https://i.stack.imgur.com/2EVa0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2EVa0.jpg" alt="Sensor image#2" /></a></p>\n<p>A fuller, but blurry, view of the left hand side can be seen <a href="https://images-na.ssl-images-amazon.com/images/I/41kMRIsIl4L.jpg" rel="nofollow noreferrer">here</a>, from this <a href="https://weshop.co.id/amazon/item/uxcell-4mm-inductive-proximity-approach-sensor-switch-pnp-nc-dc-6-36v-200ma-3-wire-lj12a3-4-zay-cylinder-class-B07CWRHG4S.html" rel="nofollow noreferrer">product page</a>:</p>\n<p><a href="https://i.stack.imgur.com/27t1t.png" rel="nofollow noreferrer" title="Left hand side of sticker on sensor"><img src="https://i.stack.imgur.com/27t1t.png" alt="Left hand side of sticker on sensor" title="Left hand side of sticker on sensor" /></a></p>\n'}]
['https://3dprinting.stackexchange.com/questions/8758', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/15239/']