Resumen
El 2N3904 es un BJT NPN que todavía se encuentra en montajes, lógica de interconexión, accionamientos de LED y placas industriales heredadas. Este artículo cubre la asignación de pines, los límites absolutos, la polarización como conmutador frente a amplificador, hábitos de layout, alternativas modernas y cálculos de ejemplo para circuitos de conmutación fiables.
The 2N3904 is a small NPN BJT that still shows up in fixtures, glue logic, LED drives, and legacy industrial boards. Using it well means respecting current limits, pinout, and saturation rather than treating it as an indestructible jellybean.
En los prototipos y diseños heredados, el 2N3904 sigue funcionando cuando la disposición de pines, el margen de saturación y los diodos de protección son correctos; pero falla semanalmente cuando se ignoran los picos de bobina y las bases flotantes. Las compensaciones entre familias respecto a los MOSFET se detallan en BJT vs. MOSFET; meter and isolation habits before condemning a part are in how to test a transistor.
Pinout, Absolute Limits, and Honest Current
Confirm the pinout for your exact package and manufacturer drawing. TO-92 variants are easy to reverse on a rushed layout. Collector current and power dissipation limits are small compared with power FETs; continuous currents should stay comfortably inside the curve with temperature derating.
Vceo and other voltage ratings must exceed the real rail with spike headroom. A 2N3904 across an unclamped inductive load is a short science experiment.
Jellybean parts still need adult circuits.
Biasing as Switch Versus Amplifier
As a switch, provide enough base current to saturate at your collector current with margin across temperature and beta spread. As an amplifier, bias in the linear region with attention to gain variation and thermal drift. Do not copy a switch bias network into an analog stage and hope.
Base resistors limit current and stabilize against excess drive. Pull-downs help keep off states defined when controllers float during reset.
| Use mode | Design focus | Common failure |
| Saturated switch | Base current vs worst-case beta | Linear-mode heating from weak Ib |
| Amplifier | Bias point and tempco | Gain drift / distortion |
| Inductive driver | Clamp diode and SOA | Avalanche or repeated overstress |
Layout and Protection Habits
Even small BJTs deserve short loops when switching inductive clamps or driving relays with snubbers. Place catch diodes correctly. Keep high dv/dt nodes away from sensitive analog traces if the 2N3904 is part of a noisy driver.
Decouple local supplies when the stage shares a rail with a microcontroller that resets under dips. A tiny transistor can still yank a weak 5 V island.
Substitutions and Modern Alternatives
MMBT3904 style SOT-23 parts are common SMT cousins; verify pinout and ratings, not only the 3904 name. When currents climb, migrating to a small MOSFET often reduces drive power and heat.
If you keep the BJT for cost, freeze base network values and clamp parts on the BOM so a fixture build cannot silently delete protection.
Example Switch Calculation Mindset
If you need 50 mA collector current and you design for a pessimistic beta of 50 in saturation with extra margin, base current sizing becomes intentional rather than a random 10k guess. Then check package dissipation at the resulting Vce during switching or faults.
Indicator LEDs, small relays, and logic buffers are classic fits. PWM into inductive coils without clamps is not. If the fixture specification keeps growing current, schedule the MOSFET migration before the next reel of 2N3904 arrives as a cry for help.
Keep spare base-emitter protection in hostile industrial IO environments where external wiring can couple abuse into the pin.
Interfaces, LEDs, and Small Digital Loads
Driving LEDs from a MCU through a 2N3904 is classic: size collector resistor for current, base resistor for saturation, and remember LED strings reverse any casual assumptions about voltages. For open-collector style logic to higher voltage rails, check Vceo and power in the on state.
Debounce and filtering on the base can tame noisy industrial inputs, but heavy filtering slows response. Match the network to the real signal speed.
If multiple 2N3904 channels switch together on a dense connector, watch ground bounce in the fixture. Even small transistors can sum into an ugly return spike.
PCB Footprint and Assembly Notes
TO-92 needs sensible hole sizes and support so legs do not fatigue. SOT-23 3904 cousins need correct pin 1 identification on silk. Wave-solder fixtures that bend TO-92 leads can introduce intermittent opens that look like ghost firmware bugs.
Mark polarity and pin function on assembly drawings for legacy boards where the silkscreen is gone after years of cleaning. Service teams will thank you.
If the stage is near high humidity or conformal coat, confirm the coat process does not bridge tight base nodes in ways that change bias conditions.
The Fixture Channel That Cooked 2N3904s Weekly
A test fixture ate 2N3904s weekly on small solenoid channels. No proper clamp diodes, and base drive could float into a linear region when the host expander reset.
Collector voltage at turn-off showed inductive spikes leaning on breakdown behavior instead of a catch path. Missing base pull-downs on shared, poorly sequenced control rails made it worse.
Catch diodes landed at the loads, base levels got defined through reset, and the package received a bit more copper. Reel consumption fell off a cliff after those three changes landed together in our fixture ECO.
In our notes, jellybean BJTs still need adult clamps and bias. Family folklore is not SOA. Manufacturer absolute-maximum and pinout drawings stay the authority, not “3904 is always fine,” which is the line we still use when someone wants to delete the diode.
Use the 2N3904 Where Its Limits Fit
Los BJT de la familia 2N3904 demuestran su valor en conmutación de baja corriente y etapas discretas sencillas, siempre que el diseño en saturación, las protecciones y la disposición de pines sean rigurosos. Las cargas inductivas sin díodos de rueda libre, las bases flotantes durante el reinicio y las corrientes que aumentan progresivamente semana tras semana convierten a estos componentes genéricos en un consumo recurrente. Cuando exigen eficiencia, velocidad o corriente más altas, migrar a un MOSFET de pequeña señal suele ser la mejor opción frente a soluciones improvisadas. La disposición de pines debe seguir figurando en los planos de fabricación. Los errores de espejo en el encapsulado TO-92 siguen siendo una causa frecuente de pérdida de paneles completos. Las tablas de límites absolutos del fabricante y sus diagramas de pines son la autoridad, no los rumores de taller que afirman “el 3904 siempre es válido”.”
Need Help Replacing Legacy BJT Stages?
Send the stage schematic, load details, and failure mode. We modernize drive safely or keep jellybean designs inside their SOA. Start with a Revisión de diseño de PCB.
Preguntas frecuentes
What is a typical use current for 2N3904?
Stay well under absolute maximum continuous ratings with thermal margin; many practical switch uses are in the tens of mA unless carefully designed.
Can I drive a relay coil directly?
Only within current limits and with a catch diode. Many coils need a stronger driver.
Why does beta matter in saturation design?
You size base current using worst-case beta, not the friendly datasheet highlight.
Is 2N3906 the PNP complement?
Often used as such, but always verify ratings and pinout for the exact parts.
When should I migrate the stage to a MOSFET?
When current, heat, or drive power make the BJT the awkward part.
Lectura relacionada
- BJT vs. MOSFET
- Cómo probar si un transistor está dañado
- Guía de diseño de MOSFET y transistores
- Resistencia de carga: principio y aplicaciones
- Tipos comunes de MOSFET
- NMOS vs PMOS
- Solución de problemas de fallas en MOSFET e IGBT
- Fundamentos de conmutación de MOSFET
Referencias
- Infineon – MOSFET application notes / power MOSFET basics: https://www.infineon.com/cms/en/product/power/mosfet/
- Texas Instruments – Fundamentos de los circuitos de controladores de puerta de MOSFET e IGBT (SLUA618): https://www.ti.com/lit/ml/slua618/slua618.pdf
- Texas Instruments – Gate driver resources: https://www.ti.com/power-management/gate-drivers/overview.html
- JEDEC – organización de estándares: https://www.jedec.org/
- IPC – descripción general de las normas: https://www.ipc.org/
- IEC – Comisión Electrotécnica Internacional: https://www.iec.ch/
- Vishay – MOSFET application support hub: https://www.vishay.com/en/mosfets/
- onsemi – Power MOSFET technical documentation: https://www.onsemi.com/products/discrete-power-modules/power-mosfets



