{"id":5211,"date":"2026-08-01T05:41:47","date_gmt":"2026-08-01T05:41:47","guid":{"rendered":"https:\/\/test.pcbdesignlab.com\/?p=5211"},"modified":"2026-09-13T12:12:45","modified_gmt":"2026-09-13T12:12:45","slug":"como-usar-2n3904","status":"publish","type":"post","link":"https:\/\/www.pcbdesignlab.com\/es\/how-to-use-2n3904\/","title":{"rendered":"C\u00f3mo usar el transistor 2N3904"},"content":{"rendered":"<p>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.<\/p>\n<p>En los prototipos y dise\u00f1os heredados, el 2N3904 sigue funcionando cuando la disposici\u00f3n de pines, el margen de saturaci\u00f3n y los diodos de protecci\u00f3n 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 <a href=\"\/es\/bjt-vs-mosfet\/\">BJT vs. MOSFET<\/a>; meter and isolation habits before condemning a part are in <a href=\"\/es\/como-probar-un-transistor\/\">how to test a transistor<\/a>.<\/p>\n<h2>Pinout, Absolute Limits, and Honest Current<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<blockquote><p>Jellybean parts still need adult circuits.<\/p><\/blockquote>\n<h2>Biasing as Switch Versus Amplifier<\/h2>\n<p>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.<\/p>\n<p>Base resistors limit current and stabilize against excess drive. Pull-downs help keep off states defined when controllers float during reset.<\/p>\n<table>\n<thead>\n<tr>\n<td>Use mode<\/td>\n<td>Design focus<\/td>\n<td>Common failure<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Saturated switch<\/td>\n<td>Base current vs worst-case beta<\/td>\n<td>Linear-mode heating from weak Ib<\/td>\n<\/tr>\n<tr>\n<td>Amplifier<\/td>\n<td>Bias point and tempco<\/td>\n<td>Gain drift \/ distortion<\/td>\n<\/tr>\n<tr>\n<td>Inductive driver<\/td>\n<td>Clamp diode and SOA<\/td>\n<td>Avalanche or repeated overstress<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Layout and Protection Habits<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>Substitutions and Modern Alternatives<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>Example Switch Calculation Mindset<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>Keep spare base-emitter protection in hostile industrial IO environments where external wiring can couple abuse into the pin.<\/p>\n<h2>Interfaces, LEDs, and Small Digital Loads<\/h2>\n<p>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.<\/p>\n<p>Debounce and filtering on the base can tame noisy industrial inputs, but heavy filtering slows response. Match the network to the real signal speed.<\/p>\n<p>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.<\/p>\n<h2>PCB Footprint and Assembly Notes<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>The Fixture Channel That Cooked 2N3904s Weekly<\/h2>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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 \u201c3904 is always fine,\u201d which is the line we still use when someone wants to delete the diode.<\/p>\n<h2>Use the 2N3904 Where Its Limits Fit<\/h2>\n<p>Los BJT de la familia 2N3904 demuestran su valor en conmutaci\u00f3n de baja corriente y etapas discretas sencillas, siempre que el dise\u00f1o en saturaci\u00f3n, las protecciones y la disposici\u00f3n de pines sean rigurosos. Las cargas inductivas sin d\u00edodos de rueda libre, las bases flotantes durante el reinicio y las corrientes que aumentan progresivamente semana tras semana convierten a estos componentes gen\u00e9ricos en un consumo recurrente. Cuando exigen eficiencia, velocidad o corriente m\u00e1s altas, migrar a un MOSFET de peque\u00f1a se\u00f1al suele ser la mejor opci\u00f3n frente a soluciones improvisadas. La disposici\u00f3n de pines debe seguir figurando en los planos de fabricaci\u00f3n. Los errores de espejo en el encapsulado TO-92 siguen siendo una causa frecuente de p\u00e9rdida de paneles completos. Las tablas de l\u00edmites absolutos del fabricante y sus diagramas de pines son la autoridad, no los rumores de taller que afirman \u201cel 3904 siempre es v\u00e1lido\u201d.\u201d<\/p>\n<h2>Need Help Replacing Legacy BJT Stages?<\/h2>\n<p>Send the stage schematic, load details, and failure mode. We modernize drive safely or keep jellybean designs inside their SOA. Start with a <a href=\"\/es\/servicios\/diseno-de-placa-pcb\/\">Revisi\u00f3n de dise\u00f1o de PCB<\/a>.<\/p>\n<h2>Preguntas frecuentes<\/h2>\n<h3>What is a typical use current for 2N3904?<\/h3>\n<p>Stay well under absolute maximum continuous ratings with thermal margin; many practical switch uses are in the tens of mA unless carefully designed.<\/p>\n<h3>Can I drive a relay coil directly?<\/h3>\n<p>Only within current limits and with a catch diode. Many coils need a stronger driver.<\/p>\n<h3>Why does beta matter in saturation design?<\/h3>\n<p>You size base current using worst-case beta, not the friendly datasheet highlight.<\/p>\n<h3>Is 2N3906 the PNP complement?<\/h3>\n<p>Often used as such, but always verify ratings and pinout for the exact parts.<\/p>\n<h3>When should I migrate the stage to a MOSFET?<\/h3>\n<p>When current, heat, or drive power make the BJT the awkward part.<\/p>\n<h2>Lectura relacionada<\/h2>\n<ul>\n<li><a href=\"\/es\/bjt-vs-mosfet\/\">BJT vs. MOSFET<\/a><\/li>\n<li><a href=\"\/es\/como-probar-un-transistor\/\">C\u00f3mo probar si un transistor est\u00e1 da\u00f1ado<\/a><\/li>\n<li><a href=\"\/es\/guia-de-diseno-de-transistores-mosfet\/\">Gu\u00eda de dise\u00f1o de MOSFET y transistores<\/a><\/li>\n<li><a href=\"\/es\/principio-y-aplicaciones-del-resistor-de-carga\/\">Resistencia de carga: principio y aplicaciones<\/a><\/li>\n<li><a href=\"\/es\/tipos-de-mosfets\/\">Tipos comunes de MOSFET<\/a><\/li>\n<li><a href=\"\/es\/nmos-vs-pmos\/\">NMOS vs PMOS<\/a><\/li>\n<li><a href=\"\/es\/solucionar-problemas-de-fallas-en-mosfet-e-igbt\/\">Soluci\u00f3n de problemas de fallas en MOSFET e IGBT<\/a><\/li>\n<li><a href=\"\/es\/fundamentos-de-conmutacion-de-mosfet\/\">Fundamentos de conmutaci\u00f3n de MOSFET<\/a><\/li>\n<\/ul>\n<h2>Referencias<\/h2>\n<ol>\n<li>Infineon \u2013 MOSFET application notes \/ power MOSFET basics: <a href=\"https:\/\/www.infineon.com\/cms\/en\/product\/power\/mosfet\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.infineon.com\/cms\/en\/product\/power\/mosfet\/<\/a><\/li>\n<li>Texas Instruments \u2013 Fundamentos de los circuitos de controladores de puerta de MOSFET e IGBT (SLUA618): <a href=\"https:\/\/www.ti.com\/lit\/ml\/slua618\/slua618.pdf\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ti.com\/lit\/ml\/slua618\/slua618.pdf<\/a><\/li>\n<li>Texas Instruments \u2013 Gate driver resources: <a href=\"https:\/\/www.ti.com\/power-management\/gate-drivers\/overview.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ti.com\/power-management\/gate-drivers\/overview.html<\/a><\/li>\n<li>JEDEC \u2013 organizaci\u00f3n de est\u00e1ndares: <a href=\"https:\/\/www.jedec.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.jedec.org\/<\/a><\/li>\n<li>IPC \u2013 descripci\u00f3n general de las normas: <a href=\"https:\/\/www.ipc.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ipc.org\/<\/a><\/li>\n<li>IEC \u2013 Comisi\u00f3n Electrot\u00e9cnica Internacional: <a href=\"https:\/\/www.iec.ch\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.iec.ch\/<\/a><\/li>\n<li>Vishay \u2013 MOSFET application support hub: <a href=\"https:\/\/www.vishay.com\/en\/mosfets\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.vishay.com\/en\/mosfets\/<\/a><\/li>\n<li>onsemi \u2013 Power MOSFET technical documentation: <a href=\"https:\/\/www.onsemi.com\/products\/discrete-power-modules\/power-mosfets\" target=\"_blank\" rel=\"noopener\">https:\/\/www.onsemi.com\/products\/discrete-power-modules\/power-mosfets<\/a><\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>El 2N3904 es un BJT NPN que todav\u00eda se encuentra en montajes, l\u00f3gica de interconexi\u00f3n, accionamientos de LED y placas industriales heredadas. Este art\u00edculo cubre la asignaci\u00f3n de pines, los l\u00edmites absolutos, la polarizaci\u00f3n como conmutador frente a amplificador, h\u00e1bitos de layout, alternativas modernas y c\u00e1lculos de ejemplo para circuitos de conmutaci\u00f3n fiables.<\/p>","protected":false},"author":1,"featured_media":5445,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Use 2N3904 Transistor | PCBDesign Lab","rank_math_description":"The 2N3904 is a small NPN BJT that still shows up in fixtures, glue logic, LED drives, and legacy industrial boards.","rank_math_focus_keyword":"2N3904","rank_math_robots":"","rank_math_canonical_url":"","rank_math_facebook_title":"","rank_math_facebook_description":"","rank_math_twitter_title":"","rank_math_twitter_description":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","_yoast_wpseo_canonical":"","_yoast_wpseo_meta-robots-noindex":"","_yoast_wpseo_meta-robots-nofollow":"","_yoast_wpseo_opengraph-title":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_twitter-title":"","_yoast_wpseo_twitter-description":"","_aioseo_title":"","_aioseo_description":"","_aioseo_keywords":"","_aioseo_robots_default":"","_aioseo_robots_noindex":"","_aioseo_og_title":"","_aioseo_og_description":"","_aioseo_twitter_title":"","_aioseo_twitter_description":"","aiosp_title":"","aiosp_description":"","aiosp_keywords":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_analysis_target_kw":"","_seopress_robots_canonical":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_genesis_title":"","_genesis_description":"","_genesis_canonical":"","_genesis_noindex":"","_genesis_nofollow":"","slim_seo":"","footnotes":""},"categories":[15],"tags":[354,246,353],"class_list":["post-5211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pcb-design","tag-2n3904-transistor","tag-transistor-design","tag-use-2n3904"],"_links":{"self":[{"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/posts\/5211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/comments?post=5211"}],"version-history":[{"count":2,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/posts\/5211\/revisions"}],"predecessor-version":[{"id":6627,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/posts\/5211\/revisions\/6627"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/media\/5445"}],"wp:attachment":[{"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/media?parent=5211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/categories?post=5211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/es\/wp-json\/wp\/v2\/tags?post=5211"}],"curies":[{"name":"bp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}