Optocoupler Working Principle: Types, CTR Formula and Industrial Applications Explained

Share:

Electronics · Optocoupler · Photocoupler · Electrical Isolation · Signal Coupling

Optocoupler Working Principle: How It Provides Electrical Isolation, Types, CTR and Industrial Applications

A complete plain-English guide to optocoupler (photocoupler) working principle: how an LED converts electrical signal to light, how a photodetector converts it back, what current transfer ratio means, the four main types compared, key electrical parameters explained, and how optocouplers are used in industrial instrumentation for 4-20 mA isolation, PLC digital inputs and gate drive circuits.

Working Principle SVG CTR Formula and Example Four Types Compared Industrial Applications

Optocoupler Working Principle: Introduction

Two circuits share information but must never share electrons. This is the fundamental requirement that the optocoupler was designed to solve. A 4-20 mA field instrument floating at a high common-mode voltage needs to send its signal to a DCS input card without creating a ground loop. A microcontroller running at 3.3 V needs to switch a 240 V AC load without risking damage to the MCU if the load side develops a fault. A motor drive gate controller needs to fire a high-side IGBT at 600 V above the control circuit ground. In all of these cases, information must cross an electrical barrier while no electrical current flows across that barrier.

The optocoupler solves this problem with light. On the input side, an LED converts electrical current into photons. On the output side, a photodetector converts those photons back into electrical current. The only connection between input and output is the light path: photons travel across a tiny gap of transparent dielectric material, carrying the signal without carrying any electrons. No conductive path exists between the two circuits, so no current can flow between them even if a large voltage difference exists across the isolation barrier.

Optocouplers are among the most widely used components in electronics and industrial instrumentation. They appear in 4-20 mA analog isolators, PLC digital input cards, switching power supply feedback loops, motor drive gate circuits, RS-232 and RS-485 isolation adapters, medical equipment patient isolation stages, and virtually any circuit that requires galvanic isolation between two signal domains. Understanding how they work, what their key parameters mean, and how to choose the right type for an application is essential knowledge for any electronics or instrumentation engineer.

What this guide covers
What an optocoupler is and what problem it solves
The working principle: LED emitter to photodetector receiver via light path
The semiconductor physics: why an LED emits light and how a photodetector converts it to current
Internal construction and the isolation barrier material
Current Transfer Ratio (CTR): definition, formula, worked example and why it matters
The four main optocoupler output types: phototransistor, photodiode, Darlington and triac
SVG internal structure diagram showing the LED, light path and photodetector
Key electrical parameters: V_ISO, CTR, bandwidth, V_CE(SAT), I_F, response time
Isolation voltage rating: what 5000 V RMS actually means
Speed vs CTR trade-off in optocoupler selection
Industrial applications: 4-20 mA loop isolation, PLC DI input, gate drive, RS-485 isolation
Common application circuits: how to wire an optocoupler correctly
How to select an optocoupler: step-by-step guide
Advertisement
Advertisement

How an Optocoupler Works: The Complete Operating Principle

An optocoupler (also called a photocoupler, opto-isolator or optical coupler) is a semiconductor device that transfers electrical signals between two electrically isolated circuits using light as the intermediate carrier. It contains two semiconductor devices sealed in a single package with a transparent optical medium between them: an LED (Light Emitting Diode) on the input side, and a photodetector on the output side.

Stage 1: Electrical Signal to Light (LED Emitter)

When current flows through the LED on the input side, the LED emits infrared or visible light. This is the electroluminescence process: in a forward-biased semiconductor junction, electrons recombine with holes in the depletion region and release energy in the form of photons. The wavelength of the emitted light depends on the semiconductor material. Most optocoupler LEDs use gallium arsenide (GaAs) or gallium arsenide phosphide (GaAsP), which emit near-infrared light at approximately 850-950 nm. This wavelength is chosen because the photodetector on the output side is most sensitive at these wavelengths.

The LED in an optocoupler behaves exactly like any other LED in terms of its I-V characteristic: it has a forward voltage of approximately 1.2 to 1.5 V and emits light proportional to its forward current. The intensity of emitted light is proportional to forward current I_F.

Stage 2: Light Crosses the Isolation Barrier

The photons emitted by the LED travel across the optocoupler's isolation gap. This gap is filled with a transparent dielectric material, typically a clear epoxy or silicone resin. The dielectric provides the electrical isolation: because it is a non-conductor, no electrical current can flow between the LED and the photodetector even if there is a large voltage difference between the two sides. The isolation voltage rating of the optocoupler (expressed in V_RMS or V peak) tells you the maximum voltage that can safely exist across this barrier without breakdown.

Stage 3: Light Back to Electrical Signal (Photodetector)

The photodetector on the output side absorbs the infrared photons and converts them back into an electrical current through the photoelectric effect. When photons with sufficient energy strike the semiconductor junction of the detector, they generate electron-hole pairs in the depletion region. These carriers are swept across the junction by the built-in electric field, creating a photocurrent proportional to the incident light intensity. This photocurrent is then used to control a transistor, triac or other output device.

Figure 1: Optocoupler Internal Structure and Operating Principle
OPTOCOUPLER PACKAGE (e.g. 4N35, PC817, 6N137) INPUT SIDE (Anode/Cathode) GaAs LED ~850-950 nm IR A Anode K Cathode I_F = 5-20 mA typical V_F = 1.2-1.5 V ISOLATION BARRIER Transparent dielectric (clear epoxy) V_ISO 1500-10000 V No electrical conduction possible PHOTONS (infrared light) OUTPUT SIDE (Collector/Emitter) NPN Phototransistor I_C controlled by light C Collector E Emitter INPUT CIRCUIT Low-voltage control side OUTPUT CIRCUIT Isolated load side

Figure 1: Optocoupler internal structure (phototransistor output type). Current through the LED (input side) produces infrared photons that cross the transparent isolation barrier. The phototransistor on the output side converts the incident photons into a collector current proportional to the input LED current. No electrical connection exists between input and output circuits.

Advertisement
Advertisement

Current Transfer Ratio (CTR): The Most Important Optocoupler Parameter

The Current Transfer Ratio is the parameter that tells you how efficiently the optocoupler transfers a current signal from input to output. It is defined as the ratio of the output collector current to the input LED forward current, expressed as a percentage.

Current Transfer Ratio (CTR) definition and formula: CTR (%) = (I_C / I_F) x 100

Where:
I_C = output collector current (mA)
I_F = input LED forward current (mA)

Example: CTR calculation for a PC817 optocoupler Datasheet specifies: CTR = 100% minimum at I_F = 5 mA

This means: if I_F = 5 mA, then I_C (minimum) = 5 mA x 100% = 5 mA

If CTR = 300% at I_F = 5 mA:
I_C = 5 mA x 300% = 15 mA available from collector

Practical design calculation: Required: I_C = 10 mA to drive relay coil
Optocoupler CTR = 150% (minimum)

Required I_F = I_C / (CTR/100) = 10 / 1.5 = 6.67 mA
Select I_F = 8 mA with margin (input resistor calculation below)
Input resistor: R = (V_supply - V_F) / I_F
= (5V - 1.2V) / 0.008A
R = 475 ohm (use 470 ohm standard value)
CTR decreases with age and temperature. Always design for minimum CTR, not typical. CTR also decreases as I_F increases (LED efficiency drops at high current). In precision analog circuits, CTR variation between units causes gain errors.
Why CTR decreases over the LED lifetime
The LED inside an optocoupler degrades over time as a result of the same mechanisms that cause all LEDs to dim with age: defects in the crystal lattice accumulate at the junction, increasing non-radiative recombination (energy lost as heat rather than light). At high operating temperatures and high forward currents, degradation accelerates. A 4N35 at I_F = 10 mA operating continuously at 70°C will typically lose 30-50% of its initial CTR after 50,000 hours. This is why conservative designs use a CTR margin of at least 2x over the required minimum, and why critical applications test optocoupler CTR during production screening.

The Four Main Optocoupler Output Types

1. Phototransistor Output

The most common type. The photodetector is an NPN transistor whose base is the photosensitive junction. Light controls collector current. No external base pin on most devices. CTR typically 50-300%. Bandwidth up to about 100 kHz. Examples: 4N35, 4N36, PC817, TLP521. Used for: digital signal isolation, relay drivers, low-speed analog isolation. Collector-emitter saturation voltage (V_CE(SAT)) of 0.2-0.4 V limits low-side output voltage swing.

2. Darlington Phototransistor Output

The photodetector drives the base of a second transistor in a Darlington pair, multiplying the current gain. CTR can reach 500-7000%. Allows very low LED current (I_F as low as 0.5 mA) to control larger output currents. Trade-off: slower response (bandwidth typically below 10 kHz) and higher V_CE(SAT) (0.8-1.2 V). Examples: 4N29, MCT2E. Used for: battery-powered control circuits where minimising LED drive current matters. Not for high-speed signals.

3. Photodiode Output

Output is a single photodiode. Fastest response time (bandwidth to 10 MHz+) but lowest CTR (typically 0.1-1%). Requires an external transimpedance amplifier to produce a usable voltage output. Used for: high-speed digital isolation (fibre optic link receivers), analog precision signal isolation where bandwidth matters more than gain. Examples: HCPL-2630, IL300. The IL300 is specifically designed for precision linear analog isolation.

4. Triac / SCR Output

Output is a TRIAC or SCR that can switch AC power loads directly without an additional transistor stage. Input LED current triggers the TRIAC into conduction for the remainder of the AC half cycle. Used for: zero-crossing detection and AC load control, solid-state relay (SSR) output stages, AC motor control. Examples: MOC3021, MOC3042 (random-phase triggering), MOC3083 (zero-crossing detector). Can control AC loads up to 400 V directly from a microcontroller output.

Key Electrical Parameters: What the Datasheet Numbers Mean

ParameterSymbolTypical value (4N35)What it means in practice
Isolation voltageV_ISO5300 V RMSThe maximum AC voltage that can be applied across the isolation barrier (input to output) for 1 minute without breakdown. This is a withstand test voltage, not a continuous operating rating. Continuous isolation voltage is typically 50-70% of V_ISO. For industrial 240 V AC isolation, use a device rated at least 1500 V RMS. For medical equipment, 4000 V RMS or higher is standard.
Current transfer ratioCTR100% minimum at I_F = 10 mARatio of I_C to I_F expressed as percentage. The key gain parameter of the optocoupler. Always design to the minimum CTR specification, not typical. CTR varies with temperature (decreases), LED age (decreases), and I_F (peaks at low current).
LED forward voltageV_F1.2 V typical at I_F = 10 mAForward voltage of the input LED. Used to calculate the input current-limiting resistor: R = (V_supply - V_F) / I_F. Typically 1.0 to 1.5 V. Must be accounted for in input circuit design.
Maximum LED forward currentI_F max60 mAAbsolute maximum LED current. Exceeding this value permanently damages the LED junction. Operating at I_F max continuously causes rapid LED degradation. Recommended operating point is 5-15 mA for most applications.
Collector-emitter saturation voltageV_CE(SAT)0.4 V at I_C = 2 mAThe output voltage when the phototransistor is fully turned on (saturated). This is the minimum achievable output LOW voltage. If the load requires a voltage very close to ground, V_CE(SAT) sets the lower limit of what can be achieved. High V_CE(SAT) is a problem in low-voltage 3.3 V circuits.
Rise and fall timet_r, t_f2 µs / 2 µs typicalTime for the output to transition between states (10% to 90% of full swing). Sets the maximum data rate for digital applications. A 4N35 with 2 µs rise time can handle about 50-100 kHz digital signals. High-speed optocouplers (e.g. 6N137) achieve response times below 100 ns for Mbps data rates.
Maximum collector-emitter voltageV_CE max30 VMaximum voltage that can be applied across the phototransistor output terminals. The output circuit supply voltage must not exceed this value. For higher voltage load switching, use a separate output transistor or MOSFET driven by the optocoupler.
Creepage and clearance distancePhysical8 mm (DIP-6 package)The physical distance between input and output pins along the package surface (creepage) and through air (clearance). International safety standards (IEC 60950, IEC 62368) specify minimum creepage distances for different working voltages and pollution environments. Wide-body packages provide greater creepage for high-voltage applications.
Advertisement
Advertisement

The Speed vs CTR Trade-Off in Optocoupler Design

Optocouplers obey the same gain-bandwidth trade-off that governs all amplifier circuits. Achieving higher CTR (more gain) requires a larger phototransistor or Darlington configuration, but larger, higher-gain devices have larger junction capacitances and longer minority carrier lifetimes, which make them slower. This is why high-CTR Darlington optocouplers are the slowest type and photodiode optocouplers are the fastest type.

TypeTypical CTRBandwidth / max data rateBest for
Darlington output500 to 7000%Below 10 kHzVery low LED drive current, slow digital signals, relay drivers
Phototransistor output50 to 300%DC to 100 kHzGeneral purpose digital isolation, 4-20 mA signal isolation, PLC inputs
High-speed phototransistor10 to 100%Up to 1 MbpsSerial communication isolation (RS-232, RS-485, CAN bus isolators)
Logic gate output (6N137 type)N/A (digital)Up to 10 MbpsHigh-speed digital isolation, SPI/I2C/UART isolation, encoder signals
Photodiode output with external amp0.1 to 1%DC to 10 MHz+Precision analog isolation, high-bandwidth wideband isolation

Optocouplers in Industrial Instrumentation: Key Applications

Application 1: 4-20 mA Analog Signal Isolation

In process plants, 4-20 mA signals from field instruments sometimes share a common power supply with other equipment, creating ground loops that degrade signal quality. A galvanic isolator using an optocoupler (or more commonly a precision analog optocoupler such as the IL300, which contains a matched pair of photodiodes) breaks the ground loop while maintaining the 4-20 mA signal path. The IL300 type uses a servo feedback topology: one photodiode provides signal output, and a second photodiode provides feedback to the input amplifier to compensate for CTR variation. This achieves linearity better than 0.01% across the full 4-20 mA range. See our guide on the 4-20 mA current loop for context on the signal being isolated.

Application 2: PLC Digital Input Protection

Every digital input on a PLC or DCS uses an optocoupler as its first stage. The field wiring (which may be exposed to EMI, inductive spikes from solenoid valves, or voltage transients from contact bounce) connects to the LED side. The PLC logic circuits connect to the phototransistor output side, completely isolated from the field hazards. The optocoupler provides both electrical isolation and protection against high-voltage transients from the field. It also allows the PLC input to accept field voltages (24 VDC, 110 VDC or 240 VAC) that would destroy the logic circuits directly.

Application 3: Gate Drive Isolation for Power Electronics

IGBT and MOSFET transistors in motor drives, inverters and switch-mode power supplies must receive gate drive signals that are referenced to the transistor's source/emitter voltage. In a half-bridge configuration, the high-side transistor's source is at the DC bus voltage (hundreds of volts) above the controller ground. A gate drive optocoupler (such as the HCPL-314J or ACNW3190) bridges this voltage gap, allowing the controller to turn the high-side switch on and off while providing 2500 V or more of isolation between the controller and the high-voltage switch.

Application 4: RS-232 and RS-485 Signal Isolation

RS-232 and RS-485 connections between instruments from different equipment (which may have different earth potentials) create ground loops that corrupt serial data. Isolation adapters using high-speed optocouplers (or digital isolators such as the ADuM series, which use transformers rather than optocouplers) are used to break these loops. Our guide on RS232 vs RS485 discusses where isolation is needed in field instrument networks.

Application 5: Switch-Mode Power Supply Feedback

In flyback converters and other isolated switch-mode power supplies, the output voltage must be sensed and fed back to the primary-side PWM controller while maintaining isolation between primary and secondary. The PC817 or TLP431 combination is the classic solution: a TL431 precision shunt regulator on the secondary side drives the LED of a PC817 optocoupler, whose collector current flows on the primary side and adjusts the PWM duty cycle to regulate the output voltage. This feedback loop operates continuously with the isolation barrier intact.

How to Wire an Optocoupler: Basic Application Circuits

Basic optocoupler circuit: input current-limiting resistor The input LED requires a series resistor to set the correct forward current.

R_input = (V_input - V_F) / I_F

Where:
V_input = supply voltage on input side (e.g. 5V, 12V, 24V)
V_F = LED forward voltage (typically 1.2 to 1.5 V)
I_F = desired LED forward current (typically 5-15 mA)

Examples for different input voltages: V_input = 5V: R = (5 - 1.2) / 0.010 = 380 ohm (use 390 ohm)
V_input = 12V: R = (12 - 1.2) / 0.010 = 1080 ohm (use 1k)
V_input = 24V: R = (24 - 1.2) / 0.010 = 2280 ohm (use 2.2k)
V_input = 3.3V: R = (3.3 - 1.2) / 0.005 = 420 ohm (use 430 ohm)

Output pull-up resistor (phototransistor output, active-low configuration): Connect collector to V_CC_output through a pull-up resistor.
Output HIGH when LED off (transistor off). Output LOW when LED on (transistor on).

R_pullup = (V_CC_output - V_CE_sat) / I_C_required
= (5V - 0.2V) / 0.005A = 960 ohm (use 1k)

For TTL or CMOS logic interfaces, use a Schmitt trigger inverter (74HC14) after the optocoupler output to clean up slow transitions from high-CTR devices. This prevents logic glitches from slow phototransistor turn-off.

How to Select an Optocoupler: Step-by-Step

StepQuestion to answerThis determines
1What is the maximum voltage between input and output circuits (including transients)?Minimum isolation voltage V_ISO. For 240 V AC applications, select V_ISO at least 2500 V RMS. For industrial 24 VDC systems with surge requirements, at least 1500 V RMS.
2What is the maximum signal frequency or data rate to be transferred?Minimum bandwidth or response time. DC to 10 kHz: phototransistor. 10 kHz to 1 Mbps: high-speed phototransistor. Above 1 Mbps: logic gate output type (6N137, HCPL-0600).
3Is the signal analog or digital?For digital: most standard phototransistor types work. For analog: need precision linear type (IL300 class) or use a V-to-F converter with a digital optocoupler.
4What is the available input drive current (I_F)?If I_F is limited (battery-powered, 3.3 V MCU with small current sink), need high CTR type or Darlington. If I_F is available (24 VDC with series resistor), standard 100% CTR phototransistor is fine.
5What is the output load voltage and current?Must not exceed V_CE max of the phototransistor. If the load is at higher voltage, add an external transistor or MOSFET driven by the optocoupler.
6What are the operating temperature range and lifetime requirements?For harsh environments or long service life, select a device from the automotive or industrial grade with high LED efficiency and low degradation rate. Check derating curves for CTR at maximum temperature.

External Resources

Trusted external references on optocouplers
Advertisement
Advertisement

Quick FAQs

What is the working principle of an optocoupler?
An optocoupler transfers an electrical signal across an isolation barrier using light. Current through the input LED produces infrared photons that travel across a transparent dielectric gap. A photodetector on the output side converts the photons back into an electrical current. No electrical conduction path exists between input and output, so the two circuits are galvanically isolated.
What is CTR and why does it matter?
CTR (Current Transfer Ratio) = (I_C / I_F) x 100%: it is the ratio of output collector current to input LED current, expressed as a percentage. A CTR of 100% means 10 mA of LED current produces 10 mA of collector current. CTR determines how much LED drive is needed for a given output current. It decreases with temperature and LED ageing, so circuit designs must use the minimum CTR specification with an adequate margin.
What does the isolation voltage rating mean?
The isolation voltage (V_ISO) is the peak AC or DC voltage that can exist between the input and output terminals without electrical breakdown of the isolation barrier. A rating of 5000 V RMS means the device survives a 5000 V AC withstand test for 1 minute. Continuous operating voltage should be derated to about 50-70% of the withstand test voltage. For mains-isolated applications (240 V AC), a minimum V_ISO of 1500 V RMS is required by most safety standards.
What is the difference between a phototransistor and a photodiode optocoupler?
A phototransistor optocoupler uses light to control the base of a transistor, providing current gain (CTR 50-300%) but limited bandwidth (up to about 100 kHz). A photodiode optocoupler generates a small photocurrent with no transistor gain (CTR below 1%) but can respond at frequencies up to 10 MHz. Choose the phototransistor type for most general-purpose applications and the photodiode type for high-speed or precision analog isolation.
Why do PLC digital input cards use optocouplers?
PLC digital input cards use optocouplers to isolate the field wiring (which is exposed to voltage transients, EMI, inductive spikes and potentially hazardous voltages) from the internal 3.3 V or 5 V logic circuits. The optocoupler absorbs transient energy on the field side without passing it to the logic side. It also allows the input card to accept 24 VDC, 110 VDC or 240 VAC field signals without those voltages reaching the processor board.

What we learn today

  • An optocoupler transfers a signal across an isolation barrier using light: input current drives an LED that emits infrared photons, photons cross a transparent dielectric gap, a photodetector on the output side converts them back into current. No electrical conduction path exists between input and output, providing galvanic isolation.
  • CTR (Current Transfer Ratio) = (I_C / I_F) x 100% is the key parameter. It tells you how much output current you get per unit of input LED current. Design to minimum CTR, not typical. CTR degrades with LED ageing and high temperature. Input resistor formula: R = (V_supply - V_F) / I_F.
  • The four output types trade CTR against speed: Darlington (highest CTR 500-7000%, slowest, below 10 kHz), standard phototransistor (CTR 50-300%, up to 100 kHz), high-speed types (up to 10 Mbps), photodiode (CTR below 1%, fastest at 10 MHz+). Select based on required data rate and available drive current.

Leave a Reply

Your email address will not be published. Required fields are marked *