

The PC817 is a 4-channel optocoupler designed to provide electrical isolation between its input and output. Each channel consists of an infrared LED and a phototransistor, enabling signal transmission without direct electrical connection. This isolation is crucial for protecting sensitive components, such as microcontrollers, from high-voltage circuits or noisy environments.








The PC817 4-channel optocoupler has the following key technical details:
| Parameter | Value |
|---|---|
| Channels | 4 |
| Input Type | Infrared LED |
| Output Type | Phototransistor |
| Isolation Voltage | 5,000 Vrms (minimum) |
| Forward Voltage (LED) | 1.2V (typical), 1.4V (maximum) |
| Forward Current (LED) | 20mA (maximum) |
| Collector-Emitter Voltage | 35V (maximum) |
| Current Transfer Ratio (CTR) | 50% to 600% (depending on model) |
| Operating Temperature Range | -30°C to +100°C |
| Package Type | DIP-16 |
The PC817 4-channel optocoupler is housed in a 16-pin DIP package. The pin configuration is as follows:
| Pin Number | Name | Description |
|---|---|---|
| 1, 3, 5, 7 | Anode (Input) | Positive terminal of the LED for each channel. |
| 2, 4, 6, 8 | Cathode (Input) | Negative terminal of the LED for each channel. |
| 9, 11, 13, 15 | Emitter (Output) | Emitter terminal of the phototransistor for each channel. |
| 10, 12, 14, 16 | Collector (Output) | Collector terminal of the phototransistor for each channel. |
Connect the Input Side (LED):
Connect the Output Side (Phototransistor):
Verify Isolation:
Below is an example of how to use the PC817 to interface a 5V Arduino UNO with a 12V relay:
// Example code to control a relay using the PC817 optocoupler
const int optoPin = 2; // Arduino pin connected to the PC817 input
void setup() {
pinMode(optoPin, OUTPUT); // Set the optoPin as an output
}
void loop() {
digitalWrite(optoPin, HIGH); // Turn on the optocoupler (relay ON)
delay(1000); // Wait for 1 second
digitalWrite(optoPin, LOW); // Turn off the optocoupler (relay OFF)
delay(1000); // Wait for 1 second
}
LED Not Lighting Up:
No Output Signal:
Signal Distortion or Noise:
Component Overheating:
Q: Can the PC817 be used for AC signal isolation?
A: Yes, the PC817 can isolate AC signals, but you must use a rectifier circuit to convert the AC signal to DC for the LED input.
Q: What is the maximum switching speed of the PC817?
A: The PC817 has a typical switching time of 3-4µs, making it suitable for low- to medium-speed applications.
Q: Can I use the PC817 with a 3.3V microcontroller?
A: Yes, the PC817 can operate with a 3.3V input, but ensure the forward current of the LED is sufficient by selecting an appropriate resistor value.