Tool 07
Transistor Guide
Every kind of transistor a circuit designer meets, one page each: how it works, its curves to play with, basic circuits running live in a simulator, the design rules with numbers, and the lines of a real datasheet that matter, with the pinout as it sits on a breadboard.
What a transistor does
A transistor has a control terminal and two power terminals. A small signal on the control terminal sets how much current flows between the two others. That one idea serves two jobs: as a switch, the transistor is either fully off or fully on and turns a load on and off; as an amplifier, it sits in between, and a small change at the control makes a larger copy at the output.
The kinds differ in what the control is. In a bipolar transistor (BJT) a current into the base controls the current from collector to emitter. In a field-effect transistor (FET) a voltage on the gate controls a channel between drain and source, and the gate draws almost no current. The rest of the family are combinations and specialists: the IGBT puts a MOSFET gate in front of a bipolar output, GaN and SiC are field-effect transistors in new materials, the UJT is an old timing part.
Three questions for any transistor
- What turns it on? A current (BJT) or a voltage (FET, IGBT), and of which polarity, counted from the emitter or the source: N-type parts turn on with a positive control, P-type parts with a negative one.
- Is it on or off with nothing on the control? Most are off. A JFET and a depletion MOSFET conduct until the gate turns them off.
- What does fully on look like? A BJT keeps a small drop, , 0.05 to 0.4 V, that grows with the current. A MOSFET becomes a resistor, . An IGBT keeps a knee of about one diode drop plus a little resistance.
The same three regions, two vocabularies
| What it does | BJT name | FET name | Used as |
|---|---|---|---|
| Nothing flows | cutoff | cutoff | open switch |
| A current set by the control, nearly independent of the output voltage | active | saturation | amplifier, current source |
| Fully on: a small drop or a small resistance | saturation | triode, ohmic, or "linear" | closed switch |
The word "saturation" names opposite regions in the two families: the fully-on switch for a BJT, the current-source region for a FET. Datasheets and websites mix them up. This guide names a region by what it does, with the textbook name next to it.
The family
a page for eachBipolar
A current into the base controls the current from collector to emitter.
Field-effect
A voltage on the gate controls the current through a channel; the gate draws almost nothing.
Power and special
Hybrids built for high voltage and current, new materials, and an odd one out.
Normally on, normally off
interactiveWith the gate at the source voltage, , a JFET and a depletion MOSFET already conduct: they are normally on and need a gate voltage of the other polarity to turn off. An enhancement MOSFET, like a BJT, is normally off. The symbols say it: a solid channel line for normally on, a broken one for normally off.
- N-JFET on, 11.0 mA normally on
- Depletion N-MOSFET on, 11.0 mA normally on
- Enhancement N-MOSFET off normally off
At the JFET and the depletion MOSFET already carry current: a negative gate voltage is needed to turn them off. The enhancement MOSFET is off at 0 V and starts only above its threshold, here +2 V. The JFET curve stops near +0.5 V because its gate is a diode junction that conducts past that point; a MOSFET gate is insulated and can go either way.
Which transistor for the job
A small NPN (2N3904) with a base resistor, or a small N-MOSFET (2N7000, BSS138)
The NPN needs about of base current, the MOSFET a gate voltage well above its threshold: check at the gate voltage the pin really gives. A relay coil needs a flyback diode either way.
NPN bipolar transistorN-channel enhancement MOSFET 2N39042N7000
To try in the simulator: NPN switch lighting an LED.
Side by side
| Type | Controlled by | With no drive | Fully on | Typical drive | Typical range | Main trap |
|---|---|---|---|---|---|---|
| NPN | base current | off | 0.05 to 0.4 V | 0.7 V and into the base | milliamps to about 15 A (a 2N3904 0.2 A, a 2N3055 15 A) | spreads threefold |
| PNP | base current, out of the base | off | 0.05 to 0.4 V | base pulled 0.7 V below the emitter | as the NPN | a logic pin cannot turn off a PNP on a higher rail |
| Darlington | base current | off | about 0.7 to 2 V | 1.2 to 1.4 V on the base, tiny current | up to several amperes | high saturation voltage, heat |
| Phototransistor | light | off | , a few tenths of a volt | light on the junction | microamps to milliamps | slow with a large pull-up |
| N-JFET | gate voltage, negative | on | a resistance, tens to hundreds of ohms | between and 0 | milliamps | and spread widely |
| P-JFET | gate voltage, positive | on | a resistance | between 0 and | milliamps | all signs reversed |
| Depletion MOSFET | gate voltage, either sign | on | negative to turn off | milliamps, up to hundreds of volts | zero volts on the gate is on | |
| N-MOSFET | gate voltage, positive | off | , milliohms to ohms | 10 V standard, 4.5 V or 2.5 V logic-level | milliamps to hundreds of amperes | is not the on voltage |
| P-MOSFET | gate voltage, negative | off | , higher than an N part of the same size | gate 10 V below the source | up to tens of amperes | gate swing must stay within its rating |
| IGBT | gate voltage, positive | off | a knee, 1.5 to 2.5 V | 15 V on, 0 or negative off | 600 V to kV, tens to hundreds of amperes | tail current at turn-off |
| GaN, SiC | gate voltage | off | GaN 5 V, with 6 V the absolute maximum; SiC 15 to 20 V, negative off | 100 V to over 1 kV | narrow gate-voltage window | |
| UJT | emitter voltage reaching a fraction of the supply | off | a negative-resistance discharge | plus a diode drop | pulses | obsolete; a 555 does the job |
Reading a datasheet
Most datasheets follow the same layout, and two of their sections are often confused. Absolute maximum ratings are limits not to be exceeded even for an instant; running a part at them guarantees nothing. Electrical characteristics are what the part does, each line guaranteed only at the test condition printed next to it. "Typ" is a typical value, not a promise: a design uses min and max.
- The pinout drawing. The same part number can have different pinouts from different manufacturers, and the package drawing is the only reference.
- The voltage rating (, ), with margin for spikes.
- The on-state line at the conditions of the job: at the collector and base currents of the circuit, or at the gate voltage the driver really has.
- The gain or the threshold, with its spread: min at the current of the job; min and max, measured at a tiny current (often 250 µA or 1 mA), which is where the part only starts to conduct.
- The thermal resistance, to turn power into temperature: . The current rating on page one usually assumes a case held at 25 °C, which no breadboard does.
- The graphs: they show how every number moves with current and temperature, and the safe operating area of a power part.
The calculation that decides whether a switch survives, for a MOSFET:
An example with real numbers: a 2N7000 switching 75 mA from a 5 V pin. Its datasheet guarantees at V, mA and 25 °C; at 125 °C the resistance can be up to 1.8 times larger, some 9.5 Ω. So W, and with °C/W for its TO-92 the junction runs about 17 °C above the room: fine. At its 200 mA rating the 4.5 V line no longer applies, since it is tested at 75 mA, and even 9.5 Ω gives 0.38 W and some 120 °C of rise: time for a larger MOSFET.
On the bench: pinouts and a meter check
A multimeter on its diode range finds the junctions. A bipolar transistor reads like two diodes back to back: 0.5 to 0.7 V from the base to each of the other two pins (red lead on the base for an NPN, black for a PNP), nothing between collector and emitter. A power MOSFET shows its body diode, 0.4 to 0.7 V from source to drain for an N-channel part, and nothing else, unless the gate holds charge from the last touch: shorting gate to source first discharges it.
Two parts in the same TO-92 can have mirror-image pinouts: a 2N3904 is E-B-C seen from the flat face, a BC547 is C-B-E. The 2N7000 is S-G-D in TO-92, while the SOT-23 2N7002 in the same datasheet is G-S-D. The drawings below come from each manufacturer's datasheet.
tab: C
tab: D
tab: D
tab: D
tab: C
tab: C
tab: D
Circuits made of several transistors
Falstad's simulator, one at a timeMost real circuits use transistors in pairs or groups. These five building blocks run in the simulator, and each is the core of a larger circuit: the pair and its current mirror at the input of an op-amp, the push-pull at the output of most audio amplifiers, the multivibrator in an LED flasher, and the CMOS inverter in CMOS logic gates.
Current mirror
Q1 is wired as a diode: its collector feeds its own base, so 10 kΩ from 12 V sets about 1.1 mA through it. Q2 shares its base voltage and copies that current into whatever its collector is tied to, here a voltage set by a slider.
- Drag Collector voltage from 12 V down to 1 V and read the ammeter.
- Go under about 0.3 V and watch the copy fail.
What to see. Two matched transistors with the same carry the same collector current, so the output current is set by the 10 kΩ and not by what Q2 drives, down to the point where Q2 saturates. Real mirrors drift a little with (the Early effect) and need their two transistors at the same temperature, which is why they come on one chip.
Differential pair
Two NPNs share a 1 mA tail current from -12 V. One base gets a 10 mV sine, the other is grounded; each collector has 10 kΩ to 12 V.
- Compare the two collector scopes: same size, opposite phase.
What to see. The tail current is fixed, so whatever one transistor gains the other loses: the pair amplifies the DIFFERENCE between its two bases, gain about on each side, near 100 here. The same voltage on both bases would only move the emitters. That is the input stage of every op-amp.
Push-pull output: class B against class AB
Two complementary emitter followers (an NPN pushing, a PNP pulling) drive 100 Ω loads from +/-12 V with the same 5 V sine. On the left the bases are tied to the input (class B); on the right two diodes hold them 1.2 V apart (class AB).
- Compare the two output scopes, especially where the wave crosses zero.
What to see. A follower only conducts once its base is a past the emitter, so with tied bases neither transistor conducts while the input is within about 0.6 V of zero: a flat step at every zero crossing, crossover distortion, which the ear hears clearly. The two diodes pre-bias both transistors to the edge of conduction, and the step disappears. Real amplifiers add small emitter resistors so the idle current cannot run away with temperature.
Astable multivibrator
Two NPNs, each with an LED in its collector, each holding the other off through a capacitor: the oldest transistor oscillator, two LEDs taking turns.
- Watch the LEDs alternate and the base-emitter voltage of Q2 on the scope.
- Drag Timing resistor R_B1 to change how long one half lasts.
What to see. When Q1 switches on, its collector drops by about 5 V and the capacitor carries that step to the base of Q2, which goes negative and turns off. The base of Q2 then charges back up through its resistor; at about 0.6 V Q2 turns on and the roles swap. Each half lasts about 0.69 R C. The base swings to -4 V or so, close to the 5 to 6 V a base-emitter junction survives in reverse: at higher supplies a diode in each base is needed.
CMOS inverter
A P-MOSFET from 5 V and an N-MOSFET to ground, gates tied together as the input, drains tied together as the output. An ammeter reads the supply current.
- Drag Input voltage from 0 to 5 V and watch the output.
- Stop around 2.5 V and read the ammeter.
What to see. At either end one transistor is fully on and the other fully off: the output sits at a rail and no current flows from the supply, which is why CMOS logic draws almost nothing when it is not switching. In the middle both conduct at once and a current shoots through: every edge of a CMOS signal costs a little of it, and a slow input edge costs a lot.