4N22N-R
AI

The **4N22N-R** is an **Optocoupler (or Opto-isolator)** with a Phototransistor output, typically housed in a surface-mount package. It is designed to transfer electrical signals between two isolated circuits using light, providing high-voltage isolation to protect sensitive components.
---
### 1. Key Technical Specifications
The performance of the 4N22N-R is defined by its ability to isolate input from output while maintaining signal integrity.
| Parameter | Typical Value |
| :--- | :--- |
| **Input Type** | Infrared LED |
| **Output Type** | NPN Phototransistor |
| **Isolation Voltage** | 1500V - 2500V RMS (Standard range) |
| **Current Transfer Ratio (CTR)** | 25% - 100% (at $I_F = 10mA$) |
| **Max Forward Current ($I_F$)** | 50mA - 60mA |
| **Collector-Emitter Voltage ($V_{CEO}$)** | 35V - 40V |
| **Package Type** | Solder Reflow Compatible (R-Suffix usually denotes Reel) |
---
### 2. Internal Components
An optocoupler consists of two primary parts inside a single light-tight housing:
1. **The Transmitter (Input Side):** An Infrared Light Emitting Diode (IR LED). When current flows through this side, it emits infrared light.
2. **The Receiver (Output Side):** A photosensitive NPN transistor. When it detects the light from the LED, it allows current to flow through the collector and emitter pins.
---
### 3. Pinout Configuration
While pinouts can vary slightly by manufacturer, the standard 4N22/4N25 series usually follows this 6-pin logic:
| Pin Number | Function | Description |
| :--- | :--- | :--- |
| **1** | Anode | Positive terminal of the IR LED |
| **2** | Cathode | Negative terminal of the IR LED |
| **3** | NC | No internal connection |
| **4** | Emitter | Emitter of the Phototransistor |
| **5** | Collector | Collector of the Phototransistor |
| **6** | Base | Base of the Phototransistor (often left floating) |
---
### 4. Typical Applications
* **Microprocessor I/O Isolation:** Protecting a microcontroller (like an Arduino or ESP32) from high-voltage DC motors or relays.
* **Switching Power Supplies:** Providing feedback from the output side to the input side while maintaining galvanic isolation.
* **Noise Suppression:** Eliminating ground loops in communication lines.
---
### 5. Implementation Example
To use the 4N22N-R, you must calculate the current limiting resistor ($R_1$) for the LED side.
```cpp
// Logic Example: Controlling a 24V Load with a 5V Signal
// Formula for Input Resistor: R = (V_signal - V_forward) / I_forward
// Typical Values:
// V_signal = 5V
// V_forward = 1.2V
// I_forward = 10mA (0.01A)
// Result: (5 - 1.2) / 0.01 = 380 Ohms (Standard 330 or 470 Ohm resistor)
```
- ⤷
How do I calculate the Current Transfer Ratio (CTR) for my specific circuit?
- ⤷ What is the difference between the 4N22 and the 4N25 models?
- ⤷ Can the 4N22N-R be used for high-speed data transmission?