NPN Transistor 2N2222
A bipolar transistor can amplify signals or switch suitable loads.
What is the NPN Transistor 2N2222 and what is it used for?
A bipolar transistor can amplify signals or switch suitable loads. Makers use it for transistor switching with suitable resistor.
Small load switching and signal stages
Semiconductor devices control or steer current. Safe use requires exact polarity, voltage/current ratings and thermal limits.
Key specifications
| Diode or transistor spec | Value |
|---|---|
| Type | NPN bipolar transistor |
| Max voltage | 40 V collector-emitter (2N2222A) |
| Max current | 600 mA collector |
| Key figure | Gain hFE 100 to 300 at 150 mA |
| Package | TO-92 (or TO-18 metal can) |
| Pin order | PN2222A: E-B-C; P2N2222A: C-B-E (flat face toward you). Check yours. |
Pinout
How to use it
Switch loads up to a few hundred mA from a GPIO: load from supply to collector, emitter to ground, 1 kΩ into the base. Add a diode across inductive loads.
// D3 → 1 kΩ → base. Buzzer or relay between 5 V and collector.
void setup() { pinMode(3, OUTPUT); }
void loop() { digitalWrite(3, HIGH); delay(300); digitalWrite(3, LOW); delay(700); }Applications
Builds that use it
Door open notifier
Uno DPDT relay motor reverser
Transistor switch comparison lab
Long interval timer with a CD4060
Compass belt with vibration
Silent reminder wristband
Transistor curve tracer
Universal IR remote recorder
Alternatives
- MOSFET AO3400ALogic-level MOSFET, less loss at higher current
- PNP Transistor 2N2907PNP partner for high-side switching
Common questions
What is the NPN Transistor 2N2222 used for?
In products: small load switching and signal stages. In maker projects: transistor switching with suitable resistor.
How does the NPN Transistor 2N2222 work?
Semiconductor devices control or steer current. Safe use requires exact polarity, voltage/current ratings and thermal limits.
What can I use instead of the NPN Transistor 2N2222?
MOSFET AO3400A and PNP Transistor 2N2907.
