

The PC817C is an optocoupler that integrates a light-emitting diode (LED) and a phototransistor within a single package. This component is designed to provide electrical isolation between two sections of a circuit while enabling signal transmission. By using optical coupling, the PC817C ensures that high voltages or electrical noise in one part of the circuit do not affect the other, making it ideal for applications requiring isolation and protection.








| Parameter | Value |
|---|---|
| Input Forward Voltage | 1.2V (typical), 1.4V (maximum) |
| Input Forward Current | 20mA (typical), 50mA (maximum) |
| Output Collector-Emitter Voltage | 35V (maximum) |
| Output Collector Current | 50mA (maximum) |
| Isolation Voltage | 5000Vrms |
| Current Transfer Ratio (CTR) | 50% to 600% (depending on model) |
| Operating Temperature | -30°C to +100°C |
| Package Type | 4-pin DIP |
The PC817C comes in a 4-pin Dual Inline Package (DIP). The pinout is as follows:
| 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 of the internal phototransistor. |
| 4 | Collector (C) | Collector of the internal phototransistor. |
Input Side (LED):
Output Side (Phototransistor):
Below is an example of connecting the PC817C to an Arduino UNO for isolating a digital input signal:
// PC817C Optocoupler Example with Arduino UNO
// This code reads the output of the PC817C and toggles an LED accordingly.
const int optoInputPin = 2; // Pin connected to the PC817C output
const int ledPin = 13; // Built-in LED on Arduino UNO
void setup() {
pinMode(optoInputPin, INPUT); // Set optoInputPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
digitalWrite(ledPin, LOW); // Turn off LED initially
}
void loop() {
int optoState = digitalRead(optoInputPin); // Read the optocoupler output
if (optoState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on LED if optocoupler output is HIGH
} else {
digitalWrite(ledPin, LOW); // Turn off LED if optocoupler output is LOW
}
}
No Output Signal:
Output Signal is Weak or Unstable:
No Isolation Between Circuits:
Overheating:
Q: Can the PC817C handle AC signals?
A: Yes, the PC817C can handle AC signals on the input side, but you must use a rectifier circuit to ensure proper operation.
Q: What is the maximum switching speed of the PC817C?
A: The PC817C has a typical switching time of 2-4µs, making it suitable for low- to medium-speed applications.
Q: Can I use the PC817C for analog signal transmission?
A: The PC817C is primarily designed for digital signal isolation. While it can transmit analog signals, the linearity and accuracy may be limited.
Q: How do I choose the correct CTR value?
A: Select a PC817C variant with a CTR range that matches your circuit's input and output current requirements. For example, higher CTR values are better for low-current applications.