BC547 vs 2N2222A
Two standard NPN transistors that are easy to put in the wrong way round.
The BC547 and the 2N2222A are two of the most widely used NPN small-signal transistors. The BC547 is common in Europe, the 2N2222A (in the TO-92 package also sold as PN2222A) in American schematics and Arduino tutorials. Both switch LEDs, relays and small loads from microcontroller pins and can replace each other in many circuits.
The big trap is the pin order. With the flat side facing you and the legs pointing down, the BC547 reads collector, base, emitter (C-B-E) from left to right. The 2N2222A in the TO-92 package is exactly the other way round: emitter, base, collector (E-B-C). The base stays in the middle, collector and emitter are swapped. If you fit the other type, you have to turn it by 180 degrees. Older 2N2222A parts in the metal TO-18 can have their own arrangement.
The ratings differ as well: the BC547 is rated for about 45 V and 100 mA collector current, the 2N2222A for about 40 V and much higher currents of several hundred milliamps. For a relay with a 150 mA coil current the BC547 is already too small. The table shows the pinout of both types from the pinout data.
The pinouts differ. Use the tables below to rewire the signals.
Overview from the pinout data
| Property | BC547 NPN General Purpose Transistor | 2N2222A / PN2222 NPN Bipolar Transistor |
|---|---|---|
| Manufacturer | onsemi / Fairchild / ST / Philips | onsemi / Fairchild / ST |
| Type | Chip | Chip |
| Compared pinout | TO-92 Package (Flat Face Front View) | TO-92 Package (Flat Face Front View) |
| Pins | 3 | 3 |
| Supply pins | – | – |
| Ground pins | 0 | 0 |
| Interfaces | – | – |
Pin by pin
1 of 3 pins have the same function at the same position.
| Pin | BC547 NPN General Purpose Transistor | 2N2222A / PN2222 NPN Bipolar Transistor | |
|---|---|---|---|
| 1 | C | E | differs |
| 2 | B | B | same |
| 3 | E | C | differs |
Verdict
For small currents up to about 100 mA both work, the BC547 just has to be turned around. For relays, motors or several LEDs the 2N2222A is the better choice thanks to its higher collector current.