PC817 Guide


I’ll research the manufacturer’s datasheet and sourcing information, then create a cited application guide covering wiring, layout, and replacement options.
I found a specification mismatch: the project description lists 35 V, while Sharp’s newer family datasheet lists 80 V. The project’s attached datasheet is still unavailable for verification, so I’ll clearly separate the manufacturer-family specifications from what can be confirmed for this library part.
Created a project doc

PC817 Application and Usage Guide

View Document

PC817 Application and Usage Guide
The PC817 is a single-channel optocoupler containing an infrared LED optically coupled to a phototransistor, with a four-pin DIP package. A common practical use is transferring a low-speed on/off signal between electrically isolated circuits, using an LED current-limiting resistor on the input and a collector pull-up on the output.
Scope and verification: This library project is named PC817 but does not establish an exact manufacturer ordering code. Its description states 35 V and CTR 50–300%; those figures could not be verified against the project's attached datasheet, whose extraction remained pending after retries. The verified specifications below instead describe Sharp PC817XxNSZ1B, document OP18002EN...
Created the PC817 Application and Usage Guide, covering all seven requested sections, cited specifications, and 3.3 V/5 V resistor calculations.
The guide flags the unresolved 35 V versus 80 V specification mismatch and clearly distinguishes the verified replacement candidate from the second option still requiring verification; the schematic and footprint are unchanged.

PC817 Application and Usage Guide
The PC817 is a single-channel optocoupler containing an infrared LED optically coupled to a phototransistor, with a four-pin DIP package. A common practical use is transferring a low-speed on/off signal between electrically isolated circuits, using an LED current-limiting resistor on the input and a collector pull-up on the output.
Scope and verification: This library project is named PC817 but does not establish an exact manufacturer ordering code. Its description states 35 V and CTR 50–300%; those figures could not be verified against the project's attached datasheet, whose extraction remained pending after retries. The verified specifications below instead describe Sharp PC817XxNSZ1B, document OP18002EN, dated January 15, 2018; do not automatically assign its 80 V rating to an unidentified PC817. Obtain the actual purchased manufacturer's full MPN, CTR rank and current datasheet before releasing a BOM. No schematic, footprint or component metadata was changed.
1. Quick Specifications
Absolute maximum ratings are stress limits, not recommended operating targets. The Sharp ratings below are specified at ambient temperature 25 °C unless a different condition is stated.

Table


ParameterValue / conditionClassification
LED forward current, IF50 mAAbsolute maximum; respect temperature derating and input dissipation.
LED reverse voltage, VR6 VAbsolute maximum, not a normal operating bias.
Collector–emitter voltage, VCEO80 V for the cited Sharp family onlyAbsolute maximum; the library description's 35 V remains unresolved.
Emitter–collector voltage, VECO6 VAbsolute maximum; collector and emitter are not interchangeable.
Collector current, IC50 mAAbsolute maximum, not guaranteed LED-driven sink capability.
Input / collector / total dissipation70 / 150 / 200 mWSeparate absolute maxima; satisfy all three and temperature derating.
Operating temperature−30 to +100 °CPublished operating-temperature limit in absolute-maximum table.
Storage temperature−55 to +125 °CStorage limit, not operating range.
Input–output isolation test5 kVrms, AC for 1 minute, 40–60% RHDielectric test rating, not continuous allowable working voltage.
LED VF1.2 V typical; 1.4 V maximum at IF = 20 mAElectrical characteristic, not a constant at every current or temperature.
CTRMinimum 50% at IF = 5 mA, VCE = 5 V, Ta = 25 °CGuaranteed only under cited conditions; upper limit depends on selected ordering code/rank.
Rise / fall time4 / 3 µs typical; 18 / 18 µs maximum, VCE = 2 V, IC = 2 mA, RL = 100 ΩTest-circuit characteristics, not timing guarantees for a 10 kΩ saturated logic output.
PackageFour-pin DIP; separate SMT gullwing optionSelect package by full ordering code.
Lead pitch / row spacingNumerical Sharp drawing callouts not verified in the retrieved evidence. Project description indicates a 7.62 mm-wide DIP footprint, but that is not a verified land pattern.Unverified for this part; compare package drawing with actual hole coordinates before fabrication.
Practical example operating pointNominal IF ≈ 5 mA; isolated 3.3 V or 5 V output rail with 10 kΩ pull-upEngineering starting point, not a manufacturer recommended-operating range or validated production design.
2. Pinout & Connections
The cited Sharp pinout is 1 Anode, 2 Cathode, 3 Emitter, 4 Collector. Orient the package from its manufacturer's top-view diagram and pin-1 mark, not from an assumed underside view.

Table


Pin NumberPin NameDescriptionBest Practice
1A — AnodePositive LED terminalDrive through a calculated series resistor; never connect directly to a voltage source or push-pull GPIO.
2K — CathodeNegative LED terminalIn the active-high example, tie to input-side return GND_IN. A sinking-driver topology is also possible, but changes input polarity.
3E — EmitterPhototransistor emitterTie to isolated output-side return GND_OUT for common-emitter logic sensing.
4C — CollectorPhototransistor outputConnect to receiver input and a pull-up to its local logic supply; 10 kΩ is an example starting value, not a mandatory datasheet value.
Isolation rule: GND_IN and GND_OUT must remain electrically separate if galvanic isolation is required. The device has no VCC supply pin, exposed base pin, enable pin or intrinsic logic-level output driver.
3. Standard Application Circuit
PC817 isolated digital-input wiring
Use the following active-high input, active-low output topology:
  • Input driver → R_IN → pin 1; pin 2 → GND_IN.
  • Pin 3 → GND_OUT.
  • VLOGIC_OUT → R_PULLUP → pin 4; pin 4 → receiver digital input.
  • Start with R_PULLUP = 10 kΩ for a low-speed status signal. Choose VLOGIC_OUT to match the receiving input's allowable voltage, independently of the input drive voltage.
  • When the LED conducts, the phototransistor pulls the output low; when the LED is off, the resistor pulls it high. The circuit is logically inverting.
LED series-resistor calculations for 3.3 V and 5 V logic
The engineering equation is R_IN = (V_DRIVE − VF − V_DRIVER_DROP) / IF. For a preliminary nominal calculation only, assume V_DRIVER_DROP = 0, VF = 1.2 V, and target IF = 5 mA. The 1.2 V value is a datasheet typical at 20 mA, not a guaranteed value at 5 mA; the following results are design estimates based on that explicit assumption.

Table


Nominal driveCalculated R for 5 mAExample standard resistorCalculated current using assumed VFNominal resistor dissipation
3.3 V(3.3 − 1.2) / 0.005 = 420 Ω430 Ω2.1 / 430 = 4.88 mA2.1² / 430 = 10.3 mW
5 V(5 − 1.2) / 0.005 = 760 Ω750 Ω3.8 / 750 = 5.07 mA3.8² / 750 = 19.3 mW
A 0.125 W resistor has substantial margin over these nominal losses, but final selection must use maximum drive voltage, minimum VF, resistor tolerance, driver source/sink limits, ambient temperature and derating. For a GPIO, use its guaranteed VOH at the desired current—not just the nominal rail voltage. The 430 Ω example falls slightly below the datasheet's 5 mA CTR test point; it therefore does not automatically inherit that minimum CTR guarantee.
Output pull-up and CTR checks
CTR = 100 × IC / IF. At the cited 50% minimum CTR test point, IF = 5 mA gives IC = 2.5 mA at VCE = 5 V and 25 °C. This is not a guaranteed saturation sink current at 0.2 V or a guaranteed hot/cold or aged-device value.
For a 10 kΩ pull-up and an illustrative target VOL = 0.2 V, required pull-up current is (3.3 − 0.2)/10,000 = 0.31 mA or (5 − 0.2)/10,000 = 0.48 mA, plus receiver leakage. These calculations quantify the load; they do not prove the device meets that VOL. Sharp's saturation-voltage test uses IF = 20 mA and IC = 1 mA, different from this example.
Check receiver VIL/VIH, worst-case CTR versus current and temperature, LED aging, output leakage and switching speed. Measure VOL and pulse timing on hardware at temperature corners. Use a Schmitt-trigger receiver when slow transitions could violate the receiver's edge-rate requirements. Deep phototransistor saturation and a high-value pull-up can make turn-off substantially slower than the datasheet test circuit.
Required and optional support parts
  • Required for the stated topology: R_IN and R_PULLUP.
  • Optional reverse protection: if input polarity reversal or negative transients are possible, add an antiparallel diode across the LED, cathode to pin 1 and anode to pin 2. Verify diode surge rating and resistor fault dissipation. The LED's reverse absolute maximum is only 6 V.
  • Decoupling: no capacitor is required across the optocoupler itself because it has no supply pin. Decouple the receiver IC according to its own datasheet; keep its capacitor entirely in the output domain.
  • This is a low-voltage integration example, not a validated mains-input circuit or isolated power supply. An isolated signal path does not itself supply isolated output power.
4. PCB Layout & Routing Guidelines
The following are engineering layout recommendations, not manufacturer-specific numerical PCB rules:
  • Preserve the isolation barrier: keep input/output copper, planes, vias, test pads and mounting hardware separated on every layer. Do not run a shared ground plane underneath the barrier. Derive clearance and creepage from working voltage, applicable safety standard, pollution degree, material group and altitude—not the 5 kVrms test rating.
  • Verify the full package variant: compare manufacturer drawings with lead pitch, row spacing, finished holes, annular rings and pin numbering. Through-hole and SMT gullwing outlines are separate Sharp options. Do not assume a wide-lead or SMT variant fits this DIP footprint.
  • Keep local paths short: put R_IN near the input connection and route collector/receiver wiring compactly in the output domain. Size traces for actual current, copper thickness, allowable temperature rise and fault conditions; this is not a high-current power-output component.
  • Solderability and thermal relief: use normal thermal reliefs for through-hole pads connected to large local planes when compatible with the assembly process. Do not bridge the barrier with heat-spreading copper. Check input, transistor and combined power limits and temperature derating rather than relying on copper area to permit overrating.
  • Do not impose irrelevant routing rules: no differential pair, controlled-impedance pair or matched-length LED/collector routes are required for the stated low-speed circuit. Place any receiver decoupling capacitor at that receiver's supply pin on its own side of the barrier.
5. Common Pitfalls / Things to Watch Out For
  1. Selecting LED current or pull-up from typical values alone. Minimum CTR is conditional; a low-current LED drive may not support the desired pull-up load, while saturation and output capacitance can destroy pulse timing. Do not treat the 50 mA collector absolute maximum as guaranteed available output current, or the microsecond datasheet test results as a baud-rate guarantee.
  2. Assuming the part name guarantees isolation, voltage rating or compatibility. Joining the two grounds defeats galvanic isolation; a 5 kVrms dielectric test is not a continuous working-voltage specification. Manufacturer, suffix, CTR grade, approvals and lead form must match the application. In particular, this library's 35 V / 50–300% description is not verified by the newer Sharp family document.
Verification limit: one other-manufacturer candidate was verified for pinout and electrical values; a second manufacturer's candidate was identified but its detailed datasheet evidence remained unavailable. Neither is approved here as an unconditional drop-in replacement, and no footprint geometry was edited or validated.

Table


AlternativeCompatibility labelVerified facts and substitution checks
Everlight EL817, standard DIPPin-compatible; nominal DIP footprint candidate; conditional electrical replacementPins 1/2/3/4 are A/K/E/C. Standard DIP has 2.54 mm typical pitch and 7.62 mm typical row spacing. VCEO absolute maximum is 35 V; thus it is not an 80 V-rated substitute. Unranked CTR is 50–600% at IF = 5 mA and VCE = 5 V. Verify exact CTR bin, timing, hole/body fit and approval suffix.
Lite-On LTV-817S-TAFunctionally similar family candidate; NOT footprint-compatible with this through-hole DIPFlux library identifies this exact available option as four-pin surface mount. The Lite-On family datasheet was located, but citation-backed electrical/pin/geometry verification failed or remained pending across manufacturer and mirror sources; those details are unverified in this guide. For a DIP candidate, investigate the standard LTV-817 lead form separately rather than ordering this S-TA version. Do not qualify substitution until its complete datasheet and package drawing are checked.
No unsupported third alternative is presented merely to fill the table. Qualification must include operating voltage, worst-case CTR, output leakage, saturation behavior, pulse timing, temperature, safety approvals and exact PCB footprint—not just the four-pin symbol.
7. Sourcing & Purchasing Guide

Table


AttributeDetails
Primary DistributorsA direct TME listing for Sharp PC817XNNSZ1B was located. DigiKey, Mouser, Arrow and LCSC are useful additional channels to search by full ordering code, but current availability and authorization for this exact code were not confirmed across all of them. A JLCPCB PC817X1NSZ9F listing is for a different suffix, not proof of equivalence.
Packaging OptionsCited Sharp through-hole NSZ1B family: 100 pieces/sleeve. Cited Sharp SMT gullwing NIP1B family: 2,000 pieces/reel. Distributor split-tube or cut-tape offerings depend on their SKU; do not call a DIP sleeve a reel.
Standard MOQNo universal MOQ verified. Factory packing quantity is not distributor minimum order quantity. The different-code JLCPCB listing displayed minimum 1 for assembly procurement only; it states parts cannot be shipped separately. Confirm actual minimum, order multiple and full-pack quantity with the selected seller.
Sourcing AdvicePrefer manufacturer-authorized/franchised distributors and traceable original stock. Verify authorization with the manufacturer rather than assuming a marketplace seller is authorized. Avoid unverifiable markings/date codes and counterfeit or re-marked stock. Specify manufacturer, full MPN, CTR rank, DIP vs SMT vs wide-lead form, packaging and required safety approvals. Ask for the exact datasheet revision and do not accept an unspecified “PC817 equivalent” without qualification.
Research date: October 6, 2026. Distributor stock, pricing and lead time are dynamic; no purchase or live-stock guarantee is made.
Sources
Outstanding release checks: identify the actual manufacturer and full PC817 ordering code; resolve its voltage/CTR description mismatch; verify its numerical package geometry; obtain citation-backed Lite-On compatibility evidence before qualifying a second manufacturer's replacement.
  • 1. Quick Specifications

  • 2. Pinout & Connections

  • 3. Standard Application Circuit

  • PC817 isolated digital-input wiring

  • LED series-resistor calculations for 3.3 V and 5 V logic

  • Output pull-up and CTR checks

  • Required and optional support parts

  • 4. PCB Layout & Routing Guidelines

  • 5. Common Pitfalls / Things to Watch Out For

  • 6. Popular Alternatives & Equivalents

  • 7. Sourcing & Purchasing Guide

  • Sources