Robot Pi Shop

PC817 Optocoupler Transistor

$0.30

Shipping calculated at checkout.

Quantity

The PC817 Optocoupler IC is a compact, 4-pin optical isolation component designed to transfer electrical signals between two circuits while maintaining galvanic isolation.

It consists of an infrared light-emitting diode (LED) and a phototransistor housed inside a single package. When current flows through the internal LED, it emits infrared light that activates the phototransistor on the output side, allowing a signal to pass without a direct electrical connection.

The PC817 is widely used in microcontroller interfaces, industrial control circuits, switching power supplies, signal isolation, and electronic protection applications.

Key Features

  • Optical Signal Isolation: Transfers signals without direct electrical contact between input and output.
  • Integrated Infrared LED and Phototransistor: Provides reliable optical signal coupling.
  • 4-Pin Package: Compact design suitable for PCB installation.
  • High Isolation Voltage: Typically rated for 5,000Vrms input-to-output isolation, subject to manufacturer specifications.
  • Noise Immunity: Helps reduce interference caused by ground potential differences.
  • Low Input Power: Operates using a current-driven infrared LED.
  • Transistor Output: Suitable for digital signal interfacing and switching applications.
  • Microcontroller Compatible: Can interface with Arduino, ESP32, Raspberry Pi, and other controllers using appropriate external circuitry.
  • Versatile Applications: Suitable for power supplies, automation, signal isolation, and electronic control systems.

Technical Specifications

Parameter Specification
Product Model PC817
Component Type Phototransistor Optocoupler
Input Type Infrared LED
Output Type NPN Phototransistor
Number of Channels 1
Number of Pins 4
Package DIP-4, Through-Hole
Forward Voltage (Typical) 1.2V
Maximum Forward Current 50mA
Maximum Reverse LED Voltage 6V
Collector-Emitter Voltage (Max) 80V
Collector Current (Max) 50mA
Isolation Voltage 5,000Vrms (Typical PC817 Rating)
Current Transfer Ratio (CTR) 50%–600% (Depends on Grade)
Operating Temperature Typically -30°C to +100°C
Mounting Type Through-Hole

Specifications are representative of common PC817 devices. Exact limits and CTR grade should be confirmed against the manufacturer datasheet.

Pin Configuration

The PC817 features four pins divided into an input LED circuit and an output phototransistor circuit.

Pin Name Description
1 Anode (A) Positive terminal of the internal infrared LED
2 Cathode (K) Negative terminal of the internal infrared LED
3 Emitter (E) Phototransistor emitter
4 Collector (C) Phototransistor collector

Working Principle

  1. An electrical signal drives current through the internal infrared LED.
  2. The LED emits infrared light inside the optocoupler.
  3. The phototransistor detects the light and begins conducting.
  4. The output circuit responds to the transistor switching state.
  5. The input and output remain electrically isolated.

This makes the PC817 useful for transferring digital control signals between circuits with different ground references.

Arduino Connection Example

The PC817 can be used to isolate a digital signal from an Arduino input.

Input Side:

  • Pin 1 (Anode): Connect to the external signal through a suitable current-limiting resistor.
  • Pin 2 (Cathode): Connect to the external signal ground.

Output Side:

  • Pin 4 (Collector): Connect to Arduino digital input D2 with a pull-up resistor to 5V.
  • Pin 3 (Emitter): Connect to Arduino GND.

When the internal LED is activated, the phototransistor conducts and typically pulls the Arduino input LOW.

Important: Select the input resistor according to the input voltage and required LED current.

Applications

  • Arduino and ESP32 Signal Isolation
  • Raspberry Pi GPIO Interfacing
  • Industrial Automation
  • PLC Input and Output Isolation
  • Switching Power Supplies
  • Feedback Circuits
  • Digital Signal Isolation
  • Ground Loop Reduction
  • Motor Control Systems
  • Electronic Protection Circuits
  • Relay Driver Interfaces
  • Embedded Electronics Projects

Important Notes

  • The PC817 is an optocoupler IC, not a relay.
  • The input LED requires a suitable current-limiting resistor.
  • The output phototransistor requires appropriate external biasing or pull-up circuitry.
  • The output is not intended to directly drive high-current loads.
  • The input and output grounds should remain separate when galvanic isolation is required.
  • The PC817 is primarily suitable for low-speed switching and signal isolation applications.
  • The device is not a direct replacement for a high-speed digital isolator.

Package Includes

  • 1 × PC817 4-Pin Optocoupler IC