Skip to main content
edited body
Source Link
DKNguyen
  • 57.3k
  • 5
  • 70
  • 161

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too and isolation for all other signals crossing that power supply boundary.

schematicschematic

simulate this circuitsimulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too and isolation for all other signals crossing that power supply boundary.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too and isolation for all other signals crossing that power supply boundary.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

added 38 characters in body
Source Link
DKNguyen
  • 57.3k
  • 5
  • 70
  • 161

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too and isolation for all other signals crossing that power supply boundary.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too and isolation for all other signals crossing that power supply boundary.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

deleted 57 characters in body
Source Link
DKNguyen
  • 57.3k
  • 5
  • 70
  • 161

If pulseyou are only using the opto because the input voltage varies that much just R2 won't workis higher, an opto is overkill. YouIf you need an opto due to add a zener diode in parallelsafety (unlikely with pins 1 & 2 to clamp the voltage. But24V) or noise, then you could just get rid of the opto.

And when thean opto is gone, you could use the same resistor-zener clampinsufficient; You would need isolated or a resistor-rail diode clampseparate supplies and grounds too.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If pulse voltage varies that much just R2 won't work. You need to add a zener diode in parallel with pins 1 & 2 to clamp the voltage. But then you could just get rid of the opto.

And when the opto is gone, you could use the same resistor-zener clamp or a resistor-rail diode clamp.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

If you are only using the opto because the input voltage is higher, an opto is overkill. If you need an opto due to safety (unlikely with 24V) or noise, then just an opto is insufficient; You would need isolated or separate supplies and grounds too.

schematic

simulate this circuit – Schematic created using CircuitLab

The main difference is the Zener clamps the voltage even when the 3.3V is unpowered which could be important if the pulse source can be powered while the 3.3V is unpowered. The Zener is slower and produces more heat in the diode, though heat is negligible due to the current limiting of the resistor.

The rail clamp diode can be faster if properly chosen (like a Schottky diode) with more flexible clamping voltage but needs 3.3V power.

deleted 57 characters in body
Source Link
DKNguyen
  • 57.3k
  • 5
  • 70
  • 161
Loading
Source Link
DKNguyen
  • 57.3k
  • 5
  • 70
  • 161
Loading