Skip to content

Semiconductor electronics

Every component so far obeyed a straight-line law: double the voltage and the current doubles. A diode does not. It conducts one way and blocks the other, and that single fact is enough to turn alternating current into direct, to hold a voltage steady, and to compute with.

These circuits are in the Circuits part of the playground. They are solved from Kirchhoff’s laws like the rest, with the diode’s own law in place of Ohm’s.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

A diode is a crystal of silicon made in two halves: one doped to have spare electrons (n-type), the other to have spare gaps for them, called holes (p-type). Where they meet, electrons and holes cancel and leave a thin layer with no carriers and a small voltage across it, a barrier.

Connect the battery so that it pushes against that barrier, positive to the p side. This is forward bias. Raise the battery from zero and almost nothing happens until the diode has about 0.6 V across it. Then the current shoots up. Past that point the diode’s voltage hardly moves: whatever more the battery supplies is dropped across the resistor.

Now make the battery negative, which turns it round. This is reverse bias. The barrier grows, and the current is a thousand-millionth of a milliampere: the diode is as good as an open switch.

The graph is the diode’s characteristic curve, and the dot is where this circuit sits on it. Switch the material to germanium and the knee moves down to about 0.2 V.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

The mains pushes current one way for a hundredth of a second and the other way for the next. Most electronics needs current that goes one way only. A diode in series is the simplest fix.

Press play. During the half-cycles when the supply forward-biases the diode, it conducts, and the load sees the supply’s voltage less the diode’s 0.7 V. During the other half-cycles it blocks, and the load sees nothing. The amber curve on the graph is the result: humps with gaps between them. It is direct current in that it never reverses, but it is far from steady.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

The half-wave rectifier throws away half of every cycle. This one uses both.

The supply is a transformer whose secondary winding has a connection at its middle, the centre tap. Seen from the tap, the two ends swing opposite ways: when the upper end is positive the lower is negative. Each end has its own diode, and both diodes lead to the same side of the load. Whichever end is positive at the moment, its diode conducts and the other blocks. Current goes through the load in the same direction in both half-cycles.

Watch the moving charges: they take the upper path for one half-cycle and the lower path for the next, and always cross the load the same way. The gaps are gone, and there are twice as many humps.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

Humps are still not the steady voltage a battery gives. A capacitor across the load fixes most of that.

As the supply rises to its peak, the diode conducts and charges the capacitor. As the supply falls away, the capacitor is left at a higher voltage than the supply, so the diode is reverse-biased and switches off. The load now runs from the capacitor alone, which slowly empties. Before it has lost much, the next peak arrives and tops it up.

The amber curve no longer falls to zero. It sags a little between peaks and is restored. That remaining wobble is called ripple. Open the parameters and try a larger capacitor: less sag. Try a smaller load resistance, which draws more current: more sag.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

An ordinary diode blocks in reverse. A Zener diode is made so that, at one chosen reverse voltage, it stops blocking and conducts freely, and it is not harmed by doing so. Beyond that point its voltage barely changes, however much current it carries.

That makes it a regulator. It is connected backwards across the load, with a resistor between the pair and the supply. Open the parameters and raise the input from 9 V to 20 V. The voltage across the load stays near 5.1 V. The extra voltage is dropped across the series resistor, and the extra current that causes goes through the Zener, not the load.

Lower the input, or make the load very small, until the Zener has nothing left to give up. Regulation stops, and the output is only what a potential divider would give.

A logic gate takes inputs that are each high (1) or low (0) and gives an output that is high or low by a fixed rule. Here high is 5 V and low is 0 V. Set the inputs in the parameters and read the output on the voltmeter.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

The output of an OR gate is high if either input is high.

Each input reaches the output through its own diode, and a resistor ties the output to ground. If an input is high, its diode conducts and pulls the output up to 5 V less a diode’s drop, about 4.5 V, which counts as high. An input that is low has its diode reverse-biased and plays no part. Only when both are low is nothing pulling the output up, and the resistor holds it at zero.

Try all four combinations and write down the truth table.

Live in your browser: solved by the engine from Kirchhoff’s laws. Press play to see the charges move.Open in the playground with sliders and graphs ↗

The output of an AND gate is high only if both inputs are high.

Here the diodes face the other way, and the resistor ties the output up to the 5 V supply. Any input that is low pulls the output down through its diode, to about 0.5 V, which counts as low. Only when both inputs are high do both diodes have nothing to conduct into, and the resistor is left to hold the output at 5 V.

The NOT gate, and with it NAND and NOR, need a transistor, which the engine does not have. Nor does it have the light-emitting diode, the photodiode or the solar cell as separate components.