Electronics and computer hardware
From a relay to a stored-program computer: what makes a switch compute, diodes and transistors, logic, memory, the processor, and how chips are made, each with the numbers that decide it.
Home: Electronics and computing, Level 6 · Logic, level 1 of 1 in its track. Serves 5 steps.
A computer is switches wired so that their outputs set other switches. This page covers what makes a device a usable switch; how relays, valves and transistors do it; how switches become logic and memory; how logic becomes a processor that runs stored programs; and how transistors are made. The scale runs from Zuse's Z3 of 1941, about 2,600 relays, through the Intel 4004 of 1971, 2,300 transistors on one chip, to 208 billion transistors in one processor package in 2024 (NVIDIA).
Where a rebuilding group stands. A workshop can build relay and valve computers from scratch (electronics, computing). A laboratory can make a germanium transistor or a 10 µm chip. Modern chips come only from a few companies at the end of a global supply chain (semiconductors). So the plan is: salvage and preserve chips, build to open standards so existing software runs, and climb the making ladder in parallel.
The physics of the junction is on physics. Binary arithmetic and Boolean algebra are on mathematics. What computers compute, and how signals and codes work, is on computer science. Read the hazards table before you set up the bench.
At a glance: the order of work
Each stage has a check. Do not move on until it passes.
| Stage | Do | Pass when |
|---|---|---|
| 1 · Set up the bench | Regulated supply, meter, oscilloscope, earthed mat and wrist strap, fume extraction, shorting stick | The supply holds its voltage within 1 % from no load to full load, and the oscilloscope's timebase agrees with a reference frequency |
| 2 · Salvage and sort | Strip equipment for boards, chips, transistors, relays and supplies; test and label each part | Every part in stores is tested, labelled with its number and value, and kept in anti-static packaging |
| 3 · Switches | Relay gates, a latch, then a relay adder | A 4-bit relay adder gives the right sum for all 256 input pairs in a written table |
| 4 · Semiconductor devices | Measure salvaged diodes and transistors; make a point-contact diode, then a germanium transistor | A home-made device rectifies, or shows current gain, on the bench instruments |
| 5 · Logic | Gates, flip-flops, a counter and a clocked register, from salvaged logic chips or discrete transistors | A counter runs 24 hours at its full clock rate with no miscount |
| 6 · Memory | Core memory, or salvaged static RAM, with its address decoding | Every location passes the all-zeros, all-ones, alternating and own-address tests |
| 7 · Processor and input/output | Datapath, control, and a serial line to a terminal | A test program uses every instruction, and its printed result matches a hand calculation |
| 8 · Software | A monitor, an assembler, then a compiler, each kept as printed source | The toolchain rebuilds itself from source, and the rebuilt programs have the same checksums |
| 9 · Make chips | Purify, grow a crystal, oxidise, pattern, dope, metallise, test | A wafer yields working transistors with measured threshold voltage, gain and yield |
What injures, and what destroys the work
Mains and battery hazards are on electricity. These are the ones particular to electronics and chip-making.
| Hazard | Where you meet it | The number | The rule |
|---|---|---|---|
| High voltage that stays after switch-off | Valve equipment, cathode-ray tubes, power supplies, camera flashes, microwave ovens | Valve supplies run at hundreds of volts and cathode-ray tubes at thousands; filter capacitors keep the charge | Discharge with an insulated shorting stick before touching; keep one hand out of the work; interlock the covers. Do not open a microwave oven: its capacitor and transformer kill |
| Hydrofluoric acid | Etching silicon dioxide and glass | It passes through skin; pain and visible damage can be delayed 12–24 hours (CDC), and fluoride absorbed through a burn can upset the heart's rhythm | Never work alone with it. On contact, flush with plenty of water, rub in 2.5 % calcium gluconate gel, and go to hospital every time, even without pain |
| Dopant and deposition gases | Diffusion and deposition furnaces | Arsine is immediately dangerous to life at 3 ppm (NIOSH), phosphine at 50 ppm (NIOSH); silane catches fire on contact with air | At small scale use solid and spin-on dopant sources, not gases. Gas work needs gas cabinets, detectors and extraction |
| Wafer-cleaning baths | Piranha solution (sulfuric acid with hydrogen peroxide) for removing organic residue | It heats itself past 100 °C and reacts violently with solvents | Mix fresh, in glass, in a fume hood; never add solvent; never seal the container |
| Solder flux fume | Every soldering bench | Rosin flux fume is a common cause of occupational asthma (HSE) | Extract the fume at the joint. Lead in solder is a swallowing hazard, not a vapour one at soldering heat: wash hands, and keep food off the bench |
| Lithium cells in salvage | Phones, laptops, power tools | A punctured, crushed or shorted cell can burn and give off toxic gas | Do not cut into battery packs; tape the terminals; store salvaged cells apart, in a metal box, away from anything that burns |
| Static, which harms the parts, not you | Handling any chip or MOSFET | You feel a discharge from about 3,000 V; factory static control is designed to protect parts that fail at 100 V | Earthed mat and wrist strap (the strap's built-in 1 MΩ resistor is there for your safety); parts stay in conductive bags until fitted |
Part 1The switch
What a switch needs in order to compute
A device can build a computer if it has four properties:
- Gain: one output can drive several inputs, so a signal can branch.
- A threshold: an input a little off its ideal value still gives a clean output, so noise does not build up over thousands of stages.
- One-way action: the output does not disturb the input.
- Inversion: some arrangement gives NOT.
A relay has all four through the gap between its pull-in and drop-out voltages. A valve and a transistor have them through their steep switching curves. The table compares the switches that matter. How valves are made is on electronics.
| Switch | Switches in | Power to hold it on | Life | Making it needs |
|---|---|---|---|---|
| General-purpose relay | 5–15 ms, then a few ms of contact bounce | About 0.2–0.5 W in the coil | About 10 million operations mechanically; about 100,000 at full rated load | Wire, iron, springs and silver contacts: tier 4 |
| Reed relay | About 0.5 ms | About 0.05–0.2 W | Over 1,000 million operations at signal level | Two nickel-iron reeds sealed in a glass tube |
| Valve (triode) | Under a microsecond in computer circuits | 1–5 W, mostly heating the cathode | Thousands to tens of thousands of hours; most failures at switch-on | Glassblowing, vacuum pumps, oxide cathodes: tiers 5–6 |
| Discrete transistor | Tens to hundreds of nanoseconds | Milliwatts | Decades, if kept below its rated temperature | A germanium or silicon crystal at parts-per-billion purity |
| Transistor on a modern chip | Picoseconds | Nanowatts on average; about a femtojoule or less per switch | Decades | A fab: everything in Making chips, below |
Relays: logic you can build and mend by hand
Parts: a coil on an iron core, an armature the coil pulls in against a spring, and contact springs the armature moves. A normally open contact closes when the coil is energised, a normally closed one opens, and a changeover contact does both. A relay pulls in above one voltage and drops out only below a much lower one: a common 12 V relay (Omron G5LE) must pull in by 9 V and must release by 1.2 V. That gap cleans up a noisy signal.
- AND: contacts in series. OR: contacts in parallel. NOT: a normally closed contact.
- Memory: a relay with one of its own normally open contacts wired across its set switch holds itself in until a reset contact breaks the circuit. It keeps one bit for as long as the power stays on.
- Adding: route the carry through changeover contacts that the two input bits have already set. The carry then runs the length of the adder through closed contacts in one relay operating time, instead of one per bit.
- Scale: Harry Porter's 8-bit relay computer has 415 identical four-pole 12 V relays, 8-bit data and 16-bit addresses, and draws about 160 W (documentation).
Rules that keep it working:
- A diode across every DC coil, cathode to the positive side. When the coil switches off, its collapsing field makes a spike of hundreds of volts that otherwise arcs and burns the contact driving it.
- Silver contacts need a minimum current, about 100 mA on many relays, to keep their surface clean. At logic currents of a few milliamps, use gold-plated or reed contacts.
- A contact rated for 250 V AC may be rated for only 30 V DC at the same current, because a DC arc does not go out by itself.
- Time each step for operate time plus bounce: about 20 ms per step for general-purpose relays.
Part 2Semiconductors
Doping and the junction: the numbers that matter
Silicon has 5 × 10²² atoms per cm³. Pure silicon at room temperature has only about 10¹⁰ free charge carriers per cm³ and barely conducts.
- n-type: replace a few atoms with phosphorus or arsenic, which have five outer electrons; each gives a free electron.
- p-type: replace them with boron, which has three; each leaves a hole that moves like a positive charge.
- Working doping runs from 10¹⁵ to 10²⁰ atoms per cm³: one dopant in 50 million silicon atoms, up to one in 500. An unplanned impurity at 20 parts per billion already equals the lightest doping. That is why purification decides everything (semiconductors).
Where p meets n, carriers cross over and leave a thin depleted layer with a built-in voltage. Under forward bias (p positive), current flows above about 0.6–0.7 V in silicon and 0.2–0.3 V in germanium. Under reverse bias, almost nothing flows until breakdown. At room temperature, each extra 60 mV of forward voltage multiplies the current by ten. At a fixed current the forward voltage falls about 2 mV per °C, which gives electronic thermometers and causes thermal runaway in transistors.
Natural crystals rectify with no purification. A fine wire pressed on galena (lead sulfide) or iron pyrite detects radio. This cat's-whisker detector was the first semiconductor device (radio).
| Material | Band gap at 300 K | Used for | Making it |
|---|---|---|---|
| Galena (lead sulfide) | 0.4 eV | Cat's-whisker radio detectors | A natural mineral, used as found |
| Germanium | 0.66 eV | The first transistors; low forward voltage; leaks heavily when hot, so junctions are kept below about 75–100 °C | By-product of zinc refining and coal ash; zone-refined in bars |
| Silicon | 1.12 eV | Nearly every chip, transistor and solar cell; junctions run to about 150 °C | Quartz and carbon, then the purification chain in Making chips |
| Gallium arsenide | 1.42 eV | Radio amplifiers in phones, red and infrared LEDs and lasers, space solar cells | Arsenic chemistry, a toxic process: salvage only |
| Silicon carbide (4H) | 3.26 eV | High-voltage power switches in electric-vehicle drives, solar inverters and fast chargers | Crystals grown above 2,000 °C: salvage only |
| Gallium nitride | 3.4 eV | Blue and white LEDs, compact power switches in chargers, radar amplifiers | Grown on sapphire or silicon: salvage only |
Diodes: kinds and their numbers
A diode is a single junction. Exceeding its maximum current or its reverse voltage is the usual way it dies, so record both with every salvaged diode.
Bench check with a meter's diode range: a good silicon diode reads about 0.5–0.7 V one way and open the other. A shorted one reads near zero both ways; a burnt-out one reads open both ways.
| Kind | Forward voltage | Used for | Watch for |
|---|---|---|---|
| Silicon rectifier (1N4001–1N4007) | 0.7–1.1 V at 1 A | Turning AC into DC; four make a bridge | The 1N4007 is rated 1 A and 1,000 V reverse. Too slow for fast switching supplies |
| Small-signal silicon (1N4148) | 0.6–0.7 V at a few mA | Logic, clamping, protection, suppressing small relay coils | About 200 mA continuous at most |
| Schottky | 0.2–0.45 V | Low-loss rectifiers in low-voltage supplies; blocking diodes on solar panels | Leaks more in reverse, and more again when hot |
| Zener | Conducts in reverse at its rated voltage | Voltage references and simple regulators | Zeners near 5.6 V drift least with temperature. Always use a series resistor |
| LED | Red about 1.8–2.2 V; blue, green and white about 2.8–3.4 V | Indicators, lighting, optical links | Always use a series resistor: R = (supply − forward voltage) ÷ current, with 5–20 mA for an indicator |
| Photodiode and solar cell | A silicon cell gives about 0.5–0.6 V open-circuit in sunlight | Light sensing, optical data links, power | Current is proportional to light; wire cells in series for voltage |
Transistors: bipolar and MOSFET
Bipolar transistor (BJT). A thin base layer sits between emitter and collector. A small base current controls a collector current β times larger: 100 to 300 for a small-signal part such as the 2N3904 at 10 mA. When on, the base–emitter junction sits at about 0.65 V, and a saturated switch drops about 0.1–0.3 V from collector to emitter. That 0.65 V falls 2 mV per °C, so a hot transistor draws more current, heats further and can run away. Put a resistor in the emitter and size the heatsink.
MOSFET. A gate electrode sits on a layer of oxide over the silicon between two doped regions. A gate voltage above the threshold pulls carriers into a thin channel under the oxide and connects source to drain. No steady current flows into the gate. That is why MOSFETs became the switch in every chip, and why they die of static: the oxide breaks down at tens of volts on a discrete part and at only a few volts on a modern chip. A power MOSFET switches tens of amps with milliohms of on-resistance. A logic-level MOSFET is fully on with 4.5 V or less on its gate.
The transistor a laboratory can make by hand is the germanium alloy-junction type. Beads of indium on both faces of a thin slice of n-type germanium are heated to around 500 °C, and they alloy into it to form the p-type emitter and collector.
Sodium wrecks MOS devices. A trace from skin or impure chemicals drifts through the oxide and shifts the threshold. This made 1960s MOS chips unreliable until clean processing cured it.
| Part | Controlled by | Key numbers | Use it for |
|---|---|---|---|
| Small-signal BJT (2N3904 NPN, 2N3906 PNP) | Base current | β 100–300; 200 mA and 40 V maximum | Amplifiers, oscillators, switching relays and LEDs |
| Power BJT (2N3055) | Base current | β 20–70 at 4 A; 15 A and 60 V maximum | Linear regulators, audio output stages, motor drives |
| Small-signal MOSFET (2N7000) | Gate voltage | Threshold 0.8–3 V; 200 mA and 60 V maximum | Switching and level-shifting from logic |
| Logic-level power MOSFET (IRLZ44N) | Gate voltage | About 25 mΩ on-resistance with 5 V on the gate; 47 A and 55 V maximum | Switching motors, heaters and lamps from logic outputs |
| IGBT | Gate voltage | Hundreds to thousands of volts at tens to hundreds of amps | Inverters, motor drives, induction heating; salvage from solar inverters and drives |
Part 3Logic
CMOS gates: from transistors to a full adder
CMOS pairs a p-channel and an n-channel MOSFET so that in either steady state one of them is off. A CMOS gate draws current only while it switches. That is why a chip of billions of transistors can idle on milliwatts, and why CMOS, invented in 1963, replaced every other logic form.
- NAND takes 4 transistors and builds everything. NOT is a NAND with its inputs joined. AND is NAND followed by NOT. OR is a NAND of the two inputs inverted.
- Counts that size a design: an inverter is 2 transistors, a NAND or NOR 4, a full adder 28 in the standard mirror design, a static RAM bit 6, and a D flip-flop about 20.
- Each time a node charges and discharges, it uses energy C × V². Power is about activity × C × V² × frequency, so halving the voltage quarters the energy.
Why clock rates stopped rising. From the 1970s, each shrink let the voltage fall with the size, so power per unit area stayed constant (Dennard scaling, 1974). But a transistor cannot turn off more sharply than about 60 mV per tenfold change in current at room temperature. So supply voltages stalled near 0.7–1 V in the mid-2000s, and clock rates stalled at 3–5 GHz. Gains since then come from more processor cores, specialised circuits and new transistor shapes (Since 2000).
Logic chips you will salvage, and the wiring rules
Most salvaged logic chips are the 7400 family (numbered 74xx00 onwards) or the older 4000 family. Families can be mixed only where one's output voltages meet the other's input thresholds. The table gives them for a 5 V supply unless it says otherwise.
Wiring rules, each one a common fault:
- Leave no input floating. An open CMOS input drifts to mid-supply, where both transistors conduct: the chip heats, draws current and oscillates. Tie every unused input to the supply or to ground through 1–10 kΩ (TI SCBA004).
- Put a 100 nF ceramic capacitor across the supply pins of every chip, as close as the leads allow, and 10–100 µF where power enters the board.
- Debounce every switch. A mechanical contact bounces for milliseconds and is counted many times.
- Pass every input not timed by the clock through two flip-flops in series before using it. Otherwise a change that lands on a clock edge can leave a flip-flop undecided (metastable).
- Keep to the timing budget. The clock period must exceed the flip-flop's clock-to-output delay, plus the slowest logic path, plus the setup time. Measure the slowest path; do not guess it.
| Family | Supply | Input reads as 1 above | Output gives | Notes |
|---|---|---|---|---|
| 74LS (TTL) | 5 V ± 5 % | 2.0 V | 1 at 2.7 V or more; 0 at 0.5 V or less | Draws current even when idle; open inputs read as 1, but tie them anyway |
| 74HC (CMOS) | 2–6 V | About 0.7 × supply: 3.5 V at 5 V | Within about 0.1 V of each rail at light load | Cannot read a 74LS output reliably: use 74HCT there |
| 74HCT (CMOS) | 4.5–5.5 V | 2.0 V | Within about 0.1 V of each rail at light load | CMOS with TTL thresholds: the bridge from 74LS to 74HC |
| 74LVC (CMOS) | 1.65–3.6 V | 2.0 V at 3.3 V | Close to each rail | Inputs accept 5 V: the bridge from 5 V logic to 3.3 V parts |
| 4000 series (CMOS) | 3–15 V; many parts to 18 V | About 0.7 × supply | Close to each rail | Slow at 5 V, faster at higher supply; tolerant of rough supplies, so suits battery and control circuits |
Part 4Memory
Memory: kinds, speeds and how long each keeps data
Choose memory by what it must survive. Working memory must be fast; the archive must outlast its machines. Core memory and paper are the two kinds a small society can make. Everything else is salvaged, and copied before it fails.
- Flash loses its data when left unpowered. A worn consumer SSD need only hold its data for 1 year unpowered at 30 °C, and an enterprise SSD for 3 months (JEDEC JESD218). Retention roughly halves for every 5 °C warmer. Power up salvaged drives and copy them off now.
- Microcontroller flash lasts much longer. The ATmega328P in the Arduino Uno is rated to keep its program 20 years at 85 °C and 100 years at 25 °C, but for only 10,000 rewrites.
- DRAM forgets in milliseconds. The memory controller refreshes every row at least every 64 ms.
- Test every memory before trusting it. Write and read back all zeros, all ones, alternating patterns, and each location's own address, which catches faults in the address lines.
| Kind | A bit is | Access time | Keeps data unpowered | Wears out after | Source |
|---|---|---|---|---|---|
| Relay latch | A relay held in by its own contact | About 10 ms | No | About 10 million operations | Make (tier 4) |
| Magnetic core | A ferrite ring magnetised one way or the other | 1–10 µs per cycle | Yes, for years | No wear; reading erases the bit, which is rewritten | Make by hand (computing) |
| Static RAM (SRAM) | A 6-transistor flip-flop | About 1 ns on a processor chip; 10–100 ns as a separate chip | No | No wear | Salvage |
| Dynamic RAM (DRAM) | Charge on a tiny capacitor: 1 transistor per bit | Tens of nanoseconds | No: refreshed every 64 ms | No wear | Salvage |
| NAND flash (SSDs, memory cards, phones) | Charge trapped in an insulated layer | Tens of µs to read; writing and erasing are slower | Months to years, less when hot or worn | Roughly 50,000–100,000 rewrites for 1 bit per cell; 1,000–3,000 for 3 bits; a few hundred to 1,000 for 4 bits | Salvage |
| Hard disk | Magnetised grains on a platter | 5–10 ms to reach data | Years, stored cool and dry | Bearings and heads, not the data | Salvage |
| LTO tape | Magnetised patches on tape | Seconds to minutes to reach a file | Rated 30 years at 15–25 °C and 20–80 % humidity | Needs a working drive of the same generation | Salvage |
| Printed paper | Ink on a page | Minutes | Centuries on acid-free paper kept dry | Handling | Make (paper) |
Part 5The computer
A stored-program processor: the parts, and machines to measure against
The parts:
- a program counter, holding the address of the next instruction;
- an instruction register and decoder;
- a few registers;
- an arithmetic-logic unit: an adder plus AND, OR, XOR and shift;
- memory address and data paths;
- control: a state machine that steps through fetch, decode and execute, built from gates or from a small memory holding the steps (microcode);
- a clock, a reset that starts the counter at a known address, and input/output.
The instruction set can be small. Load, store, add, subtract, AND, OR, XOR, shift, jump, branch if zero or negative, and input/output are enough for any program, given enough memory.
Build to an open, existing instruction set rather than inventing one. RISC-V's base set, RV32I, has 40 instructions (RISC-V). It was ratified in 2019 and anyone may implement it free. The GCC and LLVM compilers and existing operating systems already target it, so a home-built RISC-V processor runs software nobody has to rewrite.
| Machine | Year | Switches | What it shows |
|---|---|---|---|
| Zuse Z3 | 1941 | About 2,600 relays | A programmable relay computer works |
| ENIAC | 1945 | 17,468 valves; about 150 kW | Valves are fast, and their failures dominate the work |
| Intel 4004 | 1971 | 2,300 transistors on one chip, with 10 µm lines | A 4-bit processor fits on one chip at a feature size a laboratory can reach (Intel) |
| MOnSter 6502 | 2016 | 3,218 discrete transistors on a 12 × 15 inch board | The 1975 6502 rebuilt transistor by transistor; it runs at about 50 kHz, a twentieth of the original's speed (project) |
| NVIDIA Blackwell | 2024 | 208 billion transistors on two chips in one package | Today's limit: a chip as large as the lithography field, then two joined at 10 TB/s |
Input, output and bootstrapping the software
The first input/output is a serial line: one wire each way. Each character goes as a start bit, 8 data bits and a stop bit, so 9,600 bits per second carries 960 characters a second. It comes straight from the telegraph and teleprinter, needs one shift register at each end, and every salvaged microcontroller and terminal speaks it.
Bootstrapping is a ladder of programs, each written with the one before:
- Toggle switches enter a short loader directly into memory, one word at a time.
- The loader reads in a monitor: tens to hundreds of bytes that examine and change memory and accept hexadecimal from the serial line.
- A hex loader, then an assembler, then a compiler follow, each assembled or compiled by the stage before.
Keep the whole chain as printed source with checksums. In 2023 GNU Guix rebuilt its whole software distribution from source, starting from a 357-byte program small enough to check by hand (Guix). Keep to that standard: a seed a person can verify, and everything above it rebuilt from source a person can read.
Part 6Build and test
What to salvage, and what each part gives you
A microcontroller is a complete computer on one chip: processor, program memory, RAM, timers and serial lines. Nearly every appliance made since the 1990s has at least one. The Arduino Uno's ATmega328P has 32 KB of program flash and 2 KB of RAM, and runs at 16 MHz. With a programmer, salvaged microcontrollers run new programs. Keep their datasheets on paper: without its pinout and instruction set, a chip cannot be used.
Order of salvage: first copy the data off drives and memory cards, because it is fading. Then take boards with processors and memory, then power supplies, transistors, relays and passive parts. Store them as on semiconductors.
| Source | Take | What it gives you |
|---|---|---|
| Desktop and laptop computers | Processor boards, memory, SSDs and disks, power supplies, fans | Complete computers, and regulated 3.3, 5 and 12 V supplies of hundreds of watts |
| Phones and tablets | Whole devices, cameras, screens | Low-power computers with radios, cameras and displays. Their batteries are a fire hazard |
| Routers, set-top boxes, printers | Main boards | Processors that run Linux, network chips and power supplies; printers also give stepper motors and their drivers |
| Washing machines, microwave ovens, cars, toys | Control boards | Microcontrollers, relays, power MOSFETs and transistors, sensors |
| Solar inverters, UPS units, motor drives | Power boards | IGBTs and power MOSFETs, large capacitors, current sensors, transformers |
| Old radios, televisions, test equipment | Valves, transformers, meters | Spares and patterns for valve electronics |
Ways to build a circuit
Soldering. Tin-lead 63/37 solder melts at a single temperature, 183 °C, so joints freeze cleanly. Lead-free SAC305 melts at 217–220 °C and needs a hotter iron. Run the tip at about 320–370 °C, heat pad and lead together for 2–3 seconds, and feed solder into the joint, not onto the iron. A good joint is a smooth, concave fillet that wets both pad and lead. A grey, grainy or ball-shaped joint is cold and will fail.
Etching your own boards needs copper-clad board, a resist pattern (printed toner or photoresist) and an etchant. Use ferric chloride, or cupric chloride, which air and hydrochloric acid regenerate so it can be used indefinitely. That suits a settlement with no supply of fresh chemicals.
| Method | Good for | Limits |
|---|---|---|
| Solderless breadboard | Trying a circuit in minutes | Contacts loosen and add stray capacitance: unreliable above a few MHz, and not for anything kept |
| Wire-wrap | Computer backplanes and logic prototypes that must last and change | Needs square posts, a wrapping tool and fine wire (30 AWG); a correct wrap is gas-tight and needs no solder |
| Soldered perfboard or stripboard | One-off circuits that must last | Slow to build; hard to change |
| Etched printed circuit board | Repeated builds and fast logic | Needs artwork, etchant and drilling; dense logic is hard on one-sided boards |
| Sockets for chips | Swapping salvaged and suspect chips | Cheap sockets corrode; turned-pin sockets last |
Symptom, cause, repair
Tools, in the order you need them:
- a multimeter;
- a logic probe, which you can build from two LEDs and a comparator;
- an oscilloscope with a bandwidth of at least 5 times the clock frequency. Showing a rise time tᵣ needs a bandwidth of about 0.35 ÷ tᵣ;
- for buses, a logic analyser, which a salvaged microcontroller can be programmed to be.
| Symptom | Likely cause | Repair |
|---|---|---|
| Random errors, worse as chips are added or the clock rises | Missing decoupling; ground bounce | 100 nF at every chip's supply pins; short, wide ground paths; a ground plane on a printed board |
| A chip runs warm, works when touched, or draws more current than expected | A floating CMOS input | Tie every unused input high or low through 1–10 kΩ |
| A counter steps several times per press | Switch bounce | Debounce with a latch, or an RC filter into a Schmitt-trigger input |
| Rare, unrepeatable faults where an outside signal enters | Metastability | Two flip-flops in series on every input not timed by the clock |
| Works at a slow clock, fails at full speed | Timing budget exceeded | Find the slowest path with the oscilloscope; shorten it, or lower the clock |
| A 74HC input misreads a 74LS output | Mismatched logic levels | Use 74HCT, or add a pull-up resistor |
| A chip dead after handling, or failing some time later | Static damage | Earthed mat and wrist strap; keep parts in conductive bags |
| Relay contacts pitted, welded or arcing | No coil suppression, or DC above the contact's DC rating | A diode across each coil; an RC snubber across contacts switching inductive loads; derate for DC |
| A transistor runs hot and its current creeps up | Thermal runaway | An emitter resistor; a larger heatsink; check the bias |
| Old equipment fails soon after switch-on | Dried-out electrolytic capacitors | Reform slowly through a resistor, or replace (semiconductors) |
Part 7Making chips
The chain from sand to chip
Every stage must succeed on every wafer, and a chip is only as good as its worst stage. The purification chemistry and its hazards are on semiconductors. Process recipes, etch rates and oxide-growth calculators are in the BYU cleanroom pages under Further.
| Stage | What happens | The number that decides it | Who can do it |
|---|---|---|---|
| 1 · Metallurgical silicon | Quartz and carbon in an electric arc furnace | About 2,000 °C; 98–99 % pure | An industrial plant with large electric power |
| 2 · Electronic-grade polysilicon | Silicon made into trichlorosilane, distilled, and deposited back onto hot silicon rods (the Siemens process) | Rods at about 1,100 °C; 9 to 11 nines pure | A chemical industry |
| 3 · Single crystal | Czochralski growth: a seed dipped in molten silicon is pulled up slowly while rotating | Silicon melts at 1,414 °C; one dislocation or impurity spoils the ingot | A specialised plant. Zone-refining germanium is laboratory-scale |
| 4 · Wafers | The ingot is sawn into slices, lapped and polished to a mirror | A 300 mm wafer is 775 µm thick | A specialised plant; salvage or stockpile blank wafers |
| 5 · Oxide | The wafer is heated in oxygen or steam and grows silicon dioxide | 900–1,200 °C; the film's colour shows its thickness | A laboratory tube furnace |
| 6 · Photolithography | Coat with photoresist, expose through a mask, develop | Smallest feature: see Lithography, below | A laboratory, at micrometres |
| 7 · Etch | Remove material where the resist is open: buffered hydrofluoric acid for oxide, plasma for fine lines | A wet etch eats sideways as far as it eats down | Wet etching: a laboratory. Plasma: specialised equipment |
| 8 · Doping | Diffuse dopant in from a source at high temperature, or fire ions in (implantation) and anneal | Diffusion at 900–1,100 °C; depth grows with the square root of time | Diffusion: a laboratory. Implantation: specialised equipment |
| 9 · Gates, insulators and wiring | Deposit polysilicon or metal gates, insulating layers and metal wiring: aluminium in simple processes, copper in modern ones | Each layer aligned to the last within a fraction of the smallest feature | Evaporated aluminium: a laboratory vacuum chamber |
| 10 · Test and package | Probe each chip on the wafer, saw the wafer apart, bond wires to a package, test again | Yield: the share of chips that work | A laboratory, by hand |
Cleanliness: the barrier you cannot see
A particle bigger than a feature kills the circuit under it. Clean rooms are graded by particles per cubic metre of air. ISO class 5 allows 3,520 particles of 0.5 µm or larger; ordinary room air is around class 9, at 35,200,000: ten thousand times dirtier (ISO 14644-1). Modern fabs keep wafers in sealed carriers and enclosures cleaner still.
- Filtered air flows downward from HEPA filters across the whole ceiling, at slightly higher pressure than outside, so leaks blow outward.
- People are the main source of particles: wear full suits, hoods, masks and boots, and enter through a gowning room or air shower.
- Rinse with ultrapure water at 18.2 MΩ·cm, the resistivity of water with nothing dissolved in it.
- Use yellow light where photoresist is handled, because blue and ultraviolet light expose it.
- Keep bare skin away from wafers, both for particles and for sodium, which ruins MOS transistors.
What a laboratory can reach without a full clean room: a laminar-flow hood over the work gives class-5 air where it matters, and features of 5–10 µm tolerate the dust that remains. That is the scale of the 1971 Intel 4004, and of a 2021 home-garage chip with 100 transistors made on a 10 µm self-aligned polysilicon-gate process (Zeloof).
Lithography: the limit on feature size
The smallest half-pitch one exposure can print is about k₁ × λ ÷ NA. Here λ is the wavelength, NA is the lens's numerical aperture, and k₁ is a process factor that cannot go below 0.25 and is about 0.3 in production. Shorter light and wider lenses are the whole history of chip scaling. Below the single-exposure limit, features are split across two or four exposures (multiple patterning), at rising cost.
Node names stopped measuring anything in the mid-1990s. A "5 nm" process has a contacted gate pitch of 48 nm and a tightest metal pitch of 36 nm (IEEE Spectrum).
Making masks without a mask shop: draw the pattern large and reduce it photographically through a good lens, as early chip masks were made. Contact printing, with the mask pressed against the resist and ultraviolet light from a mercury lamp, reaches about 1–2 µm.
| Light | Wavelength | Typical NA | Half-pitch at k₁ = 0.3 | In production |
|---|---|---|---|---|
| Mercury lamp, i-line | 365 nm | 0.6 | About 180 nm | 1990s; still used for coarse layers |
| KrF excimer laser | 248 nm | 0.8 | About 90 nm | From the late 1990s |
| ArF excimer laser, dry | 193 nm | 0.93 | About 60 nm | 2000s |
| ArF, water immersion | 193 nm | 1.35 | About 43 nm; smaller by multiple patterning | From the late 2000s; still the workhorse |
| EUV | 13.5 nm | 0.33 | About 12 nm | Volume production since 2019 (TSMC) |
| High-NA EUV | 13.5 nm | 0.55 | About 7 nm; ASML states 8 nm | First production tools shipped in 2025 (ASML) |
Part 8Since 2000
What has changed since 2000
Each line is from its primary source.
| Result | Year | What it changed | Source |
|---|---|---|---|
| High-k metal gate | 2007 | Silicon dioxide gate insulation, thinned to 1.2 nm, leaked; a hafnium-based insulator with a metal gate replaced it | Intel, via Semiconductor Today |
| FinFET (tri-gate) | 2011 | The channel stands up as a fin with the gate on three sides, so small transistors turn off fully; Intel claimed under half the power of flat transistors at equal performance | Intel |
| EUV lithography in volume | 2019 | 13.5 nm light replaced several multiple-patterning exposures | TSMC |
| RISC-V base instruction set ratified | 2019 | An open, royalty-free instruction set that any group may implement, with compilers already written | RISC-V International |
| Open process design kit | 2020 | SkyWater and Google published the design rules and cell libraries of a manufacturable 130 nm process under the Apache 2.0 licence, so anyone can design a chip for it with open tools | SkyWater PDK |
| Gate-all-around transistors | 2022, 2025 | Stacked nanosheet channels with the gate on all sides: Samsung's 3 nm first, TSMC's N2 in volume production from late 2025 | Samsung, TSMC |
| Two-chip processors | 2024 | 208 billion transistors on two chips at the lithography field limit, joined at 10 TB/s to act as one | NVIDIA |
| HBM4 memory standard | 2025 | DRAM dies stacked beside the processor in one package: a 2,048-bit interface, up to 2 TB/s per stack | JEDEC |
| Backside power delivery | 2025 | Power wiring moved beneath the transistors, leaving the upper layers for signals; Intel 18A pairs it with gate-all-around transistors and entered high-volume production in Arizona | Intel |
| High-NA EUV | 2025 | 0.55-NA tools print 8 nm features in one exposure, 1.7 times smaller than earlier EUV | ASML |
Where to go next
This page covers what you are most likely to meet. It is not a field guide, and on identification that difference can kill you. These are the works that go further — chosen because they can be held offline.
Still to come
Illustrations carry a technique further than prose, but some things only move well. Recorded here rather than left implicit.
- A worked build: a 4-bit relay adder with its parts list, wiring diagram and test table
- A dimensioned drawing of a germanium alloy-junction transistor in section
- A photograph of a relay computer or relay adder in operation, with an open licence