Overview
The PC817 (PC817X / LTV-817) is a universally deployed 4-pin photocoupler (optocoupler) IC manufactured by Sharp Microelectronics, Lite-On, and Everlight. It consists of an GaAs infrared emitting diode optically coupled to an NPN silicon phototransistor inside a compact 4-pin package.
Providing up to of galvanic isolation, the PC817 breaks ground loops and isolates sensitive microcontroller digital logic pins from high-voltage AC/DC noise, noisy motor drivers, relays, and switch-mode power supply (SMPS) feedback circuits.
Quick reference
| Component Type | 4-Pin Photocoupler / Optocoupler |
| Isolation Voltage () | (1 minute) |
| Collector-Emitter Voltage () | max |
| Input LED Forward Current () | max ( recommended) |
| Collector Current () | max |
| Current Transfer Ratio (CTR) | 50% to 600% (Rank A: 80–160%, B: 130–260%, C: 200–400%, D: 300–600%) |
| Response Time | rise time / fall time |
| Package | 4-pin DIP / 4-pin SMD |
Pinout (DIP-4 Package)
Looking at the top of the 4-pin package with dot indicator at Pin 1:
text
┌───┴───┐
(A) 1 │ 1 4 │ 4 (C)
ANODE │ PC817 │ COLLECTOR
(K) 2 │ 2 3 │ 3 (E)
CATHODE └───────┘ EMITTER
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | ANODE (A) | Input | IR LED Anode (+) |
| 2 | CATHODE (K) | Input | IR LED Cathode (-) |
| 3 | EMITTER (E) | Output | Phototransistor Emitter (Output ground reference) |
| 4 | COLLECTOR (C) | Output | Phototransistor Collector (Output signal line) |
Specifications
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| LED Forward Voltage | 1.0 | 1.2 | 1.4 | V | ||
| LED Reverse Voltage | — | — | 6.0 | V | ||
| Collector-Emitter Breakdown | 80 | — | — | V | ||
| Collector Dark Current | — | — | 100 | nA | ||
| Collector Saturation Volts | — | 0.1 | 0.2 | V |
Typical Applications
Isolated Microcontroller Input Signal Buffer
Reading a or industrial sensor or push-button into a / MCU GPIO pin:
text
+24V Sensor Line ───[ R1 = 2.2kΩ ]───► [Pin 1: ANODE]
PC817
Sensor Ground ──────────────────────► [Pin 2: CATHODE]
+3.3V MCU Power Rail ───[ R2 = 10kΩ Pullup ]───┬─── [Pin 4: COLLECTOR]
│
├─── MCU GPIO Pin (Active LOW)
│
MCU Ground ────────────────────────────────────┴─── [Pin 3: EMITTER]
Common mistakes
- Forgetting input series current-limiting resistor: Connecting a or control line directly across Pins 1 and 2 without a series resistor burns out the internal IR LED (). Always size .
- Assuming 100% CTR across all operating temperatures: The Current Transfer Ratio () degrades over time and at high temperatures. Design pull-up resistors assuming lower bounds.
Notes
- PC817 vs 6N137: PC817 is a phototransistor optocoupler for DC and low-speed switching (); 6N137 is a high-speed logic gate optocoupler () for high-frequency SPI or fast UART isolation.
Assets & downloads
- datasheetdatasheet
- product-pagereference