<p><strong>You can safely use the module with 24V.</strong></p>

<p>The input side shows a red LED, optocoupler and 1k resistor in series. The LED and optocoupler probably have a voltage drop in the neighbourhood of 3.1-3.5&nbsp;V put together, so for a 12&nbsp;V input you will get a current of approximately 9&nbsp;mA-.</p>

<p>For a 24 V input voltage the increased current will cause a slightly higher voltage drop, but even if the voltage drop remains as low as 3.1&nbsp;V the current will still only be 21&nbsp;mA. This is well within the rating of the optocoupler (similar optocouplers are often rated for 60&nbsp;mA) and slightly pushing the rating of the LED (similar LEDs are usually rated for 20&nbsp;mA) but it will probably be fine.</p>

<p>For extra peace of mind you could connect an additional resistor in series with the input. The "ideal" value (that is, to keep the current identical to that at 12&nbsp;V) would be 1.3&nbsp;kΩ, though any small value resistor (above 100&nbsp;Ω) would be fine.</p>

CC BY-SA 4.0
2019-08-17T15:18:47.503Z
2019-08-17T15:18:47.503Z
Tom van der Zanden
<h2>Not using a 12 V rated module <em>&quot;on its own&quot;</em>.</h2>
<p>Using a 12 V/5 V optocoupler to try to connect 24 V to the 5 V circuit is running the optocoupler outside of its rating, meaning you will destroy it, either immediately or after a short time.</p>
<h2>A properly rated one</h2>
<p>To shield the 5 V against the maximal 24 V from the probe without extra parts, you will need to use a 24 V/5 V optocoupler.</p>
<h3>Trickery with voltage dividers</h3>
<p>With a 50 % <a href="https://en.wikipedia.org/wiki/Voltage_divider" rel="nofollow noreferrer">voltage divider</a> made from two properly rated resistors, you could limit the voltage to the optocoupler, which in turn would turn the 24 V signal into a 12 V signal, which would protect our optocoupler and the board beyond.</p>

CC BY-SA 4.0
2019-08-16T14:03:26.337Z
so in short use 2 resistors
3d Printer
CC BY-SA 4.0
2019-08-16T17:46:35.590Z
As a voltage divider before the input, yes.
Trish
CC BY-SA 4.0
2019-08-16T21:19:31.557Z
or just double the resistance of the OC's LED to keep the current (about) the same at the double voltage; the input side of an opto is literally just an LED, which cares about current, not voltage. a voltage divider approach would have to be somewhat carefully chosen and balanced to not get too hot, waste power, or starve the OC's LED of intensity that would keep the output saturated.
dandavis
CC BY-SA 4.0
2019-08-16T21:43:19.743Z
@dandavis only if you know what type of LED is used and what kind of resistor is already mounted before... one of which you can't know: the LED.
Trish
CC BY-SA 4.0
2019-08-17T15:02:04.857Z
The advice to use a voltage divider is bad. The module requires a certain amount of input current, which will cause additional drop in the voltage divider, making a "50%" voltage divider give a voltage lower than 12V. To get the "right" voltage divider you need to measure the existing LED and resistor. The advice to use a voltage divider is still bad. It's much better to use a single current limiting resistor. The second resistor in the voltage divider does nothing except waste power in this case.
Tom van der Zanden
CC BY-SA 4.0
2019-08-11T21:13:57.577Z
2019-08-17T17:01:43.427Z
2020-06-18T08:29:41.667Z
Trish
<p>I have a Tevo Tornado Gold 24&nbsp;V. I want to use this LJ12 A3-4-Z/BX Inductive NPN NO 4&nbsp;mm with 6-36&nbsp;V operation current as a Z probe. I do not want to fry my machine by putting in 24&nbsp;V into the sensor input.</p>

<p>What do I have is a 12&nbsp;V, single channel optocoupler isolation module.</p>

<p>I want to know if this 12&nbsp;V optocoupler module can be used with a 24&nbsp;V power supply, or do I need another module in order to prevent me frying my sensor.</p>

<p>If I do need another what would I need?
<a href="https://i.sstatic.net/cxoYG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cxoYG.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2019-08-11T16:29:19.193Z
Welcome to 3dPrinting.SE! I'm really not sure what you're asking here ... could you please edit your question and clarify exactly what you are trying to do?
Pᴀᴜʟsᴛᴇʀ2
CC BY-SA 4.0
2019-08-11T16:33:36.567Z
I have a tevo tornado gold 24 V . So I want to put this LJ12 A3-4-Z/BX Inductive NPN NO 4 mm with 6-36 V operation current.

I do not want to fry my machine by putting in 24 V into the sensor input: What do I have is a :
12V 1 Channel Optocoupler Isolation Module Isolated Board No Din Rail Holder PLC Processors 80KHz PC817 EL817

i want to know if this optocoupler is ok to set up or do i need another in order to prevent me frying my sensor.
3d Printer
CC BY-SA 4.0
2019-08-11T16:46:11.037Z
Please EDIT this information into your question. You can click the edit link which is just below the tag, which is below the body of the question.
Pᴀᴜʟsᴛᴇʀ2
CC BY-SA 4.0
2019-08-12T20:06:30.870Z
If you gave us a link to the actual Optocoupler Isolation Module you refer to, we could advise. It might be that you only need to add a resistor to limit the current to the optocoupler's LED or it might be that it would need extensive modification.
Andrew Morton
CC BY-SA 4.0
2019-08-14T21:06:11.543Z
You will never fry the sensor, as this can take 6 V to 36 V. You can fry the module as it is rated for 12 V and not 24 V.
0scar
<z-probe><inductive-sensor><tevo-tornado>
Can I use a 12 V single channel optocoupler module in a 24 V machine?
3d Printer
# Can I use a 12 V single channel optocoupler module in a 24 V machine?

(Asked by: username_0 on 2019-08-11)

I have a Tevo Tornado Gold 24 V. I want to use this LJ12 A3-4-Z/BX Inductive NPN NO 4 mm with 6-36 V operation current as a Z probe. I do not want to fry my machine by putting in 24 V into the sensor input.

What do I have is a 12 V, single channel optocoupler isolation module.

I want to know if this 12 V optocoupler module can be used with a 24 V power supply, or do I need another module in order to prevent me frying my sensor.

If I do need another what would I need?
[![enter image description here](https://i.sstatic.net/cxoYG.png)](https://i.sstatic.net/cxoYG.png)

**Tags:** z-probe, inductive-sensor, tevo-tornado
> **Comments:**
> **username_1**: Welcome to 3dPrinting.SE! I'm really not sure what you're asking here ... could you please edit your question and clarify exactly what you are trying to do?  
> **username_0**: I have a tevo tornado gold 24 V . So I want to put this LJ12 A3-4-Z/BX Inductive NPN NO 4 mm with 6-36 V operation current.  I do not want to fry my machine by putting in 24 V into the sensor input: What do I have is a : 12V 1 Channel Optocoupler Isolation Module Isolated Board No Din Rail Holder PLC Processors 80KHz PC817 EL817  i want to know if this optocoupler is ok to set up or do i need another in order to prevent me frying my sensor.  
> **username_1**: Please EDIT this information into your question. You can click the edit link which is just below the tag, which is below the body of the question.  
> **username_2**: If you gave us a link to the actual Optocoupler Isolation Module you refer to, we could advise. It might be that you only need to add a resistor to limit the current to the optocoupler's LED or it might be that it would need extensive modification.  
> **username_3**: You will never fry the sensor, as this can take 6 V to 36 V. You can fry the module as it is rated for 12 V and not 24 V.  

---

## 2 answers

### Answer by username_4 on 2019-08-17. Score: 2

**You can safely use the module with 24V.**

The input side shows a red LED, optocoupler and 1k resistor in series. The LED and optocoupler probably have a voltage drop in the neighbourhood of 3.1-3.5 V put together, so for a 12 V input you will get a current of approximately 9 mA-.

For a 24 V input voltage the increased current will cause a slightly higher voltage drop, but even if the voltage drop remains as low as 3.1 V the current will still only be 21 mA. This is well within the rating of the optocoupler (similar optocouplers are often rated for 60 mA) and slightly pushing the rating of the LED (similar LEDs are usually rated for 20 mA) but it will probably be fine.

For extra peace of mind you could connect an additional resistor in series with the input. The "ideal" value (that is, to keep the current identical to that at 12 V) would be 1.3 kΩ, though any small value resistor (above 100 Ω) would be fine.


---

### Answer by username_5 on 2019-08-11. Score: 0

## Not using a 12 V rated module *"on its own"*.

Using a 12 V/5 V optocoupler to try to connect 24 V to the 5 V circuit is running the optocoupler outside of its rating, meaning you will destroy it, either immediately or after a short time.

## A properly rated one

To shield the 5 V against the maximal 24 V from the probe without extra parts, you will need to use a 24 V/5 V optocoupler.

### Trickery with voltage dividers

With a 50 % [voltage divider](https://en.wikipedia.org/wiki/Voltage_divider) made from two properly rated resistors, you could limit the voltage to the optocoupler, which in turn would turn the 24 V signal into a 12 V signal, which would protect our optocoupler and the board beyond.

> **Comments:**
> **username_0**: so in short use 2 resistors  
> **username_5**: As a voltage divider before the input, yes.  
> **username_6**: or just double the resistance of the OC's LED to keep the current (about) the same at the double voltage; the input side of an opto is literally just an LED, which cares about current, not voltage. a voltage divider approach would have to be somewhat carefully chosen and balanced to not get too hot, waste power, or starve the OC's LED of intensity that would keep the output saturated.  
> **username_5**: @dandavis only if you know what type of LED is used and what kind of resistor is already mounted before... one of which you can't know: the LED.  
> **username_4**: The advice to use a voltage divider is bad. The module requires a certain amount of input current, which will cause additional drop in the voltage divider, making a "50%" voltage divider give a voltage lower than 12V. To get the "right" voltage divider you need to measure the existing LED and resistor. The advice to use a voltage divider is still bad. It's much better to use a single current limiting resistor. The second resistor in the voltage divider does nothing except waste power in this case.  

---

