Transistors
A transistor lets a small signal control a large current. See its three terminals, follow 0.1 mA steering 10 mA, and watch it work as a switch, an amplifier and a logic gate.
In 30 seconds
A transistor is an electrically operated valve with three terminals. A small signal at the control terminal decides how much current flows between the other two.
Use the two extremes, fully off and fully on, and it is a switch. Use the range in between and it is an amplifier: a small wiggle going in comes out as a large one.
Chips are made of transistors used as switches. Two form a NOT gate, a few more form the other logic gates, and a processor contains billions of them.
Transistors, step by step
A gain of exactly 100 is a round figure; real gains vary from part to part. Steps 1 to 4 show an NPN bipolar transistor, steps 5 and 6 the MOSFETs used in chips, drawn with the simplified logic symbol.
- Step 1: Three terminals. A transistor has three legs. The main current runs through two of them, here from the collector to the emitter. The third, the base, is the control: a small current into the base decides how much current the other two may carry. It is a valve for electricity, worked by electricity.
- Step 2: Small in, large through. Give this transistor a base current of 0.1 mA and it lets 100 times as much, 10 mA, flow from collector to emitter. That factor is its current gain. The base current here comes from 5 V through a 43 kΩ resistor; the base itself keeps about 0.7 V, so Ib = 4.3 V ÷ 43 kΩ = 0.1 mA.
- Step 3: Job 1: a switch. Use only the two extremes and the transistor is a switch with no moving parts. No base current: no path, lamp off. Enough base current: the path conducts fully, lamp on. This is how a weak signal, such as the output pin of a small computer, turns on something that needs far more current than the pin can give.
- Step 4: Job 2: an amplifier. Hold the transistor part-way on and it becomes an amplifier. A small wiggle in the base current, such as the signal from a microphone, appears as the same wiggle a hundred times larger in the collector current. The extra power comes from the supply; the transistor only steers it.
- Step 5: The kind inside chips. Chips use a different transistor, the MOSFET, with a gate, a source and a drain. The gate is a conducting plate sitting on a very thin insulator. A voltage on it pulls electrons into a thin channel underneath, which links source to drain. It is controlled by voltage, and almost no current flows into the gate.
- Step 6: The building block of chips. Stack a transistor that switches on for a low input above one that switches on for a high input, and the output is always the opposite of the input: a NOT gate. A few more make AND and OR gates; gates make adders and memory. A modern processor packs billions of these switches onto one chip.
Try it yourself
Learn this first
Learn next
- Logic gates (AND, OR, NOT, XOR)NOT, AND, OR and XOR as truth tables, and how NAND gates alone can build them all. Beginner
- How computer memory stores bitsHow SRAM, DRAM and flash cells each hold one bit, and how an address finds it. Intermediate
- How chips are made (photolithography)Printing billions of transistors with light, one layer at a time. Advanced
Spotted a mistake on this page?