I’ll research the onsemi 2N3904TA datasheet, verify alternatives and ordering details, and create a cited Application and Usage Guide in the project files.
I found the manufacturer’s datasheet, but citation-backed extraction is still pending after two attempts. I’ll make that limitation explicit in the guide, distinguish sourced specifications from design examples, and avoid claiming any unverified replacement is drop-in compatible.
The onsemi 2N3904TA is a through-hole NPN bipolar junction transistor intended for general-purpose amplification and switching; its device identity is confirmed by the LCSC C258184 listing. A common schematic integration is a GPIO-controlled low-side switch for an indicator LED or another small load; the circuit below is an engineering example, not a manufacturer reference design.
Verification status — provisional draft, researched 6 October 2026. Manufacturer PDFs were located and web-extracted, but citation-backed datasheet extraction remained pending after two attempts. Each manufacturer specification below is therefore explicitly unverified pending a direct PDF check; public source...
Created the 2N3904TA Application and Usage Guide in project files, covering all seven requested sections, practical resistor calculations, alternatives, and source links.
The guide is provisional: citation-backed datasheet verification remains pending, and the exact lead pitch and distributor MOQ are unresolved; these limitations are explicitly marked before publication or design use.
The onsemi 2N3904TA is a through-hole NPN bipolar junction transistor intended for general-purpose amplification and switching; its device identity is confirmed by the LCSC C258184 listing. A common schematic integration is a GPIO-controlled low-side switch for an indicator LED or another small load; the circuit below is an engineering example, not a manufacturer reference design.
Verification status — provisional draft, researched 6 October 2026. Manufacturer PDFs were located and web-extracted, but citation-backed datasheet extraction remained pending after two attempts. Each manufacturer specification below is therefore explicitly unverified pending a direct PDF check; public source links identify the documents to check, not completed claim validation. Exact lead-form dimensions and drop-in replacement compatibility are unresolved. Do not release a PCB or substitution solely from this draft.
Absolute maximum; unverified; not the normal forward base-drive voltage
Continuous collector current, IC
200 mA
Absolute maximum; unverified; not a guaranteed low-loss switching current
Total device dissipation, PD
625 mW at TA = 25°C
Thermal limit; unverified
Power derating above 25°C
5.0 mW/°C
Thermal characteristic; unverified
Junction / storage temperature, TJ / TSTG
−55 to +150°C
Absolute limiting range; unverified; not an ambient-temperature guarantee
Junction-to-ambient thermal resistance, RθJA
200°C/W
Thermal characteristic; unverified; mounting conditions must be checked
Junction-to-case thermal resistance, RθJC
83.3°C/W
Thermal characteristic; unverified
Package
TO-92-3L, through-hole
Confirmed distributor identity in LCSC C258184; exact mechanical variant unresolved
Lead pitch / formed-lead geometry
Unresolved
Project description calls out 2.54 mm, whereas PDF web extraction reported 1.27 mm for CASE 135AR. Neither is approved as the required PCB hole pitch; inspect the drawing and purchased lead form directly.
Operating examples and characterized performance
Table
Parameter
Value / condition
Classification / verification
GPIO drive in the example
3.3 V or 5 V through a base resistor
Engineering example, not a transistor supply-voltage specification
Example collector load
10 mA LED current
Engineering design target, not a manufacturer recommendation
A verified recommended-operating-conditions table is not available from the pending extraction; this is not a claim that such information is absent from the PDF. Choose operating points with voltage, current and thermal margin, then validate across supply, temperature and component tolerance.
2. Pinout & Connections
The reported onsemi pin assignments below are unverified pending inspection of the manufacturer pin diagram and package drawings. Read the drawing's viewing direction; do not infer physical left-to-right order from a generic TO-92 image.
Table
Pin Number
Pin Name
Description
Best Practice
1 — unverified
E — Emitter
Low-side switch current return
For the circuit below, tie to load ground and GPIO ground. This GND connection is topology-specific, not universal for amplifier circuits.
2 — unverified
B — Base
Current-driven control terminal
Connect GPIO through a calculated base resistor; use a 47 kΩ base–emitter pull-down when the GPIO may be high impedance. These are engineering recommendations, not mandatory datasheet values.
3 — unverified
C — Collector
Switched load terminal
Connect to the load's low side. Add a correctly rated clamp for inductive loads and check off-state voltage including transients.
3. Standard Application Circuit
2N3904TA GPIO low-side LED switch
The following is an engineering example, contingent on checking the pinout above:
Text
+VLOAD ── RLED ── LED anode → cathode ── C
GPIO ── RB ───────────────────────── B
│
47 kΩ
│
GND ─────────────────────────────── E
Use a shared ground between the GPIO source and load supply. GPIO high supplies base current and turns the load on; GPIO low turns it off. The load rail may differ from the GPIO rail, provided all transistor ratings and the GPIO drive limits are satisfied.
Required passives: RB limits base current, RLED limits LED current, and the optional 47 kΩ base–emitter resistor establishes an off state during reset or disconnected control. For this worked example, use resistors rated at least 0.125 W; verify actual dissipation and temperature derating in the final design.
Base-resistor calculation for 3.3 V and 5 V GPIO
Use a forced current gain of 10 as an engineering design assumption, consistent with the reported saturation-test ratio IC/IB = 10, not the forward-active hFE. For a 10 mA load, target approximately 1 mA transistor base current.
For a nominal illustrative calculation, assume VBE,design = 0.85 V and RBE = 47 kΩ. The 0.85 V input is a provisional, unverified reported 25°C test limit from onsemi Electrical Characteristics, not a guaranteed all-temperature design bound.
Table
Nominal GPIO voltage
Calculated RB,max
Example RB
Approximate resulting transistor base current
3.3 V
(3.3 − 0.85)/(1 mA + 0.85/47 kΩ) ≈ 2.41 kΩ
2.2 kΩ
(3.3 − 0.85)/2.2 kΩ − 0.85/47 kΩ ≈ 1.10 mA
5 V
(5 − 0.85)/(1 mA + 0.85/47 kΩ) ≈ 4.08 kΩ
3.9 kΩ
(5 − 0.85)/3.9 kΩ − 0.85/47 kΩ ≈ 1.05 mA
These are nominal examples, not worst-case approved values. Recalculate using the MCU's guaranteed VOH at the required source current, resistor tolerance, and a validated VBE bound over temperature. Also check the maximum GPIO current with the lowest expected VBE. For a substantially larger load, consider a logic-level MOSFET rather than consuming excessive GPIO base current.
LED series-resistor calculation
Assume a red LED with VF = 2.0 V, target ILED = 10 mA, and a provisional VCE(sat) = 0.2 V. The LED voltage is an example assumption; the transistor voltage is unverified, from the reported 10 mA / 1 mA test condition in onsemi Electrical Characteristics.
Text
RLED = (VLOAD − VF − VCE(sat)) / ILED
Table
Load rail
Calculated resistance
Example standard value
Nominal current at the stated assumptions
3.3 V
(3.3 − 2.0 − 0.2)/0.010 = 110 Ω
120 Ω
≈9.2 mA
5 V
(5 − 2.0 − 0.2)/0.010 = 280 Ω
300 Ω
≈9.3 mA
The resistor is set by VLOAD, not by the GPIO voltage. Check maximum LED current with VLOAD,max, VF,min, resistor tolerance, and the minimum switch drop; a maximum VCE(sat) is not a safe operand for calculating maximum LED current.
Inductive loads and decoupling
For a relay or solenoid, add a flyback diode across the coil: cathode to +VLOAD, anode to the collector. Select the diode for coil current, reverse voltage and turn-off energy; a simple diode clamp slows coil-current decay. Do not infer relay suitability from the 200 mA absolute maximum alone.
The transistor has no supply pin and does not require an IC-style pin decoupler. As a starting engineering recommendation for a switching load, place 100 nF ceramic rail-to-ground capacitance near the load loop and add bulk capacitance as required by supply impedance and load transients; the final values depend on the load, wiring and allowable rail ripple.
4. PCB Layout & Routing Guidelines
The following are engineering recommendations, not manufacturer-specific verified rules:
Resolve the lead form before footprint approval. Verify hole centers, lead cross-section, hole clearance, viewing direction and E/B/C pad mapping against the exact purchased part. The current project footprint has not been audited; its descriptive 2.54 mm pitch is not a verified mechanical fact.
Keep control and switching loops compact. Place RB and the base–emitter pull-down close to the transistor; keep noisy collector routing away from the base and sensitive analog nodes. Place the inductive clamp near the coil connection so the clamp-current loop is short.
Size collector/emitter copper for actual current and permitted temperature rise. At the 10 mA example current, voltage drop and signal integrity are usually more important than ampacity. No universal high-current trace width is specified here; use the actual copper weight, length and thermal constraints.
Check heat and solderability together. Use thermal reliefs where needed for hand/wave soldering of ground-connected pads, but ensure spokes carry the load current. Do not assume added copper gives a known TO-92 RθJA. Estimate PD ≈ VCE·IC + VBE·IB and TJ ≈ TA + PD·RθJA only after validating the thermal data and mounting assumptions.
Put rail capacitors beside the load-current loop. Return their ground locally to the emitter/load return without forcing switched current through sensitive signal-ground paths. This discrete low-side circuit has no differential pair, so differential-pair length matching and controlled impedance are not applicable.
5. Common Pitfalls / Things to Watch Out For
Assuming TO-92 or “2N3904” guarantees the same physical pin arrangement and pitch. Package viewing conventions, lead forms and vendor variants differ. Inspect the exact manufacturer drawing and map the symbol to the pads before assembly; the present pitch discrepancy is unresolved.
Sizing base drive from hFE or treating maximum ratings as a safe operating point. Forward-active current gain does not guarantee saturation. Calculate GPIO/base current, establish an off state during reset, check transistor dissipation and temperature, and protect inductive loads against turn-off overvoltage.
6. Popular Alternatives & Equivalents
Two real alternatives from other manufacturers were found in the Flux library. They are functional alternatives, not drop-in replacements; library existence is confirmed, but their manufacturer electrical details remain unverified because validated datasheet evidence is unavailable. No pin-and-footprint-compatible drop-in replacement was verified for this project.
Functionally similar only. Library confirms SOT523-family surface-mount geometry rather than TO-92; not footprint-compatible.
Manufacturer datasheet reports NPN, 40 V VCEO and 200 mA IC — unverified. Recheck thermal capability, saturation, pin mapping and GPIO drive; redesign the footprint.
Functionally similar only. SOT23/TO-236AB surface mount in the library; not footprint-compatible with TO-92.
Manufacturer datasheet reports NPN, 45 V VCEO, 100 mA IC, pins 1=B / 2=E / 3=C — unverified. Recheck gain group, saturation and thermal limits; remap pins and redesign the footprint.
Do not approve either alternative solely on matching polarity and voltage. For amplifiers, also compare gain spread, noise, capacitances and frequency behavior; for switches, compare base drive, VCE(sat), switching times and dissipation at the actual load.
7. Sourcing & Purchasing Guide
Table
Attribute
Details
Primary Distributors
A direct listing is confirmed at LCSC, C258184. DigiKey, Mouser and Arrow are purchasing channels to check, but exact current listings, stock and franchise status were not independently confirmed in this guide. Use the manufacturer's distributor directory to validate authorization.
Packaging Options
The onsemi ordering table reports 2N3904TA as 2,000 units / fan-fold, not a full reel — unverified pending validated extraction. It reports 2N3904TF/TFR as tape-and-reel and 2N3904BU as bulk; these are different ordering codes, not automatic purchasing equivalents. Distributor cut-tape availability for the exact TA code is unresolved.
Standard MOQ
Exact distributor MOQ unresolved. The reported 2,000-unit manufacturer pack size is unverified and is not the same as a distributor's minimum order. Do not assume a 1-unit cut-tape MOQ; confirm at checkout or request a quote.
Sourcing Advice
Specify onsemi 2N3904TA, not just “2N3904.” Confirm the suffix, lead form, packing orientation, lot traceability and assembly method. Prefer manufacturer-authorized/franchised distributors; avoid anonymous marketplace stock and require traceability for broker purchases. Recheck stock and pricing at purchase rather than relying on indexed search counts.
Sources
Primary documents located during research; revision/date values below are web-extracted and unverified until citation-backed extraction or direct visual inspection is complete:
onsemi, 2N3904/D — NPN General-Purpose Amplifier, reported Rev. 3, October 2024. Sections: Maximum Ratings, Thermal Characteristics, Electrical Characteristics, Ordering Information, Package Dimensions. Core specifications and ordering information remain pending validated extraction.
Nexperia, BC847x series datasheet, reported Rev. 13, 1 July 2022. Alternative's pinout/electrical compatibility remains pending validated extraction.
LCSC, onsemi 2N3904TA / C258184, distributor primary listing, accessed during research on 6 October 2026. Used to confirm commercial identity; not used as an unconditional ratings guarantee.
Outstanding verification before publication or design release: validate all marked datasheet values and revisions, visually resolve the exact TA lead-form/hole-pitch discrepancy, confirm manufacturer-authorized purchase channels and distributor MOQ, and independently check any proposed substitution. No schematic, footprint or PCB was changed by this guide.