Electronic Component Technical Guide
PC817B – Phototransistor Output Optocoupler
The PC817B is a single-channel phototransistor output optocoupler designed for electrical isolation and signal transmission between different circuit potentials. It integrates a gallium arsenide infrared emitting diode and an NPN phototransistor in a compact 4-pin DIP package. With a CTR range of 130% to 260%, 5kVrms isolation voltage and low input current requirements, it is widely used in switching power supplies, industrial control circuits and electronic measurement equipment.
01. Product Introduction
The PC817B is a single-channel phototransistor output optocoupler designed to provide electrical isolation between input and output circuits. It consists of a gallium arsenide (GaAs) infrared light-emitting diode and an NPN phototransistor optically coupled inside an insulated package.
When current flows through the input LED, infrared light is generated and detected by the output phototransistor. This optical transmission mechanism transfers signals between two electrically isolated circuits without requiring a direct electrical connection.
The PC817B belongs to the PC817 optocoupler family. Its B-grade classification indicates a current transfer ratio (CTR) range of 130% to 260% under specified test conditions of IF = 5mA and VCE = 5V.
The device features a typical forward voltage of approximately 1.2V, a maximum collector current of 50mA and a collector-emitter voltage rating of 35V. Its isolation voltage is rated at 5,000Vrms under the specified test conditions.
The PC817B is commonly used in switching power supplies, industrial control equipment, measurement instruments, household appliances and signal transmission circuits.
Its compact four-pin DIP package supports through-hole PCB assembly and makes it suitable for designs requiring reliable input-to-output electrical isolation.
Product Overview:
- Part Number: PC817B
- Manufacturer Reference: GOODWORK
- Device Type: Phototransistor Output Optocoupler
- Number of Channels: 1
- Input Type: Infrared LED
- Output Type: NPN Phototransistor
- Current Transfer Ratio: 130% to 260%
- Forward Voltage: 1.2V Typical
- Maximum Forward Current: 50mA
- Maximum Collector Current: 50mA
- Collector-Emitter Voltage: 35V
- Isolation Voltage: 5,000Vrms
- Package: DIP-4
- Mounting Type: Through-Hole
02. Key Benefits
High Electrical Isolation
The PC817B provides an isolation voltage rating of 5,000Vrms under specified test conditions. This helps separate low-voltage control circuits from higher-voltage or electrically noisy sections of an electronic system.
Stable Current Transfer Ratio
The B-grade CTR classification provides a specified range of 130% to 260% at IF = 5mA and VCE = 5V. This allows designers to evaluate the required input LED current and output transistor response more accurately.
Simple Signal Transmission
The integrated infrared LED and phototransistor provide a straightforward method of transferring digital or switching signals between isolated circuit sections.
Compact DIP-4 Package
The four-pin through-hole package simplifies PCB assembly and supports traditional electronic circuit layouts.
Low Input Voltage Requirement
With a typical LED forward voltage of approximately 1.2V, the PC817B can be driven by suitable low-voltage control circuits through an appropriately selected current-limiting resistor.
Wide Application Compatibility
The PC817 family is widely used in switching power supplies, measurement instruments, industrial control equipment and household electronics.
Reduced Electrical Interference
Optical signal transfer eliminates a direct conductive signal path between the input and output sides, helping reduce unwanted ground-loop and common-mode interference when correctly implemented.
03. Features
- Single-channel phototransistor output optocoupler.
- GaAs infrared light-emitting diode input.
- Integrated NPN phototransistor output.
- CTR classification of 130% to 260% for B grade.
- 5,000Vrms input-to-output isolation voltage.
- Typical LED forward voltage of 1.2V.
- Maximum LED forward current of 50mA.
- Maximum collector current of 50mA.
- Collector-emitter voltage rating of 35V.
- Collector-emitter saturation voltage of approximately 0.1V under specified test conditions.
- Typical rise time of approximately 6µs.
- Typical fall time of approximately 5µs.
- Phototransistor output configuration.
- Four-pin DIP package.
- Through-hole PCB mounting.
- Suitable for signal isolation and switching applications.
Infrared LED Input
The input section contains an infrared LED that converts electrical input current into optical energy. The LED is activated when the applied forward current reaches the required operating level.
Phototransistor Output
The output section uses an NPN phototransistor to detect the infrared light generated by the input LED. The resulting collector current depends on the optical coupling efficiency and the input LED current.
Current Transfer Ratio (CTR)
CTR describes the relationship between output collector current and input LED forward current. It is calculated using the following formula:
CTR = (IC / IF) × 100%
For the PC817B B-grade version, the specified CTR range is 130% to 260% under the stated test conditions.
Electrical Isolation
The optical coupling structure provides electrical separation between the input LED and output transistor. This makes the device useful in circuits requiring isolated control signals.
Signal Switching
The phototransistor output can be used in switching circuits, digital signal interfaces and isolated feedback systems when the load current and response time requirements are properly considered.
04. Package
The PC817B is commonly supplied in a 4-pin Dual In-Line Package (DIP-4). The package integrates the infrared LED and phototransistor with an insulating barrier between the input and output sides.
| Package Attribute | Description |
|---|---|
| Package Type | DIP |
| Pin Count | 4 |
| Mounting Type | Through-Hole |
| Package Style | Single-Channel Optocoupler |
| Lead Pitch | 2.54mm |
| Typical Row Spacing | 7.62mm |
| Input Element | Infrared LED |
| Output Element | NPN Phototransistor |
| Isolation Rating | 5,000Vrms |
| Ordering Code | PC817B |
The DIP-4 package is suitable for through-hole PCB assembly and is commonly used in industrial control boards, power supply circuits and general-purpose electronic equipment.
Some manufacturers also offer PC817-family devices in surface-mount package options. These versions must be evaluated separately because package dimensions, lead configuration and isolation characteristics may differ.
Package Design Considerations:
- Verify the physical dimensions before PCB layout.
- Confirm the pin 1 orientation.
- Maintain appropriate creepage and clearance distances.
- Follow the manufacturer's recommended PCB footprint.
- Consider the insulation requirements of the complete circuit.
- Check soldering temperature and assembly guidelines.
Package Reference:
05. Pinout
The PC817B uses a four-pin configuration. Pins 1 and 2 connect to the infrared LED input, while pins 3 and 4 connect to the NPN phototransistor output.
PC817B Pin Configuration – Top View:
PC817B
Top View
┌─────────────┐
Anode│ 1 4 │ Collector
│ │
Cathode│ 2 3 │ Emitter
└─────────────┘
| Pin | Pin Name | Function |
|---|---|---|
| 1 | Anode | Infrared LED positive input |
| 2 | Cathode | Infrared LED negative input |
| 3 | Emitter | Phototransistor emitter output |
| 4 | Collector | Phototransistor collector output |
Pin 1 – Anode
The anode is the positive terminal of the internal infrared LED. A current-limiting resistor should be used to control the forward current when driving this pin.
Pin 2 – Cathode
The cathode is the negative terminal of the internal infrared LED. It completes the input-side LED current path.
Pin 3 – Emitter
The emitter is the output-side connection of the NPN phototransistor. It is commonly connected to the output circuit reference or ground depending on the circuit configuration.
Pin 4 – Collector
The collector provides the phototransistor output connection. A pull-up resistor is commonly used to convert the output transistor current into a voltage signal.
Basic Application Circuit:
Input Side:
Control Signal
|
Resistor
|
Pin 1 (Anode)
|
Internal IR LED
|
Pin 2 (Cathode)
|
GND
Output Side:
VCC
|
Pull-up Resistor
|
Pin 4 (Collector)
|
Phototransistor
|
Pin 3 (Emitter)
|
GND
PCB Design Recommendations:
- Check the package orientation before assembly.
- Use a suitable input current-limiting resistor.
- Choose the output pull-up resistor according to the required switching speed and load.
- Keep input and output circuits electrically separated.
- Maintain the required creepage and clearance distances.
- Verify CTR under the actual operating conditions.
- Do not exceed the LED and phototransistor absolute maximum ratings.
06. Specifications
The following table summarizes the principal electrical characteristics of the GOODWORK PC817B DIP-4 version. Values should be verified against the exact manufacturer's datasheet before production use.
| Parameter | Specification |
|---|---|
| Manufacturer Reference | GOODWORK |
| Part Number | PC817B |
| Device Type | Optocoupler |
| Number of Channels | 1 |
| Input Type | Infrared LED |
| Output Type | NPN Phototransistor |
| CTR Range | 130% to 260% |
| CTR Test Conditions | IF = 5mA, VCE = 5V |
| Forward Voltage | 1.2V Typical |
| Maximum Forward Current | 50mA |
| LED Reverse Voltage | 6V |
| Maximum Collector Current | 50mA |
| Collector-Emitter Voltage | 35V |
| Emitter-Collector Voltage | 6V |
| Isolation Voltage | 5,000Vrms |
| Collector-Emitter Saturation Voltage | 100mV Typical |
| Rise Time | 6µs Typical |
| Fall Time | 5µs Typical |
| Total Power Dissipation | 200mW |
| Package | DIP-4 |
Current Transfer Ratio (CTR)
CTR is one of the most important parameters when selecting a PC817B optocoupler. It describes how effectively the input LED current is converted into output phototransistor collector current.
The B-grade classification specifies a CTR range of 130% to 260% at IF = 5mA and VCE = 5V.
Electrical Isolation
The PC817B provides an input-to-output isolation voltage rating of 5,000Vrms under the manufacturer's specified test conditions. Actual system insulation performance also depends on PCB layout, creepage distance, clearance and applicable safety standards.
Forward Voltage
The internal infrared LED has a typical forward voltage of approximately 1.2V. The input resistor should be selected based on the supply voltage and required LED forward current.
A simplified current-limiting resistor calculation is:
R = (VIN - VF) / IF
For example, with a 5V input supply, 1.2V LED forward voltage and 5mA target current, the calculated resistance is approximately 760Ω. A suitable standard resistor value should be selected after considering tolerance and operating conditions.
Output Current
The maximum collector current is 50mA. The actual output current must remain within the device's electrical and thermal limits.
Switching Response
The typical rise and fall times are approximately 6µs and 5µs under the specified test conditions. The PC817B is primarily intended for general-purpose signal isolation and switching rather than high-speed data transmission.
Official Technical Reference:
07. Equivalent
When searching for a PC817B equivalent or replacement, engineers should compare CTR classification, isolation voltage, collector current, collector-emitter voltage, response time, package dimensions and pin configuration.
The PC817 family is available from multiple manufacturers. Although many versions share a similar basic optical coupling structure and pin arrangement, electrical characteristics and safety approvals can vary.
Related PC817 CTR Grades:
| Model | CTR Range | Grade |
|---|---|---|
| PC817A | 80% to 160% | A |
| PC817B | 130% to 260% | B |
| PC817C | 200% to 400% | C |
| PC817D | 300% to 600% | D |
Related Optocoupler Models:
| Part Number | Device Type | Replacement Consideration |
|---|---|---|
| PC817A | Phototransistor Optocoupler | Different CTR grade |
| PC817C | Phototransistor Optocoupler | Higher CTR range |
| PC817D | Phototransistor Optocoupler | Higher CTR range |
| EL817 | Phototransistor Optocoupler | Compare CTR and package |
| LTV-817 | Phototransistor Optocoupler | Compare electrical ratings |
| SFH617A | Phototransistor Optocoupler | Check CTR grade and package |
PC817A vs PC817B
PC817A and PC817B share the same general optocoupler architecture, but their CTR classifications differ. PC817A has an 80% to 160% CTR range, while PC817B has a 130% to 260% range under the relevant specified conditions.
PC817B vs PC817C
PC817C provides a higher CTR classification of 200% to 400%. However, a higher CTR does not automatically make it a better replacement. The actual output response and operating point must be evaluated in the target circuit.
PC817B vs EL817
EL817 is another commonly used phototransistor optocoupler family. It can be considered during replacement research, but the CTR grade, isolation rating, package footprint and electrical characteristics must be compared before substitution.
Replacement Selection Checklist:
- Compare the CTR range at the same test conditions.
- Verify the isolation voltage rating.
- Check the collector-emitter voltage rating.
- Compare maximum collector current.
- Verify LED forward voltage and current requirements.
- Compare rise time and fall time.
- Confirm pin-to-pin compatibility.
- Check DIP-4 or alternative package dimensions.
- Verify safety certifications where required.
- Validate the replacement in the actual application circuit.
Important Replacement Notice:
PC817-family devices from different manufacturers may have different CTR limits, temperature ranges, isolation characteristics and package specifications. Similar part numbers do not guarantee identical electrical performance or safety certification.
Always review the exact manufacturer datasheet before approving a replacement.
08. Manufacturer
The PC817B is a widely adopted optocoupler designation manufactured by multiple semiconductor suppliers. The specific GOODWORK PC817B version referenced in this article is a four-pin phototransistor output optocoupler.
GOODWORK develops and supplies electronic semiconductor components, including optocouplers and discrete electronic devices.
The PC817 product family is also available from various other semiconductor manufacturers, including companies producing compatible phototransistor optocoupler devices.
Because the PC817B designation is used across multiple manufacturers, buyers should verify the exact manufacturer, package and electrical specifications rather than relying on the model number alone.
Manufacturer and Product Information:
- Manufacturer Reference: GOODWORK
- Part Number: PC817B
- Product Family: PC817 Series
- Device Category: Optocoupler
- Output Configuration: Phototransistor
- CTR Grade: B
- Package: DIP-4
- Isolation Voltage: 5,000Vrms
- Official Technical Reference: PC817 Series Datasheet
For component sourcing, buyers should confirm the manufacturer name, product marking, CTR classification, packaging format, date code and traceability documentation.
When purchasing PC817B components in volume, it is important to maintain consistency in manufacturer and CTR grade to reduce variations in production performance.
09. Applications
The PC817B is designed for signal isolation and switching applications where input and output circuits must remain electrically separated. Its phototransistor output and compact DIP-4 package make it suitable for a wide range of electronic systems.
1. Switching Power Supplies
The PC817B is widely used in isolated feedback circuits in switching power supplies. It transfers control signals between the secondary-side feedback circuit and primary-side controller.
2. Industrial Control Systems
Industrial control boards can use the device to isolate control signals between microcontrollers, external interfaces and higher-voltage circuit sections.
3. Measurement Instruments
Electronic measurement equipment can use the PC817B to transfer switching and status signals while maintaining electrical separation between circuit sections.
4. Energy Meters
Suitable energy measurement systems can use optocouplers to isolate digital signals between measurement circuits and control electronics.
5. Household Appliances
The device can be used in household electronic equipment, including fans, heaters and other control systems that require isolated signal transmission.
6. Computer Equipment
PC817B optocouplers can support isolated status and control signal interfaces in compatible computer-related electronic equipment.
7. Telecommunication Equipment
Optical isolation can help separate control signals between circuit sections with different voltage references in communication equipment.
8. Automatic Vending Machines
The PC817B can be incorporated into control and monitoring circuits used in automatic vending machines and related equipment.
9. Printers and Copiers
Optocouplers are useful in printer and copier control circuits where isolated status signals and switching interfaces are required.
10. General-Purpose Signal Isolation
The PC817B can be used in embedded systems to transfer digital switching signals between electrically isolated circuit domains.
Application Design Recommendations:
- Select the input LED current according to the required CTR.
- Calculate the LED current-limiting resistor correctly.
- Choose an appropriate output pull-up resistor.
- Verify the output transistor collector current.
- Consider CTR variation over temperature and operating life.
- Check switching response time for the application.
- Maintain suitable PCB creepage and clearance distances.
- Follow the required electrical safety standards.
- Check the isolation requirements of the complete system.
- Test the optocoupler under actual operating conditions.
The PC817B is particularly suitable for general-purpose electrical isolation, power supply feedback and low-speed signal transmission applications.
10. Disclaimer
This PC817B technical guide is provided for general electronic component research, engineering reference and product selection purposes.
Technical characteristics are based on publicly available PC817-series documentation and GOODWORK PC817B product information.
CTR, isolation voltage, forward voltage, switching response and temperature characteristics may differ between manufacturers and product versions.
The 5,000Vrms isolation rating represents a specified test rating and should not be interpreted as a continuous working voltage rating.
Equivalent and replacement optocouplers must be independently evaluated for CTR, insulation performance, package compatibility, electrical ratings and safety certifications.
Product availability, pricing, manufacturer information and ordering specifications may change. Buyers should verify the exact product datasheet and sourcing information before purchasing.
Technical References:
PC817 Series Technical Datasheet
LCSC Electronic Component Information
Editorial Note: This article is an independent technical overview intended to support electronic component research and engineering decisions. It is not an official manufacturer publication or a guarantee of component availability, interchangeability or suitability for a specific application.

