Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use PC-817: Examples, Pinouts, and Specs

Image of PC-817
Cirkit Designer LogoDesign with PC-817 in Cirkit Designer

Introduction

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.

Explore Projects Built with PC-817

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO-Based Real-Time Clock with I2C LCD Display and IO Expansion
Image of teste: A project utilizing PC-817 in a practical application
This circuit is an Arduino-based real-time clock and display system. It uses an Arduino UNO to interface with a DS1307 RTC module for timekeeping and a 20x4 I2C LCD to display the current time and date. Additionally, a PCF8574 IO Expansion Board is used to extend the I2C bus for additional I/O operations.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
Image of Copy of Oymotion: A project utilizing PC-817 in a practical application
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM
Image of design 3: A project utilizing PC-817 in a practical application
This circuit features a Beelink MINI S12 N95 computer connected to a 7-inch display via HDMI for video output and two USB connections for power and touch screen functionality. An Arduino UNO is interfaced with a fingerprint scanner for biometric input. The Beelink MINI S12 N95 is powered by a PC power supply, which in turn is connected to a 240V power source. Additionally, an ESP32 CAM module is powered and programmed via a USB plug and an FTDI programmer, respectively, for wireless camera capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Remote-Controlled Servo System with GPS and IMU Integration
Image of RC Plane: A project utilizing PC-817 in a practical application
This circuit integrates an ESP32 microcontroller with an AR610 receiver, an MPU-6050 accelerometer, a Neo 6M GPS module, and multiple servos. The ESP32 processes input signals from the AR610 receiver and MPU-6050, while controlling the servos and receiving GPS data for navigation or control purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with PC-817

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of teste: A project utilizing PC-817 in a practical application
Arduino UNO-Based Real-Time Clock with I2C LCD Display and IO Expansion
This circuit is an Arduino-based real-time clock and display system. It uses an Arduino UNO to interface with a DS1307 RTC module for timekeeping and a 20x4 I2C LCD to display the current time and date. Additionally, a PCF8574 IO Expansion Board is used to extend the I2C bus for additional I/O operations.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of Oymotion: A project utilizing PC-817 in a practical application
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of design 3: A project utilizing PC-817 in a practical application
Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM
This circuit features a Beelink MINI S12 N95 computer connected to a 7-inch display via HDMI for video output and two USB connections for power and touch screen functionality. An Arduino UNO is interfaced with a fingerprint scanner for biometric input. The Beelink MINI S12 N95 is powered by a PC power supply, which in turn is connected to a 240V power source. Additionally, an ESP32 CAM module is powered and programmed via a USB plug and an FTDI programmer, respectively, for wireless camera capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RC Plane: A project utilizing PC-817 in a practical application
ESP32-Based Remote-Controlled Servo System with GPS and IMU Integration
This circuit integrates an ESP32 microcontroller with an AR610 receiver, an MPU-6050 accelerometer, a Neo 6M GPS module, and multiple servos. The ESP32 processes input signals from the AR610 receiver and MPU-6050, while controlling the servos and receiving GPS data for navigation or control purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Microcontroller interfacing with high-voltage circuits
  • Signal isolation in industrial control systems
  • Noise suppression in communication systems
  • Power supply feedback circuits
  • Motor control and switching applications

Technical Specifications

Key Technical Details

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

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the PC-817 in a Circuit

  1. Input Side (LED):

    • Connect the anode (Pin 1) to the positive side of the input signal through a current-limiting resistor.
    • Connect the cathode (Pin 2) to the ground of the input circuit.
    • Calculate the resistor value using Ohm's Law:
      [ R = \frac{V_{in} - V_F}{I_F} ]
      where (V_{in}) is the input voltage, (V_F) is the forward voltage (1.2V typical), and (I_F) is the desired forward current (e.g., 10mA).
  2. Output Side (Phototransistor):

    • Connect the collector (Pin 4) to the positive voltage supply through a pull-up resistor.
    • Connect the emitter (Pin 3) to the ground of the output circuit.
    • The phototransistor will conduct when the LED is forward-biased, allowing the output signal to change state.

Important Considerations and Best Practices

  • Current Transfer Ratio (CTR): Ensure the CTR of the PC-817 matches your circuit requirements. CTR varies with input current and temperature.
  • Isolation Voltage: Do not exceed the rated isolation voltage (5000Vrms) to maintain safe operation.
  • Resistor Selection: Use appropriate resistors to limit current on both the input and output sides.
  • Temperature Range: Operate the PC-817 within its specified temperature range (-30°C to +100°C) to avoid performance degradation.

Example: Connecting PC-817 to an Arduino UNO

Below is an example of how to use the PC-817 to isolate an Arduino UNO from a high-voltage circuit.

Circuit Diagram

  • Input Side: Connect the anode (Pin 1) to an Arduino digital pin (e.g., D2) through a 220Ω resistor. Connect the cathode (Pin 2) to the Arduino ground.
  • Output Side: Connect the collector (Pin 4) to a 5V supply through a 10kΩ pull-up resistor. Connect the emitter (Pin 3) to the ground of the high-voltage circuit.

Arduino Code Example

// 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
}

Notes:

  • The onboard LED (Pin 13) is used to indicate the state of the PC-817.
  • Ensure the pull-up resistor on the output side is correctly sized for your circuit.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Signal:

    • Cause: Insufficient input current to the LED.
    • Solution: Check the input resistor value and ensure the LED receives the required forward current (e.g., 10mA).
  2. Output Signal is Weak or Unstable:

    • Cause: Incorrect pull-up resistor value or insufficient supply voltage.
    • Solution: Use a pull-up resistor in the range of 4.7kΩ to 10kΩ and ensure the supply voltage matches the phototransistor's requirements.
  3. Excessive Heat:

    • Cause: Exceeding the maximum input current or output current ratings.
    • Solution: Verify that the input and output currents are within the specified limits.
  4. Isolation Failure:

    • Cause: Exceeding the isolation voltage rating.
    • Solution: Ensure the voltage difference between input and output does not exceed 5000Vrms.

FAQs

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.