Opto-isolators – intro

An opto-isolator is a component that transfers electrical signals between two isolated circuits by using light. This allows transmission of electrical signals between systems of different voltages with complete electrical isolation up to the rated isolation voltage. A 5 V logic signal, for example, might switch a mains circuit using an opto-isolator without risk of the mains feeding into to the low-voltage logic. 1 kV isolation is common for mains powered circuits.

Opto-isolator
Figure 1. Opto-isolator schematic symbol showing the LED and photo-transistor elements.

The most common type of opto-isolator consists of an LED and a photo-transistor combined in an opaque package. In operation the photons from the illuminated LED that hit the base-collector junction in the transistor generate electrons and these are injected into the base, turning on the transistor.

Usually opto-isolators transfer digital (on-off) signals, but some techniques allow them to be used with analog signals.

Opto-isolator pinout.
Figure 2. DIL opto-isolator package and pinout.

Figure 2 shows a typical pinout for a 6-pin DIL single opto-isolator package. This one makes the transistor’s base available on pin 6 but this is not always the case – particularly on high-density packages.

A basic application

Opto-isolated high-side switch.
Figure 3. Switching a 12 V circuit with a 5 V control signal.

Figure 3 shows a simple application where a 5 V logic signal in one circuit is controlling a 12 V signal in another. When Q1 is switched on U1 LED will illuminate and the collector-emitter resistance will fall to a low value. The 12 V logic level will then switch from low to high.

Note the different ground symbols on the 5 V and 12 V circuits indicating isolated grounds.

Reading the datasheet

The information below is published in the Vishay 4N25 datasheet. As always, in most applications certain parameters become more significant than others. Careful reading of the datasheets and experience will be your guide.

Absolute maximum ratings

Table 1. Essential reading.

From the Absolute Maximum Ratings section we can see:

(1) The maximum reverse voltage the LED can take is 5 V.
(2) The maximum continuous forward current is 60 mA.
(3) Surprisingly, perhaps, the LED peak current is 3 A but note well that this is for ≤ 10 µs. There will be a recovery time associated with this.
(4) The transistor output is capable of 100 mA continuous.
(5) Watch the output transistor power dissipation: if the transistor is not turned hard-on there will be a voltage drop across it and the power dissipation may rise. e.g., If there is 3 V across the output transistor then the maximum output current will be given by \(I_{max} = \frac {P_{max}}{V_{ce}} = \frac {150m}{3} = 50 \, \mathrm mA\).

Isolation, creepage and clearance

Table 2. Isolation, creepage and clearance.

(1) 5,000 V isolation between the input and output.
(2) The creepage distance is 7 mm. This is the shortest distance along the surface of the package between any input and output pin.

Figure 4. Cross-section of an opto isolator. Creepage distance is measured along the outside of the package while clearance is the shortest distance through the air.

See Vishay’s Design Guidelines for Optocoupler Safety Agency Compliance for details on this.
(3) The clearance distance is the shortest distance through the air between the any input and output. Note that in most cases the PCB pad radius will reduce this distance significantly.
(4) The internal insulation thickness.

Input and output specifications

Table 3. Electrical characteristics.

(1) The forward voltage of the LED is only 1.3 V. From this we can infer that it is an infra-red type – see Figure 5 – but this is stated in the description on page 1.
(2) The maximum voltage we can switch with this device is 30 V.
(3) At 10 V there will be up to 50 nA leakage current between the collector and emitter when the LED is dark (unpowered).

Other parameters such as capacitance may be important at high frequencies.

LED forward voltage and current (IV) curves for IR, red, orange, green, yellow, blue, white and UV LEDs.
Figure 5. Typical IV curves for various colours of LEDs. From this we can see that only the IR LED could result in the 1.3 to 1.5 V forward voltage at 50 mA. The forward voltage of an LED is temperature dependent and will decrease with increasing temperature.

Current transfer ratio

Table 4. DC current transfer ratios.
Figure 6. Current transfer ration (CTR) as a function of LED current. Note datasheet has CTR curves for other temperatures also.

Table 4 and Figure 6 show us that for this device when the LED is run at 10 mA we can expect to get only 2 to 5 mA maximum out of the transistor. If more current is required then further amplification is required – e.g., the Darlington arrangement shown at the top of this page.

In most applications we design the circuit to drive the output transistor into saturation.

Switching characteristics

Table 5. The switching characteristics lead one to believe that a fixed delay of 2 µs is given.

While Table 5 gives the impression that a fixed time delay of 2 µs is given, Figures 7 and 8 show that the situation is more complex.

Figure 7. Propagation delay is different for high to low (PHL) and low to high (PLH). (Test configuration is a low side switch. See the datasheet Fig. 14.)

Figure 7 demonstrates that for a 4.7 kΩ load on a 5 V supply we could expect a 10 µs fall time (PHL) (photo-transistor turning on) but a 30 µs rise time (PLH) (photo-transistor turning off). This difference may be enough to cause problems in high frequency circuits or where accurate timing is required.

Figure 8. Timing diagram.

Other types of opto-isolator

Opto-isolators can be made using LED-photodiode, LED-LASCR, and lamp-photoresistor pairs.

Various opto-isolators.
Figure 9. Opto-isolator variants include (a) photo-diodes, (b) photo-resistors, (c) opto-triacs and (d) darlington opto-isolators.

Opto-couplers were used before LEDs were invented. Fender guitar amplifiers, for example, used an old-fashioned neon lamp and light-dependent resistor (LDR) combination in the tremelo circuit of some models.

Figure 9. A neon and LDR opto-coupler. Note the outline of the neon lamp visible in the heatshrink tubing.

Alternate terminology

See also: optocoupler, photocoupler, or optical isolator.

LED rated current

LEDs are specified to run in a certain current range and the datasheet gives the maximum rated current.

Extract from Cree 5mm round LED C503 datasheet.
Extract from Cree 5mm round LED C503 datasheet.

The extract from the Cree C503B datasheet gives us the following guidelines:

Cree C503B
Cree C503B.
  • Maximum continuous forward current is 50 mA (1). Take note that this is an absolute maximum rating and is quoted at 25°C. If running in a higher temperature environment the current will have to be reduced to prevent overheating. We should also read Note 1:

1. For long term performance the drive currents between 10mA and 30mA are recommended.

  • Peak forward current is quoted at 200 mA (2). To understand this we need to read Note 2:

2. Pulse width ≤0.1 msec, duty ≤1/10.

The C503B maximum duty cycle at maximum peak current.
The C503B maximum duty cycle at maximum peak current.

Some applications such as multiplexed displays the LEDs are blinked on and off fast enough that the eye can’t see. To keep the average light-levels high a very high current pulse is given. In the example above we can see that the pulsed current’s average value is 200 \( 200m \frac {100\mu}{100\mu + 900\mu} = 20 \mathrm mA\). It should end up comparable with the LED run at about 20 mA continuously.

Other applications for pulsed LEDs include strobes and camera flash units.

See Multiplexing – the basics for pulse application.