Optocouplers Explained: PC817, 4N35, MOC3021, 6N137 and TLP250 and Where Each One Is Used
What an optocoupler does and how to choose one: PC817 and 4N35 transistor output types for SMPS feedback, MOC3021 triac drivers for AC switching, 6N137 high speed couplers and TLP250 gate drivers.
2 min readBy the module.pk teamاردو میں پڑھیں ↓

An optocoupler (opto isolator) passes a signal across a gap using light. Inside, an LED shines onto a light sensitive transistor, triac or logic receiver, with no electrical connection between the two sides. That isolation protects people and low voltage electronics from mains voltages, which is why optocouplers are in every SMPS, inverter and microcontroller controlled AC switch.
Types of optocouplers and their uses
| Optocoupler | Output | Typical use |
|---|---|---|
| PC817, PC123, 4N35 | Phototransistor | SMPS feedback with a TL431, isolated inputs |
| MOC3021 | Triac driver (random phase) | Driving a power triac from a microcontroller for dimmers and fans |
| 6N137 | High speed logic | Fast digital isolation, serial links |
| TLP250, TLP350, A3150 | Gate driver | Driving MOSFETs and IGBTs in inverters and welding machines |

The PC817 in power supplies
In a typical switch mode power supply, a TL431 reference on the output side lights the PC817's LED when the voltage is high enough. The phototransistor tells the PWM controller on the mains side to back off. A failed PC817 can make a supply run with a high output, shut down, or click on and off.

Choosing an optocoupler
- Match the output type: transistor, triac driver, logic or gate driver.
- Check the isolation voltage for mains work.
- For triac drivers, choose random phase (MOC3021) for dimming or zero cross types for on and off switching.
- For inverters, a gate driver coupler like the TLP250 replaces a separate driver stage.
Find optocouplers fast with the part finder on module.pk
Our Optocouplers page opens with a part number finder. Type the number printed on the face of the part, such as PC817, and it shows that part and its equivalents, so you can still repair a board when the original number is hard to find. Ignore the logo and the date code: the part number is usually the longest line.
Below the finder, package tiles let you pick the body shape with one tap, and the filters narrow by component type, package, mounting (through hole or SMD) and pack quantity. Every listing shows the maximum voltage and current, the pin count and known equivalents. Not sure what you have? Send a photo of the part on WhatsApp and we will find it or an equivalent.
Frequently asked questions
Can I replace PC817 with 4N35?
Often yes for feedback and isolation duties, but the pinout and package differ, so check the board.
Which optocoupler drives a triac?
A triac driver optocoupler such as the MOC3021, which then drives a power triac such as the BT136.
اردو میں
آپٹو کپلر کی پوری سمجھ: PC817، 4N35، MOC3021، 6N137 اور TLP250، اور ہر ایک کہاں لگتا ہے
آپٹو کپلر (آپٹو آئسولیٹر) روشنی کے ذریعے سگنل ایک طرف سے دوسری طرف پہنچاتا ہے۔ اندر ایک LED روشنی والے ٹرانزسٹر، ٹرائیک یا لاجک ریسیور پر چمکتی ہے، اور دونوں طرف کوئی بجلی کا تعلق نہیں ہوتا۔ یہ علیحدگی لوگوں اور کم وولٹیج الیکٹرانکس کو بجلی کے وولٹیج سے بچاتی ہے، اسی لیے آپٹو کپلر ہر SMPS، انورٹر اور مائیکرو کنٹرولر سے چلنے والے AC سوئچ میں ہوتے ہیں۔
آپٹو کپلر کی قسمیں اور استعمال
| آپٹو کپلر | آؤٹ پٹ | عام استعمال |
|---|---|---|
| PC817، PC123، 4N35 | فوٹو ٹرانزسٹر | TL431 کے ساتھ SMPS فیڈ بیک، الگ ان پٹ |
| MOC3021 | ٹرائیک ڈرائیور (رینڈم فیز) | ڈمر اور پنکھوں کے لیے مائیکرو کنٹرولر سے پاور ٹرائیک چلانا |
| 6N137 | تیز لاجک | تیز ڈیجیٹل علیحدگی، سیریل لنک |
| TLP250، TLP350، A3150 | گیٹ ڈرائیور | انورٹر اور ویلڈنگ مشین میں MOSFET اور IGBT چلانا |

پاور سپلائی میں PC817
عام سوئچ موڈ پاور سپلائی میں آؤٹ پٹ کی طرف لگا TL431 ریفرنس وولٹیج پورا ہونے پر PC817 کی LED جلاتا ہے۔ فوٹو ٹرانزسٹر بجلی کی طرف لگے PWM کنٹرولر کو بتاتا ہے کہ کم کرو۔ خراب PC817 سے سپلائی زیادہ آؤٹ پٹ دے سکتی ہے، بند ہو سکتی ہے، یا ٹِک ٹِک کر کے آن آف ہو سکتی ہے۔

آپٹو کپلر کیسے چنیں
- آؤٹ پٹ کی قسم ملائیں: ٹرانزسٹر، ٹرائیک ڈرائیور، لاجک یا گیٹ ڈرائیور۔
- بجلی کے کام کے لیے علیحدگی کا وولٹیج چیک کریں۔
- ٹرائیک ڈرائیور میں ڈمنگ کے لیے رینڈم فیز (MOC3021) یا آن آف کے لیے زیرو کراس قسم چنیں۔
- انورٹر میں TLP250 جیسا گیٹ ڈرائیور کپلر الگ ڈرائیور سٹیج کی جگہ لے لیتا ہے۔
module.pk کے پارٹ فائنڈر سے آپٹو کپلر جلدی ڈھونڈیں
ہمارے آپٹو کپلر پیج کے شروع میں پارٹ نمبر فائنڈر ہے۔ پارٹ کے اوپر لکھا نمبر لکھیں، جیسے PC817، اور یہ وہ پارٹ اور اس کے متبادل دکھاتا ہے، تاکہ اصل نمبر نہ ملے تب بھی بورڈ ٹھیک ہو سکے۔ لوگو اور تاریخ کا کوڈ چھوڑ دیں: پارٹ نمبر عام طور پر سب سے لمبی لائن ہوتی ہے۔
فائنڈر کے نیچے پیکج کے ٹائل سے ایک ٹچ میں پارٹ کی شکل چنیں، اور فلٹر پارٹ کی قسم، پیکج، لگانے کا طریقہ (تھرو ہول یا SMD) اور پیک میں تعداد سے لسٹ چھوٹی کرتے ہیں۔ ہر پارٹ پر زیادہ سے زیادہ وولٹیج اور کرنٹ، پنوں کی تعداد اور معلوم متبادل لکھے ہیں۔ پتا نہیں آپ کے پاس کیا ہے؟ پارٹ کی تصویر WhatsApp پر بھیجیں، ہم وہی یا اس کا متبادل ڈھونڈ دیں گے۔
اکثر پوچھے جانے والے سوال
کیا PC817 کی جگہ 4N35 لگ سکتا ہے؟
فیڈ بیک اور علیحدگی کے کام میں اکثر ہاں، مگر ٹانگوں کی ترتیب اور پیکج الگ ہیں، اس لیے بورڈ دیکھ لیں۔
ٹرائیک کون سا آپٹو کپلر چلاتا ہے؟
MOC3021 جیسا ٹرائیک ڈرائیور آپٹو کپلر، جو پھر BT136 جیسا پاور ٹرائیک چلاتا ہے۔
