Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use 2N3904 NPN BJT Transistor: Examples, Pinouts, and Specs

Image of 2N3904 NPN BJT TransistorDesign with 2N3904 NPN BJT Transistor in Cirkit Designer

Introduction

The 2N3904 is a general-purpose NPN bipolar junction transistor (BJT) widely used in electronic circuits for amplification and switching applications. Known for its low cost, reliability, and versatility, the 2N3904 is a popular choice for hobbyists and professionals alike. It is designed to handle low to medium current and voltage levels, making it suitable for a variety of small-signal applications.

Explore Projects Built with 2N3904 NPN BJT Transistor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of NPN Transistor-Based Signal Interface with Relimate Connectors: A project utilizing 2N3904 NPN BJT Transistor in a practical application
NPN Transistor-Based Signal Interface with Relimate Connectors

This circuit appears to be a simple transistor-based switching circuit with multiple NPN transistors and resistors, interfaced through relimate connectors. The transistors are likely used to control the flow of current through various parts of the circuit, possibly for switching or amplification purposes, with the relimate connectors providing external connections for power and signal lines.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Below are the key technical details of the 2N3904 transistor:

Parameter Value
Transistor Type NPN
Maximum Collector-Emitter Voltage (VCEO) 40V
Maximum Collector-Base Voltage (VCBO) 60V
Maximum Emitter-Base Voltage (VEBO) 6V
Maximum Collector Current (IC) 200mA
Maximum Power Dissipation (PD) 625mW
DC Current Gain (hFE) 30 to 300
Transition Frequency (fT) 300MHz
Package Type TO-92
Operating Temperature Range -55°C to +150°C

Pin Configuration

The 2N3904 transistor comes in a TO-92 package with three pins. The pinout is as follows:

Pin Number Pin Name Description
1 Emitter Current flows out of this pin
2 Base Controls the transistor's operation
3 Collector Current flows into this pin

Below is a diagram of the TO-92 package for reference:

   _______
  |       |
  |       |
  |_______|
   | | |
   1 2 3
   E B C

Usage Instructions

Using the 2N3904 in a Circuit

The 2N3904 transistor can be used in two primary modes: as a switch or as an amplifier.

1. Switching Mode

In switching mode, the transistor operates as an electronic switch. When a small current is applied to the base, it allows a larger current to flow between the collector and emitter. This is useful for controlling devices like LEDs or relays.

Example Circuit:

2. Amplification Mode

In amplification mode, the transistor amplifies a small input signal at the base to produce a larger output signal at the collector. This is commonly used in audio and RF circuits.

Example Circuit:

Important Considerations

Example: Controlling an LED with Arduino UNO

The 2N3904 can be used to control an LED with an Arduino UNO. Below is an example circuit and code:

Circuit Connections:

Arduino Code:

// Example code to control an LED using a 2N3904 transistor
const int ledPin = 9; // Pin connected to the base of the 2N3904 transistor

void setup() {
  pinMode(ledPin, OUTPUT); // Set the pin as an output
}

void loop() {
  digitalWrite(ledPin, HIGH); // Turn the LED on
  delay(1000);               // Wait for 1 second
  digitalWrite(ledPin, LOW);  // Turn the LED off
  delay(1000);               // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues

  1. Transistor Not Switching Properly

    • Cause: Insufficient base current.
    • Solution: Check the base resistor value. Ensure it allows enough current to flow into the base.
  2. Overheating

    • Cause: Exceeding the maximum power dissipation or current rating.
    • Solution: Reduce the load current or add a heat sink if necessary.
  3. No Output Signal

    • Cause: Incorrect pin connections or damaged transistor.
    • Solution: Verify the pin connections and replace the transistor if needed.
  4. LED Not Turning On

    • Cause: Incorrect resistor value or insufficient base current.
    • Solution: Check the resistor values and ensure the base current is adequate.

FAQs

Q: Can the 2N3904 handle high-power applications?
A: No, the 2N3904 is designed for low-power applications with a maximum collector current of 200mA and power dissipation of 625mW.

Q: Can I use the 2N3904 for audio amplification?
A: Yes, the 2N3904 is suitable for small-signal audio amplification applications.

Q: What is the maximum frequency the 2N3904 can handle?
A: The 2N3904 has a transition frequency (fT) of 300MHz, making it suitable for high-frequency applications.

Q: How do I test if my 2N3904 is working?
A: Use a multimeter in diode mode to check the base-emitter and base-collector junctions. Both should show a forward voltage drop (~0.6V to 0.7V) when tested in the correct polarity.