Welcome to Hong Kong Bitfoic Electronics Co., Ltd
Home > Components >PC817 Optocoupler IC: Pinout,Circuits,Datasheet,Features and Applications

PC817 Optocoupler IC: Pinout,Circuits,Datasheet,Features and Applications

8/24/2023

Introduction

 

A type of semiconductor device known as an optocoupler, also known as an optoisolator, photo-coupler, or optical isolator, enables the transmission of electrical signals between two separated circuits by light. A photosensitive device and an LED are two parts of this component. Optoisolator integrated circuits (ICs) come in a variety of forms, including the PC817 IC, MOC3021 IC, MOC363 IC, MCT2E IC, and PC817 optocoupler.

The PC817 optocouplers are small and available in a variety of packages. It can be directly connected to any low-voltage DC device or microcontroller. The input voltage will have the same effect from each side of the optocoupler, it will just transfer the signal to the receiver, which will then have a logic signal as output. Optocouplers are versatile due to their small and compact size and their ability to be used for control operations.

 

 

Catalog

 

Ⅰ  What is pc817?

The PC817 consists of an infrared emitting diode (IR LED) and a phototransistor optically coupled to it. An infrared emitting diode and a phototransistor are optically coupled together. Electrical signals are transmitted optically between the input side and the output side without any physical connection between the two parties.

This circuit works as long as the input signal contains some data, but when we need to transmit a signal from one element of the circuit to another, although the signal contains noise, we have to utilize a mix of IR Tx and Rx.

 

Figure1-pc817

 

In the circuit of the PC817 optocoupler, the IR takes the noise signal from one part and transmits it to the other part with the IR signal so that it performs according to the design of the circuit. The PC817 IC consists of an LED and a phototransistor optically connected. Signals can be optically transmitted between the i/p and o/p sides without any physical connection.

For any microcontroller or any DC device with a small voltage, a direct connection is possible. From every facet of the IC, the input voltage will have a similar effect; it will simply transmit the signal to the receiver. After that, the receiver will provide the logic signal as an output. This IC has many uses due to its tiny size and control operation.

 

 

Ⅱ PC817 Pinout

 

The diagram represents the pin configuration diagram and explains the functionality of each pin. In this pinout diagram of PC817, pin1, and pin2 are parts of the input side, and pin3 – pin4 are output pins.

The following pin configuration diagram explains the function of each pin of PC817.

 

Figure2-PC817  Pinout

 

IR LED Input:

  • Pin 1: Anode (+) pin, inputs logic signal to internal IR.
  • Pin 2: Cathode (-) pin, connected to circuit and power supply common ground.

Phototransistor output:

  • Pin 3: Emitter pin, establishes a common ground through the circuit and power supply.
  • Pin 4: Collector pin, transmits logic output when receiving IR signal

 

 

PC817 Pin Configuration

 

Pin Number

Pin Name

Description

1

Anode

Anode pin of the IR LED. Connected to logic input

2

Cathode

Cathode pin of the IR LED. Connected to ground

3

Emitter

Emitter pin of transistor. Connected to Ground

4

Collector

Collector pin of the Transistor. Provides logical output

 

 

 

Ⅲ  How Optocoupler Pc817 Works?

 

The working principle of PC817 is simple, but there are specifications to use it on different devices. The optocoupler at the input needs to be current-limited with a resistor, but at the output, we need to connect the logic output pin with the power supply pin. Whenever an IR signal is generated, the logic state will change from 1 to 0 due to the change in current.

 

Figure3-PC817 circuit

Figure3-PC817 circuit

 

 

Here connect the anode pin of the IR LED (pin 1) to a logic input which must be isolated and the cathode of the IR (pin 2) to ground, then use a resistor to pull the collector pin of the transistor high (here I Used 1K) and connected the collector pin to the output of the desired logic circuit and the emitter (pin 4) to ground.

Note: The ground of the IR LED (pin 2) and the ground of the transistor (pin 4) are not connected. This is where isolation happens.

 

 

Figure4-PC817 work circuit

Figure4-PC817 work circuit

 

 

Now, when the logic input is low, the IR LED will not conduct, so the transistor will also be off, so the logic output will remain high. This high voltage can be set anywhere up to 30V (collector-emitter voltage), I used +5V. There is a pull-up resistor 1K acting as a load resistor.

But when the logic input goes high, this high voltage should be at least 1.25V (diode forward voltage), The IR LED turns on, so the phototransistor also turns on, which will short the collector and emitter, so the logic output voltage will become to zero. This way, the logic input will be reflected on the logic output and still provide isolation between the two.

Another important parameter to consider when using an optocoupler is rise time ( tr ) and fall time (t f ). Once the input logic goes low, the output will not go high, and vice versa. The waveform below shows the time it takes for the output to transition from one state to another. For PC817, the rise time (TPD HL ) and fall time (TPD LH ) are 18us.

 

1. Response time test circuit

 

Figure5-Response time test circuit

Figure5-Response time test circuit

 

 

2. Frequency response test circuit

 

 Figure6-Frequency response test circuit

 

Figure6-Frequency response test circuit

 

 

 

 

 PC817 optocoupler parameters

 

  • High VCEO (Collector-Emitter Voltage): 80V MAX
  • Input diode forward voltage: 1.25V
  • Maximum collector current: 50 mA

80V maximum collector-to-emitter voltage ratio

  • 4-pin DIP package and SMT package
  • Internal protection of input and output
  • CTR (Current Transfer Rate) available for multiple grades

Fall time: 18 μs

Rise time: 18 μs

  • Cut-off frequency: 80 kHz
  • Maximum power consumption: 200 mW
  • High isolation voltage between input and output: 5.0kV
  • The maximum operating temperature range is -30 to 100 degrees.
  • The internal resistance is 100 Ω.
  • The IC's internal storage temperature range is -55 to 125 degrees.
  • When soldering, the temperature range of the optocoupler is 260 degrees.

 

Figure7-PC817 optocoupler parameters

 

Figure7-PC817 optocoupler parameters

 

 

 

PC817 Optocoupler Features

 

  • It is available in 4-pins in both DIP and SMT packages.
  • The device has an internal form of protection that is electrically isolated. Protection is for input and output. It can protect up to 5KV galvanic isolation.
  • Optocouplers can be used with external resistors with high-voltage devices to work with low-voltage devices.
  • Optocouplers can be used with any device that has an internal interface, such as TTL devices, microcontrollers, and even high DC voltages with some internal resistance.
  • Optocoupler PC817 has internal reverse current protection.
  • Due to the unidirectional current characteristics of the IR, the PC817 protects the IR from any reverse current.

 

 

 

 

 

Ⅵ PC817 Equivalent Replacement Model

 

1、PC817 Alternative Models:

4N25、6N136、MOC3021、MOC3041、6N137

 

2、 PC817 equivalent:

PC817A、PC817C、PC817B and PC817D

 

 How to Test the Quality of PC817 Optocoupler?

 

 1. Use a diode to detect

First, take the optocoupler, use a multimeter to measure the input end with the diode file, and replace the red and black test leads. If there is a voltage drop in the forward direction, it will be cut off in the reverse direction, indicating that the front-end LED is normal.

Connect a low voltage 6V to the input terminal (take 4N35 as an example, the specific input voltage is subject to the datasheet), connect a protective resistor in series, adjust the resistance range with a multimeter, and measure the resistance value of the other output terminal.

Disconnect the front-stage power supply with infinite power (generally megohm level), and turn on the front-stage power supply with a sharp drop in resistance value, indicating that the optocoupler works well, otherwise, it does not.

 

2、 Making a PC817 Optocoupler Tester Circuit

 

1)Test the PC817 circuit with the circuit

This circuit is primarily intended to perform a functional test of any 4-pin optocoupler IC. For functional testing, place the IC in a female header such that the emitter of the IC's phototransistor and the IR LED anode pin are connected to the circuit's GND, while the IR LED cathode and phototransistor collector pins of the IC are connected to 4V VCC.

 Figure8-PC817 optocoupler test circuit

 

 Figure8-PC817 optocoupler test circuit

 

 

 

Components Required

 

  1. Optocoupler IC: PC8171
  2. Lead: 5mm, 3.5V1
  3. 1 button
  4. 1 Resistor: 1k
  5. 4 female
  6. 1 Soldering iron: 45W - 65W
  7. 1 flux for soldering wire
  8. 1 panel
  9. 1 DC battery: 9V
  10. 1 battery clip
  11. Jumper: Depends on the situation

 

 

3)steps

(1) Solder two pairs of 2 female headers on the panel.

(2) Place a 1K resistor in series between the two female header pairs.

Solder the button and the female head in series.

(4) Solder the +ve terminal of the LED to the output female and the -ve terminal to the ground of the circuit.

(5) Connect the 4V DC battery to the circuit.

(6) Place the optocoupler IC in the female header, power it on, and test the circuit.

 

 Figure: Optocoupler quality detection

 Figure: Optocoupler quality detection

 

Now, connect the circuit to the power supply, if the LED connected to the emitter lights up when the button is pressed, then the optocoupler IC is working fine. If the LED is off, the IC needs to be replaced.

 

 

  PC817 optocoupler application circuit

 

  • I/O isolation for controllers
  • For general electrical isolation purposes
  • Fundamental noise coupling circuits in switching circuits
  • IoT devices
  • Signal transmission
  • Isolation of digital and analog circuits
  • AC/DC power control

 

 2D-Model and Dimensions

Figure10-2D-Model and Dimensions

Figure10-2D-Model and Dimensions

 

 

Ⅹ PC817 PDF

PC817 Datasheet

 

 

This entire post is a summary of the datasheet for a PC817 optocoupler or optoisolator. Because of the expanding IoT industry, this IC provides several advantages. As a result, it is frequently used in daily life to manage various equipment. This IC aids in the design of electronic circuits where voltage spikes or surges could potentially harm the circuit's components.

As a result, this IC aids in circuit isolation. Additionally, it is employed to separate AC and high-voltage circuits from DC and low-voltage circuits, as well as to remove noise from the signal. A modest analog or digital signal can be utilized to control AC voltage or high voltage with this IC.

 

 

Frequently Asked Questions
1. What is the difference between PC817 and 6N137?
2. What is the difference between PC817 and 6N137? 
3. What is the recommended current for the PC817?
4. What is the maximum voltage of PC817?
5. What is a high-speed optocoupler?
logo
Bitfoic is a professional electronic components distributor founded in 2013. Adhering to our business philosophy of customer first and people-oriented, we have won the favor of our customers and established an excellent reputation in international Partner.
Related Articles
  • How to resolve the WiFi and ADC2 Sharing Dilemma?
    How to resolve the WiFi and ADC2 Sharing Dilemma?
    4/19/2024 34

    ESP32-CAM can be used in various Internet of Things situations and is suitable for home smart devices, industrial wireless control, wireless Monitoring, QR wireless identification, wireless positioning system signals, and other IoT applications are ideal solutions for IoT applications.

    Read More >
  • ESP32-CAM Pinout Explanation and How to Use?
    ESP32-CAM Pinout Explanation and How to Use?
    4/18/2024 108

    ESP32-CAM is a development board with an ESP32-S chip, an OV2640 camera, a microSD card slot, and several GPIOs for connecting peripherals. ESP32-CAM is a small-sized camera module. The module can work independently as the smallest system, with a size of only 27*40.5*4.5mm.

    Read More >
  • Stand-Alone Linear Li-Ion / Li-Polymer Charge Management Controller MCP73833
    Stand-Alone Linear Li-Ion / Li-Polymer Charge Management Controller MCP73833
    4/9/2024 65

    The MCP73833/4 is a highly advanced linear charge management controller for use in space-limited, cost sensitive applications. Both a 10-lead, MSOP and a 10-lead, DFN packaging measuring 3 mm by 3 mm are offered for the MCP73833/4. In addition to its tiny size, the MCP73833/4 is perfect for portable applications because it requires a few additional components.

    Read More >
  • Optocoupler IC 4N35: Pinout, Datasheet, Features and Applications
    Optocoupler IC 4N35: Pinout, Datasheet, Features and Applications
    3/26/2024 118

    In the realm of electronics, where connectivity and isolation are paramount, the 4N35 optocoupler IC stands as a beacon of reliability and versatility. This small yet mighty device plays a crucial role in ensuring signal integrity and safety across a wide range of applications. In this article, we delve into the intricacies of the 4N35 optocoupler IC, exploring its datasheet, pinout, circuit diagram, and diverse uses.

    Read More >
  • UA741CP datasheet ,Specification, Features and Application
    UA741CP datasheet ,Specification, Features and Application
    3/21/2024 119

    The UA741CP is a general-purpose operational amplifier in an 8-pin DIP package. The high common-mode input voltage range and lack of latch-up make the amplifier ideal for voltage follower applications.

    Read More >
SHARP/Socle Technology
In Stock: N/A
Popular parts number
  • HCPL-6750
    HCPL-6750

    Broadcom Limited

    OPTOISO 1.5KV 4CH DARL 16FLATPAK

  • MCT5210M
    MCT5210M

    onsemi

    OPTOISO 4.17KV TRANS W/BASE 6DIP

  • CPC1301G
    CPC1301G

    IXYS Integrated Circuits Division

    OPTOISOLTR 5KV DARLINGTON 4DIP

  • CPC1302GS
    CPC1302GS

    IXYS Integrated Circuits Division

    OPTOISOLTR 3.75KV 2CH DARL 8SMD

  • EL3H7(A)-G
    EL3H7(A)-G

    Everlight Electronics Co Ltd

    OPTOISOLATOR 3.75KV TRANS 4-SSOP

  • IL300-DEFG-X001
    IL300-DEFG-X001

    Vishay Semiconductor Opto Division

    OPTOISO 5.3KV PHVOLT 8DIP

  • SFH617A-2X
    SFH617A-2X

    Isocom Components 2004 LTD

    OPTOISOLATOR 5.3KV TRANS 4DIP

  • IL300-F-X009
    IL300-F-X009

    Vishay Semiconductor Opto Division

    OPTOISO 5.3KV PHVOLT 8SMD

  • PS8101-AX
    PS8101-AX

    CEL

    OPTOISOLATOR 3.75KV TRANS 6SO

  • ISP817BX
    ISP817BX

    Isocom Components 2004 LTD

    OPTOISO 5.3KV TRANS 4DIP