Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

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

Image of 2N3904 NPN BJT Transistor
Cirkit Designer LogoDesign 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!
NPN Transistor-Based Voltage Measurement Circuit with Dual Power Supplies
Image of lab9: A project utilizing 2N3904 NPN BJT Transistor in a practical application
This circuit is a simple NPN transistor switch configuration powered by two power supplies. It includes resistors to limit current and multimeters to measure voltage and current at various points in the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Transistor-Based Signal Modulation Circuit with AC/DC Power Integration
Image of PPPPP: A project utilizing 2N3904 NPN BJT Transistor in a practical application
This circuit appears to be a transistor-based switching or amplification system powered by a 12v battery, with an AC supply possibly for signal input or additional power. It includes filtering through ceramic capacitors and uses resistors for biasing the transistors. The presence of both PNP and NPN transistors suggests a push-pull configuration or a form of signal modulation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Transistor-Based LED Control Circuit with Capacitors and Resistors
Image of FLIP-FLOP CKT.: A project utilizing 2N3904 NPN BJT Transistor in a practical application
This circuit is a dual-transistor LED driver with two NPN transistors controlling two LEDs (one red and one blue). The transistors are configured to switch the LEDs on and off, with resistors and capacitors used for biasing and stabilization.
Cirkit Designer LogoOpen Project in Cirkit Designer
NPN Transistor-Based Signal Interface with Relimate Connectors
Image of Mini cross: A project utilizing 2N3904 NPN BJT Transistor in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 lab9: A project utilizing 2N3904 NPN BJT Transistor in a practical application
NPN Transistor-Based Voltage Measurement Circuit with Dual Power Supplies
This circuit is a simple NPN transistor switch configuration powered by two power supplies. It includes resistors to limit current and multimeters to measure voltage and current at various points in the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of PPPPP: A project utilizing 2N3904 NPN BJT Transistor in a practical application
Transistor-Based Signal Modulation Circuit with AC/DC Power Integration
This circuit appears to be a transistor-based switching or amplification system powered by a 12v battery, with an AC supply possibly for signal input or additional power. It includes filtering through ceramic capacitors and uses resistors for biasing the transistors. The presence of both PNP and NPN transistors suggests a push-pull configuration or a form of signal modulation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of FLIP-FLOP CKT.: A project utilizing 2N3904 NPN BJT Transistor in a practical application
Transistor-Based LED Control Circuit with Capacitors and Resistors
This circuit is a dual-transistor LED driver with two NPN transistors controlling two LEDs (one red and one blue). The transistors are configured to switch the LEDs on and off, with resistors and capacitors used for biasing and stabilization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Mini cross: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Signal amplification in audio and RF circuits
  • Switching low-power loads
  • Oscillator circuits
  • LED drivers
  • General-purpose low-power applications in analog and digital circuits

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:

  • Connect the emitter to ground.
  • Connect the load (e.g., an LED with a current-limiting resistor) between the collector and the positive voltage supply.
  • Use a resistor (typically 1kΩ to 10kΩ) to limit the base current.

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:

  • Connect the emitter to ground through a resistor.
  • Apply the input signal to the base through a coupling capacitor and a base resistor.
  • Connect the collector to the positive voltage supply through a load resistor.

Important Considerations

  • Base Resistor: Always use a resistor in series with the base to limit the base current and prevent damage to the transistor.
  • Power Dissipation: Ensure the transistor does not exceed its maximum power dissipation of 625mW.
  • Voltage Ratings: Do not exceed the maximum voltage ratings (e.g., 40V for VCEO).
  • Heat Management: If the transistor operates near its maximum ratings, consider adding heat dissipation measures.

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:

  • Connect the emitter to ground.
  • Connect the collector to one terminal of the LED. The other terminal of the LED connects to a 330Ω resistor, which is then connected to the 5V supply.
  • Connect the base to an Arduino digital pin (e.g., pin 9) through a 1kΩ resistor.

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.