Photocoupler · IRED input · phototransistor output

PC817 Optocoupler and Isolation Checks

The Sharp PC817XxNSZ1B series is a four-pin photocoupler containing an infrared emitter and an optically coupled phototransistor. Its CTR is specified under stated input-current, collector-voltage and temperature conditions. A weak output can therefore come from the LED drive, CTR grade, collector load or receiver supply—not only a failed optocoupler.

Search problem: PC817 pinout, optocoupler CTR low, feedback isolation signal missing, PC817 output stuck high or low.

Evidence boundary: Sharp’s PC817XxNSZ1B datasheet supports the pin assignment and the listed series ratings. PC817-compatible parts from other manufacturers and different suffix/rank grades may have different limits. A specific welder-board location is not established by the component datasheet.

Quick checks

PC817 is not a three-terminal transistor and has no VCC pin. Pins 1–2 are the input LED; pins 3–4 are the isolated phototransistor. Diagnose the two sides independently and keep their electrical references separate where galvanic isolation is required.

ObservationFirst checkCommon false conclusion
Input LED drive is absentTrace the series resistor, driver transistor and input-side return.Do not condemn the output transistor before confirming LED current.
LED side responds but output is weakCheck exact CTR rank, collector pull-up, receiver rail and output load.CTR is not a fixed gain independent of test conditions.
Collector output remains highCheck whether the LED is driven, whether the phototransistor conducts and whether the pull-up is intact.High may be the normal off state in a common-emitter interface.
False or intermittent protection signalCheck connector return, solder joints, contamination and receiver threshold margin.Do not bridge the isolation barrier to “prove” the signal path.

Four-pin connection map

For the Sharp PC817XxNSZ1B series, the manufacturer’s internal connection diagram assigns the terminals as follows. Use the package pin-1/anode mark and the top-view drawing; do not infer numbering from a bottom-view footprint.

PC817 four-pin optocoupler top view showing input LED anode and cathode, isolated phototransistor emitter and collector.
Sharp PC817XxNSZ1B connection map · 4-pin DIP · top view
PinTerminalSideFunction
1AnodeInputPositive terminal of the internal infrared-emitting diode.
2CathodeInputReturn terminal of the internal infrared-emitting diode.
3EmitterOutputEmitter of the isolated phototransistor.
4CollectorOutputCollector of the isolated phototransistor; the external circuit defines the pull-up and logic polarity.

The isolation barrier is between the LED input and phototransistor output. Pin 2 is not automatically the same ground as pin 3. Connecting those returns can defeat the intended isolation.

CTR and rating interpretation

Sharp specifies the PC817XxNSZ1B series as a 4-pin DIP photocoupler. The published series document lists CTR from 50% to 400% at IF = 5 mA, VCE = 5 V and Ta = 25 °C; it also lists 5 kV RMS input-output isolation voltage and 80 V collector-emitter voltage. These figures belong to the specified Sharp series and its test conditions.

Isolation-aware measurement order

  1. Read the complete part marking, manufacturer and rank code. Confirm whether the fitted component is Sharp PC817XxNSZ1B, another PC817 family variant or a compatible part from a different supplier.
  2. Disconnect mains, allow stored energy to discharge and verify the safe state. Identify which side is the control/input domain and which side is the isolated receiver domain from the schematic or copper tracing.
  3. With the circuit unpowered, inspect the LED series resistor, input driver, collector load, pull-up and solder joints. Use diode mode only as a gross LED open/short check, observing meter polarity.
  4. In a separate current-limited, low-voltage test fixture, drive pins 1–2 within the exact datasheet conditions and observe the isolated output at pins 4–3. Do not use a live welder power stage as a test fixture.
  5. Measure the receiver-side supply and pull-up relative to the receiver’s own return. Confirm that the output transistor has a valid load path before judging its collector voltage.
  6. If the output is weak, compare the input current, receiver load and exact CTR rank. A low collector current can be caused by insufficient LED current or an excessive collector load.
  7. After component replacement, verify both sides separately and preserve the isolation barrier. Confirm the downstream protection/feedback signal returns to its expected state without bypassing it.

Fault interpretation

EvidenceLikely boundaryNext check
No forward response across pins 1–2LED open, wrong pin orientation or series path open.Check the exact part drawing and input resistor/driver path.
LED current present; output transistor does not pull downWrong pin mapping, failed phototransistor, inadequate CTR or open emitter return.Check pins 3/4 and receiver-side load in an isolated fixture.
Output pulls down unloaded but not on the boardReceiver load too heavy, pull-up rail abnormal or downstream short.Measure the collector load and receiver supply independently.
Output switches slowlyLarge collector load, capacitance, low LED drive or device aging.Compare with the circuit timing requirement; do not infer CTR from edge speed alone.
Signal changes when input and output grounds are joinedIsolation boundary may be bypassed or reference assumptions are wrong.Stop and restore the designed isolation topology.

Stop conditions

Safety boundary: use an isolated low-energy fixture for functional checks. Live primary/secondary measurements require qualified personnel and properly rated differential/isolated instrumentation.

Manufacturer source

Pin assignment, CTR, package and isolation figures are tied to this Sharp series document. Do not transfer its values to an unmarked clone or a different suffix without checking that manufacturer’s specification.