Civilization101Blueprint

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.

StageDoPass when
1 · Set up the benchRegulated supply, meter, oscilloscope, earthed mat and wrist strap, fume extraction, shorting stickThe 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 sortStrip equipment for boards, chips, transistors, relays and supplies; test and label each partEvery part in stores is tested, labelled with its number and value, and kept in anti-static packaging
3 · SwitchesRelay gates, a latch, then a relay adderA 4-bit relay adder gives the right sum for all 256 input pairs in a written table
4 · Semiconductor devicesMeasure salvaged diodes and transistors; make a point-contact diode, then a germanium transistorA home-made device rectifies, or shows current gain, on the bench instruments
5 · LogicGates, flip-flops, a counter and a clocked register, from salvaged logic chips or discrete transistorsA counter runs 24 hours at its full clock rate with no miscount
6 · MemoryCore memory, or salvaged static RAM, with its address decodingEvery location passes the all-zeros, all-ones, alternating and own-address tests
7 · Processor and input/outputDatapath, control, and a serial line to a terminalA test program uses every instruction, and its printed result matches a hand calculation
8 · SoftwareA monitor, an assembler, then a compiler, each kept as printed sourceThe toolchain rebuilds itself from source, and the rebuilt programs have the same checksums
9 · Make chipsPurify, grow a crystal, oxidise, pattern, dope, metallise, testA 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.

HazardWhere you meet itThe numberThe rule
High voltage that stays after switch-offValve equipment, cathode-ray tubes, power supplies, camera flashes, microwave ovensValve supplies run at hundreds of volts and cathode-ray tubes at thousands; filter capacitors keep the chargeDischarge 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 acidEtching silicon dioxide and glassIt 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 rhythmNever 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 gasesDiffusion and deposition furnacesArsine is immediately dangerous to life at 3 ppm (NIOSH), phosphine at 50 ppm (NIOSH); silane catches fire on contact with airAt small scale use solid and spin-on dopant sources, not gases. Gas work needs gas cabinets, detectors and extraction
Wafer-cleaning bathsPiranha solution (sulfuric acid with hydrogen peroxide) for removing organic residueIt heats itself past 100 °C and reacts violently with solventsMix fresh, in glass, in a fume hood; never add solvent; never seal the container
Solder flux fumeEvery soldering benchRosin 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 salvagePhones, laptops, power toolsA punctured, crushed or shorted cell can burn and give off toxic gasDo 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 youHandling any chip or MOSFETYou feel a discharge from about 3,000 V; factory static control is designed to protect parts that fail at 100 VEarthed 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.

SwitchSwitches inPower to hold it onLifeMaking it needs
General-purpose relay5–15 ms, then a few ms of contact bounceAbout 0.2–0.5 W in the coilAbout 10 million operations mechanically; about 100,000 at full rated loadWire, iron, springs and silver contacts: tier 4
Reed relayAbout 0.5 msAbout 0.05–0.2 WOver 1,000 million operations at signal levelTwo nickel-iron reeds sealed in a glass tube
Valve (triode)Under a microsecond in computer circuits1–5 W, mostly heating the cathodeThousands to tens of thousands of hours; most failures at switch-onGlassblowing, vacuum pumps, oxide cathodes: tiers 5–6
Discrete transistorTens to hundreds of nanosecondsMilliwattsDecades, if kept below its rated temperatureA germanium or silicon crystal at parts-per-billion purity
Transistor on a modern chipPicosecondsNanowatts on average; about a femtojoule or less per switchDecadesA 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.
Relay logic: AND, OR, NOT and one bit of memory Fig 1
Contacts in series give AND, in parallel give OR, and a normally closed contact gives NOT. The latch holds itself in through its own contact until RESET breaks the circuit. The diode across its coil is reverse-biased in normal use and absorbs the spike when the coil switches off.
A telephone-exchange relay, about 9 cm long against the rule. Current in the coil (pink label) pulls the armature at the right-hand end, which moves the stack of flat contact springs at the left and opens or closes several circuits at once. Flachrelais · 2008-06-29 · Sir Boris · CC BY-SA 3.0 · Commons ↗
The number that reframes relay computingA relay switching 5 times a second reaches its 10-million-operation rating in 23 days of continuous running. A reed relay rated for 1,000 million operations lasts about 6 years at the same rate. Use reed relays where a relay switches on every cycle, run relay machines in sessions, and keep spares.

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).

MaterialBand gap at 300 KUsed forMaking it
Galena (lead sulfide)0.4 eVCat's-whisker radio detectorsA natural mineral, used as found
Germanium0.66 eVThe first transistors; low forward voltage; leaks heavily when hot, so junctions are kept below about 75–100 °CBy-product of zinc refining and coal ash; zone-refined in bars
Silicon1.12 eVNearly every chip, transistor and solar cell; junctions run to about 150 °CQuartz and carbon, then the purification chain in Making chips
Gallium arsenide1.42 eVRadio amplifiers in phones, red and infrared LEDs and lasers, space solar cellsArsenic chemistry, a toxic process: salvage only
Silicon carbide (4H)3.26 eVHigh-voltage power switches in electric-vehicle drives, solar inverters and fast chargersCrystals grown above 2,000 °C: salvage only
Gallium nitride3.4 eVBlue and white LEDs, compact power switches in chargers, radar amplifiersGrown 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.

KindForward voltageUsed forWatch for
Silicon rectifier (1N4001–1N4007)0.7–1.1 V at 1 ATurning AC into DC; four make a bridgeThe 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 mALogic, clamping, protection, suppressing small relay coilsAbout 200 mA continuous at most
Schottky0.2–0.45 VLow-loss rectifiers in low-voltage supplies; blocking diodes on solar panelsLeaks more in reverse, and more again when hot
ZenerConducts in reverse at its rated voltageVoltage references and simple regulatorsZeners near 5.6 V drift least with temperature. Always use a series resistor
LEDRed about 1.8–2.2 V; blue, green and white about 2.8–3.4 VIndicators, lighting, optical linksAlways use a series resistor: R = (supply − forward voltage) ÷ current, with 5–20 mA for an indicator
Photodiode and solar cellA silicon cell gives about 0.5–0.6 V open-circuit in sunlightLight sensing, optical data links, powerCurrent 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.

A MOSFET in section Fig 1
Source and drain are heavily doped n-type regions in lightly doped p-type silicon. A positive gate voltage above the threshold draws electrons into a thin channel under the oxide, joining source to drain. The gate length L is the size that every generation of chip-making shrinks.
Transistors in common packages, smallest to largest: a surface-mount part, TO-92 (plastic, small-signal), TO-126 (medium power, bolts to a heatsink) and TO-3 (metal can, high power). The package decides how much heat the transistor can shed. Transistorer (cropped) · 2021-10-27 · Mister rf at English Wikipedia · CC BY-SA 3.0 · Commons ↗
Inside a 2N1307, a 1960s germanium alloy-junction transistor, under magnification: the germanium chip sits in the window of its metal frame, with a fine wire bonded from the metal dot alloyed into its face to the post at the right. Hand-made transistors are this scale and kind. 2N1307 transistor die with bond wires attached · 2020-12-06 01:45:01 · Mister rf · CC BY-SA 4.0 · Commons ↗
PartControlled byKey numbersUse it for
Small-signal BJT (2N3904 NPN, 2N3906 PNP)Base currentβ 100–300; 200 mA and 40 V maximumAmplifiers, oscillators, switching relays and LEDs
Power BJT (2N3055)Base currentβ 20–70 at 4 A; 15 A and 60 V maximumLinear regulators, audio output stages, motor drives
Small-signal MOSFET (2N7000)Gate voltageThreshold 0.8–3 V; 200 mA and 60 V maximumSwitching and level-shifting from logic
Logic-level power MOSFET (IRLZ44N)Gate voltageAbout 25 mΩ on-resistance with 5 V on the gate; 47 A and 55 V maximumSwitching motors, heaters and lamps from logic outputs
IGBTGate voltageHundreds to thousands of volts at tens to hundreds of ampsInverters, 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).

CMOS inverter and NAND gate Fig 1
Left: the inverter. One input drives both gates, and exactly one transistor conducts. Right: NAND. The p-channels are in parallel, so either input at 0 pulls the output up; the n-channels are in series, so only both inputs at 1 pull it down. The circle on a gate marks a p-channel transistor, which is on when its gate is low.

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:

  1. 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).
  2. 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.
  3. Debounce every switch. A mechanical contact bounces for milliseconds and is counted many times.
  4. 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).
  5. 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.
FamilySupplyInput reads as 1 aboveOutput givesNotes
74LS (TTL)5 V ± 5 %2.0 V1 at 2.7 V or more; 0 at 0.5 V or lessDraws current even when idle; open inputs read as 1, but tie them anyway
74HC (CMOS)2–6 VAbout 0.7 × supply: 3.5 V at 5 VWithin about 0.1 V of each rail at light loadCannot read a 74LS output reliably: use 74HCT there
74HCT (CMOS)4.5–5.5 V2.0 VWithin about 0.1 V of each rail at light loadCMOS with TTL thresholds: the bridge from 74LS to 74HC
74LVC (CMOS)1.65–3.6 V2.0 V at 3.3 VClose to each railInputs accept 5 V: the bridge from 5 V logic to 3.3 V parts
4000 series (CMOS)3–15 V; many parts to 18 VAbout 0.7 × supplyClose to each railSlow 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.
Ferrite-core memory from a 1960s Electrologica X1 computer. Each small dark ring, threaded on crossing wires, stores one bit as the direction of its magnetisation, and keeps it with the power off. Detail of a 1Kb ferrite core RAM-module of an 1960s Electrologica X1 computer · 2012-02-18 15:54:33 · Joost H.B. Hageman · CC BY-SA 3.0 · Commons ↗
KindA bit isAccess timeKeeps data unpoweredWears out afterSource
Relay latchA relay held in by its own contactAbout 10 msNoAbout 10 million operationsMake (tier 4)
Magnetic coreA ferrite ring magnetised one way or the other1–10 µs per cycleYes, for yearsNo wear; reading erases the bit, which is rewrittenMake by hand (computing)
Static RAM (SRAM)A 6-transistor flip-flopAbout 1 ns on a processor chip; 10–100 ns as a separate chipNoNo wearSalvage
Dynamic RAM (DRAM)Charge on a tiny capacitor: 1 transistor per bitTens of nanosecondsNo: refreshed every 64 msNo wearSalvage
NAND flash (SSDs, memory cards, phones)Charge trapped in an insulated layerTens of µs to read; writing and erasing are slowerMonths to years, less when hot or wornRoughly 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 bitsSalvage
Hard diskMagnetised grains on a platter5–10 ms to reach dataYears, stored cool and dryBearings and heads, not the dataSalvage
LTO tapeMagnetised patches on tapeSeconds to minutes to reach a fileRated 30 years at 15–25 °C and 20–80 % humidityNeeds a working drive of the same generationSalvage
Printed paperInk on a pageMinutesCenturies on acid-free paper kept dryHandlingMake (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.

MachineYearSwitchesWhat it shows
Zuse Z31941About 2,600 relaysA programmable relay computer works
ENIAC194517,468 valves; about 150 kWValves are fast, and their failures dominate the work
Intel 400419712,300 transistors on one chip, with 10 µm linesA 4-bit processor fits on one chip at a feature size a laboratory can reach (Intel)
MOnSter 650220163,218 discrete transistors on a 12 × 15 inch boardThe 1975 6502 rebuilt transistor by transistor; it runs at about 50 kHz, a twentieth of the original's speed (project)
NVIDIA Blackwell2024208 billion transistors on two chips in one packageToday'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:

  1. Toggle switches enter a short loader directly into memory, one word at a time.
  2. The loader reads in a monitor: tens to hundreds of bytes that examine and change memory and accept hexadecimal from the serial line.
  3. 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.

A microcontroller board (Arduino Uno) beside a solderless breadboard. The 28-pin chip on the board holds processor, program memory and RAM: a complete computer that is reprogrammed over USB. Arduino & breadboard, mounted · 2011-09-08 18:15:26 · TreyDanger · CC BY 2.0 · Commons ↗
SourceTakeWhat it gives you
Desktop and laptop computersProcessor boards, memory, SSDs and disks, power supplies, fansComplete computers, and regulated 3.3, 5 and 12 V supplies of hundreds of watts
Phones and tabletsWhole devices, cameras, screensLow-power computers with radios, cameras and displays. Their batteries are a fire hazard
Routers, set-top boxes, printersMain boardsProcessors that run Linux, network chips and power supplies; printers also give stepper motors and their drivers
Washing machines, microwave ovens, cars, toysControl boardsMicrocontrollers, relays, power MOSFETs and transistors, sensors
Solar inverters, UPS units, motor drivesPower boardsIGBTs and power MOSFETs, large capacitors, current sensors, transformers
Old radios, televisions, test equipmentValves, transformers, metersSpares 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.

The back of a wire-wrapped Z80 computer board from 1977. Each connection is bare wire wound tightly round a square post, which makes a gas-tight joint without solder and can be unwrapped and changed. Computerplatine Wire-wrap backplane detail Z80 Doppel-Europa-Format 1977 · 2008-01-27 · Wikinaut · CC BY-SA 3.0 · Commons ↗
MethodGood forLimits
Solderless breadboardTrying a circuit in minutesContacts loosen and add stray capacitance: unreliable above a few MHz, and not for anything kept
Wire-wrapComputer backplanes and logic prototypes that must last and changeNeeds square posts, a wrapping tool and fine wire (30 AWG); a correct wrap is gas-tight and needs no solder
Soldered perfboard or stripboardOne-off circuits that must lastSlow to build; hard to change
Etched printed circuit boardRepeated builds and fast logicNeeds artwork, etchant and drilling; dense logic is hard on one-sided boards
Sockets for chipsSwapping salvaged and suspect chipsCheap 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.
SymptomLikely causeRepair
Random errors, worse as chips are added or the clock risesMissing decoupling; ground bounce100 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 expectedA floating CMOS inputTie every unused input high or low through 1–10 kΩ
A counter steps several times per pressSwitch bounceDebounce with a latch, or an RC filter into a Schmitt-trigger input
Rare, unrepeatable faults where an outside signal entersMetastabilityTwo flip-flops in series on every input not timed by the clock
Works at a slow clock, fails at full speedTiming budget exceededFind the slowest path with the oscilloscope; shorten it, or lower the clock
A 74HC input misreads a 74LS outputMismatched logic levelsUse 74HCT, or add a pull-up resistor
A chip dead after handling, or failing some time laterStatic damageEarthed mat and wrist strap; keep parts in conductive bags
Relay contacts pitted, welded or arcingNo coil suppression, or DC above the contact's DC ratingA diode across each coil; an RC snubber across contacts switching inductive loads; derate for DC
A transistor runs hot and its current creeps upThermal runawayAn emitter resistor; a larger heatsink; check the bias
Old equipment fails soon after switch-onDried-out electrolytic capacitorsReform 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.

A single-crystal silicon ingot on display, 2025. It was grown by the Czochralski method, pulled slowly and rotating from molten silicon, starting from the thin seed at the pointed top. Wafers are sawn from the cylindrical body. Single Crystal Silicon Boule · 2025-02-20 12:52:17 · Thingreenline4546 · CC BY-SA 4.0 · Commons ↗
A finished wafer of 80C196KC 16-bit microcontrollers: hundreds of identical chips made side by side. The part-chips round the edge are waste; the share of good chips is the yield. 80C196KC wafer · 2026-04-07 01:50:21 · Mister rf · CC BY-SA 4.0 · Commons ↗
StageWhat happensThe number that decides itWho can do it
1 · Metallurgical siliconQuartz and carbon in an electric arc furnaceAbout 2,000 °C; 98–99 % pureAn industrial plant with large electric power
2 · Electronic-grade polysiliconSilicon made into trichlorosilane, distilled, and deposited back onto hot silicon rods (the Siemens process)Rods at about 1,100 °C; 9 to 11 nines pureA chemical industry
3 · Single crystalCzochralski growth: a seed dipped in molten silicon is pulled up slowly while rotatingSilicon melts at 1,414 °C; one dislocation or impurity spoils the ingotA specialised plant. Zone-refining germanium is laboratory-scale
4 · WafersThe ingot is sawn into slices, lapped and polished to a mirrorA 300 mm wafer is 775 µm thickA specialised plant; salvage or stockpile blank wafers
5 · OxideThe wafer is heated in oxygen or steam and grows silicon dioxide900–1,200 °C; the film's colour shows its thicknessA laboratory tube furnace
6 · PhotolithographyCoat with photoresist, expose through a mask, developSmallest feature: see Lithography, belowA laboratory, at micrometres
7 · EtchRemove material where the resist is open: buffered hydrofluoric acid for oxide, plasma for fine linesA wet etch eats sideways as far as it eats downWet etching: a laboratory. Plasma: specialised equipment
8 · DopingDiffuse dopant in from a source at high temperature, or fire ions in (implantation) and annealDiffusion at 900–1,100 °C; depth grows with the square root of timeDiffusion: a laboratory. Implantation: specialised equipment
9 · Gates, insulators and wiringDeposit polysilicon or metal gates, insulating layers and metal wiring: aluminium in simple processes, copper in modern onesEach layer aligned to the last within a fraction of the smallest featureEvaporated aluminium: a laboratory vacuum chamber
10 · Test and packageProbe each chip on the wafer, saw the wafer apart, bond wires to a package, test againYield: the share of chips that workA 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).

A university photolithography clean room (UCL, 2013). The light is yellow because blue and ultraviolet light would expose the photoresist; the worker is covered head to foot because people shed particles. Cleanroom - photolithography lab (9150584696) · 2013-06-26 13:53 · UCL Mathematical and Physical Sciences from London, UK · CC BY 2.0 · Commons ↗

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.

LightWavelengthTypical NAHalf-pitch at k₁ = 0.3In production
Mercury lamp, i-line365 nm0.6About 180 nm1990s; still used for coarse layers
KrF excimer laser248 nm0.8About 90 nmFrom the late 1990s
ArF excimer laser, dry193 nm0.93About 60 nm2000s
ArF, water immersion193 nm1.35About 43 nm; smaller by multiple patterningFrom the late 2000s; still the workhorse
EUV13.5 nm0.33About 12 nmVolume production since 2019 (TSMC)
High-NA EUV13.5 nm0.55About 7 nm; ASML states 8 nmFirst production tools shipped in 2025 (ASML)

Part 8Since 2000

What has changed since 2000

Each line is from its primary source.

ResultYearWhat it changedSource
High-k metal gate2007Silicon dioxide gate insulation, thinned to 1.2 nm, leaked; a hafnium-based insulator with a metal gate replaced itIntel, via Semiconductor Today
FinFET (tri-gate)2011The 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 performanceIntel
EUV lithography in volume201913.5 nm light replaced several multiple-patterning exposuresTSMC
RISC-V base instruction set ratified2019An open, royalty-free instruction set that any group may implement, with compilers already writtenRISC-V International
Open process design kit2020SkyWater 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 toolsSkyWater PDK
Gate-all-around transistors2022, 2025Stacked nanosheet channels with the gate on all sides: Samsung's 3 nm first, TSMC's N2 in volume production from late 2025Samsung, TSMC
Two-chip processors2024208 billion transistors on two chips at the lithography field limit, joined at 10 TB/s to act as oneNVIDIA
HBM4 memory standard2025DRAM dies stacked beside the processor in one package: a 2,048-bit interface, up to 2 TB/s per stackJEDEC
Backside power delivery2025Power 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 ArizonaIntel
High-NA EUV20250.55-NA tools print 8 nm features in one exposure, 1.7 times smaller than earlier EUVASML

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.

book Lessons In Electric Circuits Tony R. Kuphaldt, six volumes — free, Design Science License DC, AC, semiconductors and digital logic, including relay control circuits, in plain text and diagrams that print well. course Nand2Tetris: The Elements of Computing Systems Nisan and Schocken — free course materials and software Builds a working computer from NAND gates up through an assembler, compiler and operating system, one project at a time. course Computation Structures (6.004) MIT OpenCourseWare — free Digital logic, processor design, pipelining and the memory hierarchy, with lectures and labs. reference The RISC-V Instruction Set Manual RISC-V International — free The open specification to build a processor to, so that existing compilers and software run on it. manual Microfabrication processes Brigham Young University Integrated Microfabrication Lab — free A step-by-step NMOS transistor process, photolithography procedures, wet and plasma etch rates, and calculators for oxide growth, diffusion and implantation. reference SkyWater SKY130 open process design kit Google and SkyWater — free, Apache 2.0 Design rules, transistor models and cell libraries for a real 130 nm process. reference Harry Porter's Relay Computer Portland State University — free A complete 8-bit relay computer with circuit diagrams and a design walk-through. reference Bootstrappable Builds bootstrappable.org — free How to rebuild a software system from a small seed that a person can check by hand.

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