{"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\/pt\/how-to-use-2n3904\/","title":{"rendered":"How to Use 2N3904 Transistor"},"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>Em m\u00f3dulos e placas legadas, o 2N3904 ainda funciona quando a disposi\u00e7\u00e3o dos pinos, a margem de satura\u00e7\u00e3o e os clampers s\u00e3o corretos, e falha semanalmente quando picos de bobina e bases flutuantes s\u00e3o ignorados. Os trade-offs da fam\u00edlia versus MOSFETs est\u00e3o em <a href=\"\/pt\/bjt-vs-mosfet\/\">BJT vs MOSFET<\/a>; meter and isolation habits before condemning a part are in <a href=\"\/pt\/como-testar-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>Falha comum<\/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>BJTs da classe 2N3904 se justificam em chaveamento de baixa corrente e est\u00e1gios discretos simples quando o projeto de satura\u00e7\u00e3o, os clampers e a disposi\u00e7\u00e3o dos pinos s\u00e3o rigorosos. Cargas indutivas sem diodo de retorno, bases flutuantes durante o reset e correntes que crescem semana a semana transformam componentes gen\u00e9ricos em consumo recorrente. Quando a efici\u00eancia, a velocidade ou a corrente aumentam, migrar para um MOSFET pequeno geralmente \u00e9 mais vantajoso do que contar com paralelismo. A disposi\u00e7\u00e3o dos pinos deve constar no desenho de montagem. Erros de simetria em encapsulamento TO-92 continuam sendo uma forma barata de perder um painel inteiro. As tabelas de m\u00e1ximos absolutos do fabricante e os desenhos de pinos s\u00e3o a autoridade, e n\u00e3o o \u201cjejum de bancada\u201d que diz \u201co 3904 sempre funciona\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=\"\/pt\/servicos\/design-de-placa-pcb\/\">revis\u00e3o do design de PCB<\/a>.<\/p>\n<h2>Frequently Asked Questions<\/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>Leitura relacionada<\/h2>\n<ul>\n<li><a href=\"\/pt\/bjt-vs-mosfet\/\">BJT vs MOSFET<\/a><\/li>\n<li><a href=\"\/pt\/como-testar-transistor\/\">Como testar se um trans\u00edstor est\u00e1 com defeito<\/a><\/li>\n<li><a href=\"\/pt\/guia-de-design-de-transistor-mosfet\/\">Guia de Projeto de MOSFETs e Transistores<\/a><\/li>\n<li><a href=\"\/pt\/principio-e-aplicacoes-do-resistor-de-carga\/\">Resistor de Carga: Princ\u00edpio e Aplica\u00e7\u00f5es<\/a><\/li>\n<li><a href=\"\/pt\/tipos-de-mosfets\/\">Tipos comuns de MOSFETs<\/a><\/li>\n<li><a href=\"\/pt\/nmos-versus-pmos\/\">NMOS vs PMOS<\/a><\/li>\n<li><a href=\"\/pt\/solucionar-falhas-em-mosfets-e-igbts\/\">Solu\u00e7\u00e3o de Problemas em Falhas de MOSFETs e IGBTs<\/a><\/li>\n<li><a href=\"\/pt\/fundamentos-de-chaveamento-de-mosfet\/\">Fundamentos de Comuta\u00e7\u00e3o de MOSFETs<\/a><\/li>\n<\/ul>\n<h2>Refer\u00eancias<\/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 circuitos de acionamento de porta para 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 organiza\u00e7\u00e3o de padr\u00f5es: <a href=\"https:\/\/www.jedec.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.jedec.org\/<\/a><\/li>\n<li>IPC \u2013 vis\u00e3o geral das normas: <a href=\"https:\/\/www.ipc.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ipc.org\/<\/a><\/li>\n<li>IEC \u2013 Comiss\u00e3o Eletrot\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>O 2N3904 \u00e9 um BJT NPN ainda encontrado em lumin\u00e1rias, l\u00f3gica de cola, drivers de LED e placas industriais legadas. Este artigo aborda pinagem, limites absolutos, polariza\u00e7\u00e3o como chave versus amplificador, h\u00e1bitos de layout, alternativas modernas e exemplos de c\u00e1lculo para circuitos de comuta\u00e7\u00e3o confi\u00e1veis.<\/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\/pt\/wp-json\/wp\/v2\/posts\/5211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/comments?post=5211"}],"version-history":[{"count":2,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/posts\/5211\/revisions"}],"predecessor-version":[{"id":6627,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/posts\/5211\/revisions\/6627"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/media\/5445"}],"wp:attachment":[{"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/media?parent=5211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/categories?post=5211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pcbdesignlab.com\/pt\/wp-json\/wp\/v2\/tags?post=5211"}],"curies":[{"name":"bem jogado","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}