Skip to datasheet
Optical isolation · PC817 rank-A example

Optocoupler Basic Circuit

Build a basic Optocoupler circuit with labeled pins, component values and connection guidance.

Package view

Optocoupler in a circuit

Physical package, two supplies and two separate grounds.

Input domain: 5 V_A through a switch and 750 Ω resistor to anode pin 1; cathode pin 2 to GND_A. Output domain: 3.3 V_B through a 10 kΩ pull-up to collector pin 4 and the logic input; emitter pin 3 and receiver return to GND_B. The grounds are not connected.
Low-voltage teaching circuit. LED on pulls the output low when there is enough collector drive; LED off lets the pull-up restore high.

Connect it, step by step

Follow the component values and pin connections

Limit input current

Drive the anode through 750 Ω; return the cathode only to GND_A.

Power the output side

Pull the collector up to the independently powered 3.3 V_B rail through 10 kΩ.

Read the inverted signal

Connect the collector to the receiving logic input and the emitter to GND_B. Check the receiver’s logic thresholds.

Component view