PC817 optocoupler (LED + phototransistor)
Optocoupler: an infrared LED (A, K) switches a phototransistor (C, E) across an isolation gap of 5 kV, for signals between circuits without a common ground (mains side, motor supply, a second device). The transistor carries CTR × the LED current: 50–600 % for the unranked part, so design for the minimum (e.g. 5 mA into the LED, a 10 kΩ pull-up at the collector switches fully). LED: 1.2 V, at most 50 mA, a series resistor as for any LED. Transistor up to 80 V and 50 mA; switching times a few µs (up to some 10 kHz). DIP-4, SMD (gull-wing) or the SOP-4 equivalent EL357N.
Key data
- Category
- Semiconductors
- Simulation model
- SPICE subcircuit
- Manufacturer part number
- PC817XNNSZ1B
- Reference prefix
- U
- Pins
- 4
- Land pattern
- DIP-4_W7.62mm
Simulation model
The part is a small SPICE netlist (below), solved by the analog engine together with the rest of the circuit. Pin ids are the node names, {braces} are parameters.
SPICE netlist
D1 A m DPC817
F1 C b m K {CTR/500}
Q1 C b E QPC817
RBE b E 2Meg.model DPC817 D(IS=1.3e-14 N=1.6 RS=2 BV=6 IBV=10u)
.model QPC817 NPN(IS=1e-14 BF=500 BR=1 VAF=100 CJE=20p CJC=8p)Pins 4
| Pin | Name | Use |
|---|---|---|
| A | APassive pin | LED anode: from the driving signal through a series resistor (about 5 mA) |
| K | KPassive pin | LED cathode: to the ground of the driving side |
| C | CPassive pin | Phototransistor collector: pull-up to the supply of the isolated side |
| E | EPassive pin | Phototransistor emitter: to the ground of the isolated side |
Parameters 2
packageDIP-4 through-hole PC817; SMD-4 = the same part with gull-wing leads; SOP-4 = the smaller Everlight EL357N with the same pins
CTRIC / IF at 5 mA: 0.5–6 unranked; ranks A 0.8–1.6, B 1.3–2.6, C 2–4, D 3–6
PCB
DIP-4_W7.62mm| Package | Land pattern | Status | Source |
|---|---|---|---|
| DIP-4 · PC817XNNSZ1B | DIP-4_W7.62mm | Verified land pattern | KiCad Package_DIP:DIP-4_W7.62mm (symbol Isolator:PC817); Sharp PC817 pinout 1 anode, 2 cathode, 3 emitter, 4 collector |
| SMD-4 · PC817XNNIP1B | SMDIP-4_W9.53mm | Verified land pattern | KiCad Package_DIP:SMDIP-4_W9.53mm (gull-wing DIP-4, as Isolator:LTV-817S); Sharp PC817XNNIP1B pinout as DIP-4 |
| SOP-4 · EL357N(TA)-G | SO-4_4.4x3.6mm_P2.54mm | Verified land pattern | KiCad Package_SO:SO-4_4.4x3.6mm_P2.54mm (as Isolator:LTV-357T); Everlight EL357N pinout 1 anode, 2 cathode, 3 emitter, 4 collector |