H222
AI

The **H222** designation is commonly associated with specific electronic components, most notably the **H222 optocoupler/photo-interrupter** (often manufactured by companies like Lite-On or Everlight) or high-voltage NPN transistors.
Below is a breakdown of the technical specifications and electronic properties typically associated with these parts.
---
### 1. H222 Optocoupler / Photo-Interrupter
The most common "H222" electronic part is a slotted optical switch. It consists of an Infrared (IR) LED and a phototransistor facing each other across a gap.
#### Technical Specifications
| Parameter | Description | Typical Value |
| :--- | :--- | :--- |
| **Input (LED) Forward Current** | The current needed to power the IR emitter | 20mA - 50mA |
| **Output (Transistor) Vce** | Maximum voltage across the Collector-Emitter | 30V |
| **Slot Width** | The physical gap between emitter and sensor | 3mm |
| **Response Time** | Speed of switching (Rise/Fall time) | 5μs - 15μs |
#### Working Principle
1. **Infrared Emission:** The LED side is constantly powered.
2. **Detection:** The phototransistor on the opposite side receives the light and stays in a "conducting" state.
3. **Interruption:** When an object enters the slot, it blocks the beam. The transistor stops conducting, sending a signal to the microcontroller (like an Arduino).
---
### 2. 2N2222 Transistor (Often abbreviated as H222)
In some circuit diagrams or older labeling systems, "H222" refers to the **2N2222** NPN Bipolar Junction Transistor (BJT). This is one of the most widely used general-purpose transistors.
#### Pin Configuration
1. **Emitter:** Connected to ground in many switching circuits.
2. **Base:** The control pin (turns the transistor ON/OFF).
3. **Collector:** Connected to the load.
```text
Standard TO-92 Package:
_________
| |
| 2N2222 |
|_________|
| | |
E B C
```
---
### 3. Common Applications
Depending on which version of the H222 you are using, the applications differ:
* **For the Optocoupler:**
* **Speed Sensing:** Measuring the RPM of a motor by placing a disk with slots in the gap.
* **Limit Switches:** Detecting when a 3D printer head or CNC arm has reached its maximum travel distance.
* **Paper Detection:** Used in printers to sense if paper is present.
* **For the Transistor:**
* **Switching:** Driving small DC motors or relays.
* **Amplification:** Boosting small audio or radio signals.
---
- ⤷
How do I wire the H222 photo-interrupter to an Arduino?
- ⤷ What is the maximum voltage a 2N2222 transistor can handle?
- ⤷ Are there alternative parts for the H222 if it is out of stock?