

The PC-817 is an optoisolator (or optocoupler) that integrates a light-emitting diode (LED) and a phototransistor within a single compact package. It is designed to transfer electrical signals between two isolated circuits while maintaining electrical isolation. This isolation protects sensitive components from high voltages, surges, and noise, making the PC-817 a critical component in many electronic designs.








| Parameter | Value |
|---|---|
| Input Forward Voltage (VF) | 1.2V (typical), 1.4V (maximum) |
| Input Forward Current (IF) | 20mA (typical), 50mA (maximum) |
| Output Collector-Emitter Voltage (VCEO) | 35V (maximum) |
| Output Collector Current (IC) | 50mA (maximum) |
| Isolation Voltage | 5000Vrms |
| Current Transfer Ratio (CTR) | 50% to 600% (depending on model) |
| Operating Temperature Range | -30°C to +100°C |
| Package Type | 4-pin DIP |
The PC-817 has a 4-pin configuration, as shown below:
| Pin Number | Name | Description |
|---|---|---|
| 1 | Anode (A) | Positive terminal of the internal LED |
| 2 | Cathode (K) | Negative terminal of the internal LED |
| 3 | Emitter (E) | Emitter terminal of the phototransistor |
| 4 | Collector (C) | Collector terminal of the phototransistor |
Pinout Diagram:
_______
| |
| 1 4 | Collector (C)
| 2 3 | Emitter (E)
|_______|
Anode Cathode
Input Side (LED):
Output Side (Phototransistor):
Below is an example of how to use the PC-817 to isolate an Arduino UNO from a high-voltage circuit.
// PC-817 Example: Controlling an LED with Arduino and PC-817
const int inputPin = 2; // Arduino pin connected to PC-817 anode
const int ledPin = 13; // Arduino onboard LED pin
void setup() {
pinMode(inputPin, OUTPUT); // Set inputPin as output to drive PC-817
pinMode(ledPin, OUTPUT); // Set onboard LED pin as output
}
void loop() {
digitalWrite(inputPin, HIGH); // Turn on PC-817 LED
delay(1000); // Wait for 1 second
digitalWrite(inputPin, LOW); // Turn off PC-817 LED
delay(1000); // Wait for 1 second
}
No Output Signal:
Output Signal is Weak or Unstable:
Excessive Heat:
Isolation Failure:
Q1: Can the PC-817 handle AC signals?
Yes, the PC-817 can handle AC signals on the input side, but you must use a rectifier circuit to ensure proper operation.
Q2: What is the typical lifespan of the PC-817?
The PC-817 has a long operational lifespan when used within its specified ratings, typically exceeding 100,000 hours.
Q3: Can I use the PC-817 for PWM signals?
Yes, the PC-817 can transmit PWM signals, but ensure the frequency is within the response time limits of the optocoupler.
Q4: How do I calculate the pull-up resistor value?
The pull-up resistor value depends on the supply voltage and desired output current. A typical value is 10kΩ for 5V systems.
By following these guidelines, you can effectively use the PC-817 in your electronic projects while ensuring reliable and safe operation.