The 2N3904 is a general-purpose NPN bipolar junction transistor (BJT) widely used in electronic circuits for switching and amplification purposes. Known for its low power consumption, high-speed performance, and reliability, the 2N3904 is a versatile component suitable for a variety of applications. It is commonly used in signal amplification, low-power switching, and digital logic circuits.
The 2N3904 is a cost-effective and readily available transistor, making it a popular choice for both hobbyists and professionals.
The following table outlines the key technical specifications of the 2N3904 transistor:
Parameter | Value | Description |
---|---|---|
Transistor Type | NPN | Current flows from collector to emitter when base is biased. |
Maximum Collector-Emitter Voltage (VCEO) | 40V | Maximum voltage between collector and emitter. |
Maximum Collector-Base Voltage (VCBO) | 60V | Maximum voltage between collector and base. |
Maximum Emitter-Base Voltage (VEBO) | 6V | Maximum voltage between emitter and base. |
Maximum Collector Current (IC) | 200mA | Maximum current through the collector. |
Power Dissipation (PD) | 625mW | Maximum power the transistor can dissipate. |
DC Current Gain (hFE) | 30–300 | Amplification factor (varies with current). |
Transition Frequency (fT) | 300MHz | Maximum frequency for small-signal operation. |
Package Type | TO-92 | Standard through-hole package. |
The 2N3904 transistor comes in a TO-92 package with three pins. The pinout is as follows:
Pin Number | Pin Name | Description |
---|---|---|
1 | Emitter (E) | Current flows out of the transistor. |
2 | Base (B) | Controls the transistor's operation. |
3 | Collector (C) | Current flows into the transistor. |
The pinout for the TO-92 package is shown below (flat side facing you):
_______
| |
| |
|_______|
| | |
E B C
The 2N3904 transistor operates as a current-controlled device. A small current applied to the Base (B) controls a larger current flowing between the Collector (C) and Emitter (E). Below are the steps to use the 2N3904 in a circuit:
Determine the Operating Mode:
Connect the Pins:
Choose a Base Resistor:
Test the Circuit:
Below is an example of using the 2N3904 to switch an LED on and off:
+5V ----> LED ----> 330Ω Resistor ----> Collector (C)
|
|
Emitter (E) ----> GND
|
|
Base (B) ----> 10kΩ Resistor ----> Digital Pin (e.g., Arduino)
The following code demonstrates how to use the 2N3904 transistor to control an LED with an Arduino UNO:
// Define the pin connected to the transistor's base
const int transistorBasePin = 9; // Digital pin 9
void setup() {
pinMode(transistorBasePin, OUTPUT); // Set the pin as an output
}
void loop() {
digitalWrite(transistorBasePin, HIGH); // Turn on the transistor (LED ON)
delay(1000); // Wait for 1 second
digitalWrite(transistorBasePin, LOW); // Turn off the transistor (LED OFF)
delay(1000); // Wait for 1 second
}
Issue | Possible Cause | Solution |
---|---|---|
Transistor does not turn on | Insufficient base current | Check the base resistor value and input voltage. |
Transistor overheats | Exceeding power dissipation limit | Reduce the load current or use a heatsink. |
LED does not light up | Incorrect pin connections | Verify the pinout and connections. |
Circuit behaves erratically | Noise or unstable input signal | Add a decoupling capacitor near the transistor. |
What is the maximum current the 2N3904 can handle?
Can the 2N3904 be used for high-power applications?
What is the typical base-emitter voltage (VBE)?
Can the 2N3904 be used with an Arduino?
The 2N3904 NPN BJT transistor is a versatile and reliable component for low-power switching and amplification applications. Its ease of use, availability, and compatibility with microcontrollers like Arduino make it an essential part of any electronics enthusiast's toolkit. By following the guidelines and best practices outlined in this documentation, you can effectively integrate the 2N3904 into your projects.