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 |
PC817 Features and Specifications
- Input Diode Forward Voltage: 1.25V
- Collector-Emitter Voltage: 80V (max)
- Collector Current: 50mA (max)
- Cut-off frequency: 80 kHz
- Rise Time: 18us
- Fall Time: 18us
- Available as 4-pin DIP through hole and also as SMT package.
Note: More details can be found in the PC817 datasheet which is available for download at the end of this page.
Where to Use PC817 IC
PC817 Photocoupler has a transistor which is controlled based on light (photon). So this IC basically has an IR (infrared) LED and a photo-transistor inside it. When the IR LED is powered the light from it falls on the transistor and it conducts. The arrangement and pinouts of the IR LED and the photo-transistor is shown below.
This IC is used to provide electrical isolation between two circuits, one part of the circuit is connected to the IR LED and the other to Photo-transistor. The digital signal given to the IR LED will be reflected on the transistor but there will be no hard electrical connection between the two. This comes in very handy when you are trying to isolate a noisy signal from your digital electronics, so if you are looking for an IC to provide optical isolation in your circuit design then this IC might be the right choice for you.
How to use PC817 IC
Using the PC817 IC is pretty much straight forward, we just have to connect the anode pin of the IR LED (pin 1) to the logic input which has to be isolated and the cathode (pin 2) of the IR led to the ground. Then Pull high the collector pin of the transistor using a resistor (here I have used 1K) and connect the collector pin to the output of your desired logic circuit. The Emitter (pin 4) is grounded.
Note: The ground line of the IR LED (pin 2) and the ground line of the transistor (pin 4) will not be connected together. This is where the isolation occurs.
Now, when the Logic input is low the IR LED will not conduct and hence the transistor will also be in off state. Hence the Logic output will remain high, this high voltage can be set anywhere up-to 30V (Collector-Emitter Voltage) here I have used +5V. There pull-up resistor 1K acts as a load resistor.
But when the Logic input is made high, this high voltage should be a minimum of 1.25V (Diode Forward voltage) the IR LED conducts and so the photo-transistor is also turned on. This will short the collector and emitter and hence the Logic Output voltage will become zero. This way the logic input will be reflected at the logic output and still provides and isolation between the two. The complete working can also be understood form the GIF file above.
Another important parameter to consider while using an Optocoupler, is the rise time (tr) and fall time (tf). The output will not get high as soon as the input logic is made low and vice versa. The below waveform shows the time taken for the output to transit from one state to another. For PC817 the rise time (TPDHL) and fall time (TPDLH) is 18us.
Applications
- Electrical Isolation circuits
- Microcontroller I/O switching circuits
- Signal isolation
- Noise coupling circuits
- Isolation digital from analog circuits
- Ac/DC Power control
There are no reviews yet.