Step by step, from a single silicon crystal up to the logic gates inside a computer. Every idea comes alive in the live panel on the right — electrons drift, a diode opens like a valve, an AC wave gets folded into DC, and truth tables fill themselves in.
Pure silicon is the bridge between a conductor and an insulator. Every atom shares four electrons in covalent bonds, so at absolute zero there are no free charges at all — it acts like an insulator.
Warm it up and a little energy snaps a bond. The freed electron can now wander (a negative carrier), and the empty spot it leaves — a hole — behaves like a positive carrier, because a neighbouring electron can hop in to fill it, and so the hole "moves" the other way.
Pure silicon barely conducts. We deliberately add a tiny pinch of impurity — about one atom in a million — to flood it with one kind of carrier. This is doping.
Form one crystal that is p-type on one side and n-type on the other. Right at the join, free electrons from the n-side rush across to fill holes on the p-side — they recombine and both disappear.
This leaves a thin zone with no free carriers, but with exposed fixed ions — a depletion region. The trapped charges set up a small potential barrier (about 0.7 V in silicon) that stops any more carriers crossing.
Connect the battery's positive terminal to the p-side and negative to the n-side. The applied voltage pushes holes and electrons toward the junction, shrinking the depletion region.
Once the voltage exceeds the barrier (~0.7 V), the gate opens: carriers pour across and a large current flows. The diode is like a one-way valve propped wide open.
Now reverse the battery: positive to the n-side, negative to the p-side. The voltage drags carriers away from the junction, so the depletion region grows wider and the barrier gets taller.
Almost no current flows — only a tiny leakage from thermally generated carriers. The one-way valve is firmly shut.
Wall sockets give alternating current (AC) that swings positive and negative. Our gadgets need steady direct current (DC). A diode's one-way action converts one to the other — this is rectification.
A transistor is two junctions in one crystal — three layers (n–p–n or p–n–p) with three leads: emitter, base, collector. A small current into the thin base controls a much larger current from emitter to collector.
Think of a water tap: a gentle twist of the handle (the base current) releases a powerful gush from the pipe (the collector current). That is amplification — and switched fully on or off, it is the on/off bit at the heart of every chip.
Group transistor switches together and you get logic gates — the building blocks of every digital decision. Inputs and outputs are just 1 (high) or 0 (low).
You have climbed the whole ladder of electronics — from how charge moves in a single silicon crystal to the logic that powers a computer.