<p>Connecting is pretty straightforward like the other modules, difference is an extra input lead.</p>

<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>

<ol>
<li>DC+: Positive DC power supply. </li>
<li>DC- : Negative DC power supply. </li>
<li>PWM: Signal input (connect MCU port, PLC interface, DC power supply, etc.) </li>
<li>GND: The negative terminal of the signal </li>
<li>OUT+: Positive output terminal (connected to the device positive) </li>
<li>OUT-: Negative output terminal (connected to device negative)</li>
</ol>

<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>

<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>

CC BY-SA 4.0
2019-04-23T08:04:09.687Z
Blue is GND?! Well I never. Completely contrary to convention. Utter madness! LOL... ;-)
Greenonline
CC BY-SA 4.0
2019-04-23T07:01:26.180Z
2019-04-23T07:01:26.180Z
0scar
<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>
<p>For completion, the sensor's internal schematic is on the side of the sensor itself<sup>1</sup>:</p>
<p><a href="https://i.sstatic.net/DbsjD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/DbsjD.png" alt="Sensor schematic" /></a></p>
<p>where:</p>
<ul>
<li>PNP - 1 BN - Brown - V<sub>SUPPLY</sub></li>
<li>N/O - 4 BK - Black - Sensor output</li>
<li>4 mm - 3 BU - Blue  - GND</li>
</ul>
<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>
<p><a href="https://i.sstatic.net/2O66A.jpg" rel="nofollow noreferrer" title="Complete schematic"><img src="https://i.sstatic.net/2O66A.jpg" alt="Complete schematic" title="Complete schematic" /></a></p>
<hr />
<h3>Footnotes</h3>
<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>
<p><a href="https://i.sstatic.net/nSWyh.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nSWyh.jpg" alt="Sensor image#1" /></a></p>
<p>There is a bit more to the schematic, which can be glimpsed here (on the left hand side):</p>
<p><a href="https://i.sstatic.net/2EVa0.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2EVa0.jpg" alt="Sensor image#2" /></a></p>
<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>
<p><a href="https://i.sstatic.net/27t1t.png" rel="nofollow noreferrer" title="Left hand side of sticker on sensor"><img src="https://i.sstatic.net/27t1t.png" alt="Left hand side of sticker on sensor" title="Left hand side of sticker on sensor" /></a></p>

CC BY-SA 4.0
2019-04-23T08:42:57.440Z
2019-04-23T21:01:49.653Z
2020-06-18T08:29:41.667Z
Greenonline
<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.sstatic.net/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.sstatic.net/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.sstatic.net/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.sstatic.net/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>

CC BY-SA 4.0
2019-04-23T15:23:48.147Z
VERY related: https://3dprinting.stackexchange.com/questions/6358/inductive-sensor-in-24-v-machine
Trish
<creality-ender-3><bed-leveling><z-probe>
How to connect optocoupler module to ABL sensor and Ender 3 board
Moltra
# How to connect optocoupler module to ABL sensor and Ender 3 board

(Asked by: username_0 on 2019-04-23)

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.

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.

[![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](https://i.sstatic.net/VL6Ix.jpg "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")](https://i.sstatic.net/VL6Ix.jpg "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")

[![uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX](https://i.sstatic.net/t5FWj.jpg "uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX")](https://i.sstatic.net/t5FWj.jpg "uxcell 4mm Inductive Proximity Approach Sensor Switch Detector NPN NO DC 6-36V 300mA 3-Wire LJ12A3-4-Z/BX")

**Tags:** creality-ender-3, bed-leveling, z-probe
> **Comments:**
> **username_1**: VERY related: https://3dprinting.stackexchange.com/questions/6358/inductive-sensor-in-24-v-machine  

---

## 2 answers

### Answer by username_2 on 2019-04-23. Score: 2

Connecting is pretty straightforward like the other modules, difference is an extra input lead.

From e.g. [here](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): Module interface description:

1. DC+: Positive DC power supply.
2. DC- : Negative DC power supply.
3. PWM: Signal input (connect MCU port, PLC interface, DC power supply, etc.)
4. GND: The negative terminal of the signal
5. OUT+: Positive output terminal (connected to the device positive)
6. OUT-: Negative output terminal (connected to device negative)

So, 1 and 2 connect to your power supply that matches the voltage of the logic of your microprocessor (5 V) as this must be linked to 5 and 6 which are connected to the endstop signal and ground respectively.

As for the sensor, blue is GND, black is signal (PWM) and brown is power as seen in e.g. [this answer](/a/6359).

> **Comments:**
> **username_3**: Blue is GND?! Well I never. Completely contrary to convention. Utter madness! LOL... ;-)  

---

### Answer by username_3 on 2019-04-23. Score: 1

This is a bit of an *addendum* to 0scar's answer, as I didn't want to edit it in to his post.

For completion, the sensor's internal schematic is on the side of the sensor itself1:

[![Sensor schematic](https://i.sstatic.net/DbsjD.png)](https://i.sstatic.net/DbsjD.png)

where:

* PNP - 1 BN - Brown - VSUPPLY
* N/O - 4 BK - Black - Sensor output
* 4 mm - 3 BU - Blue - GND

However, the complete diagram, taken from [Instructables - Enable Auto Leveling for Your 3D Printer With an Inductive Sensor (Marlin Firmware)](https://www.instructables.com/id/Enable-Auto-Leveling-for-your-3D-Printer-Marlin-Fi/), can be seen here:

[![Complete schematic](https://i.sstatic.net/2O66A.jpg "Complete schematic")](https://i.sstatic.net/2O66A.jpg "Complete schematic")

---

### Footnotes

1 Taken from [this image](https://www.picclickimg.com/d/w1600/pict/273297496840_/4mm-Inductive-Proximity-Approach-Sensor-Switch-PNP-NO.jpg), which was on this product page, [4mm Inductive Proximity Approach Sensor Switch PNP NO DC 6-36V 200mA Cylinder](https://picclick.com/4mm-Inductive-Proximity-Approach-Sensor-Switch-PNP-NO-273297496840.html):

[![Sensor image#1](https://i.sstatic.net/nSWyh.jpg)](https://i.sstatic.net/nSWyh.jpg)

There is a bit more to the schematic, which can be glimpsed here (on the left hand side):

[![Sensor image#2](https://i.sstatic.net/2EVa0.jpg)](https://i.sstatic.net/2EVa0.jpg)

A fuller, but blurry, view of the left hand side can be seen [here](https://images-na.ssl-images-amazon.com/images/I/41kMRIsIl4L.jpg), from this [product page](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):

[![Left hand side of sticker on sensor](https://i.sstatic.net/27t1t.png "Left hand side of sticker on sensor")](https://i.sstatic.net/27t1t.png "Left hand side of sticker on sensor")


---

