When the echo gets home.

For as long as there have been transmitters, their operators have been given the same warning. Never press the key without an antenna connected. The old radios, built around glass tubes, would put up with the mistake for a while, and the metal plates inside the tubes would glow a dull red in complaint. The first transistor radios were far less forgiving. A power transistor is a chip of silicon smaller than a fingernail, and one careless moment could finish it.

Chapter 14 said why the warning exists, in one sentence. An echo that returns from a bad antenna changes the load that the amplifier feels. This chapter opens the amplifier and looks at what that sentence means for the transistor inside. It turns out that an echo can hurt an amplifier in two quite different ways, by heat and by voltage, and that the length of the cable decides which.

Before any of that can be said properly, a question has to be settled that has been waiting since chapter 12. A voltage that stands still has an obvious size. A voltage that swings back and forth millions of times a second has no single size at all. So how big is a wave?

1. How big is a wave? peak, average and RMS

The label on a toaster in North America says 120 volts. Connect an instrument that draws the voltage of the wall outlet as it changes, and the picture says something else. The voltage climbs to 170 volts one way, swings down through zero to 170 volts the other way, and does this 60 times every second. Both figures are correct. They answer two different questions.

The first thing anyone tries is the average, and it fails at once. The wave spends exactly as long below zero as above it, so its average is nothing at all, and yet it plainly toasts bread. A toaster gets hot whichever way the current happens to be flowing. What matters to it is the power, and chapter 12 said that power is the push multiplied by the movement. In a heater the movement is in proportion to the push. So the power goes as the push multiplied by itself, which is the voltage squared.

That points to the honest way of averaging a wave, when heat is what you care about, and it has three steps. Take the voltage at every moment and square it, which makes every value positive. Find the mean of those squares over a whole swing, mean being the mathematician's word for the average. Then take the square root, to get back to volts. The result is the steady voltage that would do exactly the same heating as the wave. Its name is the recipe read backward. It is the root of the mean of the squares, or RMS.

For the smooth wave that a power company supplies, the RMS comes to the peak divided by the square root of two, which is 0.707 of the peak. Peaks of 170 volts make 120 volts RMS, and that is the figure on the label. In most of the rest of the world the label says 230, and the peaks are 325. Nearly every voltage and current that is ever quoted for a wave is RMS, for one reason. It is the number that gives the watts. A fuse melts on RMS current, a wire warms on RMS current, and 120 volts RMS will toast bread exactly as fast as a 120 volt battery.

The drawing below holds four waves. All of them have been set to the same RMS of 120 volts, so every one of them would heat a toaster alike. Look at how differently they go about it.

The heat is the same for all four, and the peaks are very different. A square wave never rises above its own RMS. The wave from the wall rises 1.4 times higher. A signal built from many tones, like the WiFi signal of chapter 15, and a train of short pulses both reach three times their RMS or more. Engineers call the proportion of peak to RMS the crest factor. It matters because two different things can go wrong with an electrical part. Too much RMS, and it overheats. Too high a peak, even for an instant, and its insulation is punctured, the way a spark jumps a gap. Heat follows the RMS, and breakdown follows the peak.

The same pair of words is used of power. A transmitter that sends a steady tone puts out the same power all the time. One that sends speech, or the many-toned signals of chapter 15, puts out a power that swells and fades with the signal. Its average power is what heats the amplifier and drains the battery. Its peak power is what the amplifier's ceiling has to clear. A voice transmitter that reaches 100 watts on its peaks may average no more than 20. The power from a wall outlet has peaks of its own, twice in every swing, and chapter 30 shows what three wires do about them.

2. A hundred watts, in volts

Now put numbers on a transmitter. A hundred watts traveling along a 50 ohm cable is a wave of 70.7 volts RMS, because 70.7 multiplied by itself and divided by 50 is 100. Its peaks are 100 volts. The current that goes with it is 1.41 amperes RMS, with peaks of 2. Those are comfortable figures, and every part of the transmitter, the cable and the antenna was chosen to carry them.

Take the antenna away, and the whole wave comes back. Chapter 14 showed what the wave and its echo do together. They make a standing pattern, with places where the voltages always add and places where the currents always add. At the tall places the voltage now peaks at 200 volts, twice what anything was chosen for. A quarter of a wave along the cable from each of them, the voltage is nearly nothing and the current peaks at 4 amperes. The power on the cable is the same as before. It has been piled up, as water slopping in a bathtub piles up at the two ends and runs fastest through the middle.

Chapter 14 also said that a cable carrying a standing wave acts as a transformer, and that what the transmitter feels depends on how long the cable is. Those two facts set the trap. If the cable's length puts a tall place at the transmitter, the amplifier meets a load that seems far too stiff, and it is the voltage that climbs. If the length puts a place of heavy current there, the load seems far too soft. The antenna and the reading on the meter are the same in both cases, and all that differs is a few steps of cable.

3. Inside the transistor

Chapter 15 pictured an amplifier as a faucet. A small hand on the handle steers a large flow from the supply. That picture is all that is needed here, with one fact added, which is where a faucet's heat comes from.

A valve gets hot when two things are true of it at once. There is pressure across it, and there is flow through it. The heat is the one multiplied by the other, which is chapter 12's rule again, applied to the inside of the valve. A valve that is wide open carries a great flow with hardly any pressure across it, and it stays cool. A valve that is shut has the full pressure across it and no flow, and it stays cool as well. A valve that is half open has plenty of both, and it warms. The brakes of a car obey the same rule. Released, they are cool. Locked on a parked car, they are cool. Dragged all the way down a mountain road, with force and motion together, they smoke.

A transistor is a valve for electric current. The heat made in it at any instant is the voltage across it multiplied by the current through it. So the whole craft of building a power amplifier that wastes little comes down to timing. The transistor is made to pass its current only during the moments when the voltage across it is low. It does this with the help of a tuned circuit at its output, which keeps the voltage swinging smoothly, and with a load of exactly the right size. With the right load, the voltage across the transistor dips almost to zero in the very moments when the current is at its greatest. At full power about 79 parts in a hundred of what the supply provides go out as radio, and only 21 are left behind as heat.

Everything about that timing depends on the load. The drawing below is a simple amplifier of the commonest kind, joined to an antenna by a cable. The top half shows two swings of the signal: the voltage across the transistors, the current through them, and the heat, which is the one multiplied by the other. The bars underneath give the totals, and the white mark on each bar is where the amplifier was designed to sit. Send back part of the wave, and then change the length of the cable.

Slide the cable through half a wave with the antenna at 3 to 1, and the amplifier goes through its whole range of troubles and comes back to where it began. At one length it runs cooler than it was designed to, and is asked for three times the voltage its supply can give. A quarter of a wave later the voltage is no trouble at all, and the transistors have more than three times their normal heat to get rid of. In between, the voltage and the current fall out of step, and the heat is high for that reason instead.

4. Four ways to be hurt

Operators often picture the reflected watts marching back down the cable and into the transistors as heat. The picture gets the worry right and the mechanism wrong. A transistor has no means of telling a wave that is leaving it from a wave that is arriving. All it has is the voltage across it and the current through it, and the only way an echo can touch it is by changing those two. The drawing showed the change working out in different ways, and each one does its own kind of damage.

A load that looks too soft makes heat. The transistors pass their full current, and the load gives them very little to push against. Most of the supply's voltage is left standing across them while the current flows, which is the half-open valve. With the antenna at 3 to 1, the simple amplifier in the drawing has more than three times its normal heat to shed. The silicon is thin and small, and its temperature follows the heat within thousandths of a second. In the older kinds of transistor a hot spot carries more current than its surroundings, which makes it hotter still, and the part runs away with itself.

A load that looks too stiff makes voltage. The amplifier is driven to push a current that the load will only accept at a much higher voltage than the supply can provide. So the voltage across the transistor reaches zero early in every swing and is held there, flattened against the bottom. Between the supply and the transistor sits a coil of wire, whose job is to hold the average voltage across the transistor equal to the supply. A wave that spends too long flattened at the bottom has to rise that much higher at the top to keep the same average. The peaks climb from twice the supply, which the transistor was chosen to stand, toward three times the supply and beyond. Somewhere on the way they pass the voltage at which a transistor breaks into conduction by itself. Current then pours through it at the one moment when the voltage is highest, and a pinpoint of silicon melts in a millionth of a second.

A load that hands energy back makes the most heat of all. Chapter 12 told the difference between a load that keeps the energy it is given and a springy one that returns it. A cable with nothing on its end is the springiest load there is. At every length of such a cable the voltage and the current are a quarter of a swing out of step, so the load takes energy during half of each swing and hands all of it back during the other half. Where the cable also looks soft, the transistors carry their full current while the voltage across them is nowhere near its lowest. Nothing leaves as radio, and every watt drawn from the supply stays in the silicon. For the amplifier in the drawing that is nearly five times its normal heat.

And some loads make an amplifier sing. Hold a microphone too close to its own loudspeaker and the system howls at a pitch of its own choosing. A power amplifier is kept from doing the same by careful design, and part of that design is the load it expects. Given a very different load, some amplifiers break into a howl at a frequency of their own, at full power, with all of that power trapped inside.

5. How an amplifier looks after itself

Every one of these troubles is quick, and none of them waits for an operator to notice a meter. So a well-made transmitter is built to defend itself, and the defenses have all appeared in the last two chapters.

The first is to watch. The directional coupler of chapter 14 sits at the output and reads the outgoing wave and the echo separately. A small circuit compares the two all the time. When the echo grows, it turns the transmitter's power down within a few thousandths of a second, far enough to keep both the heat and the voltage at safe levels. That is why a modern radio connected to a poor antenna survives. It simply puts out less, and many an operator has spent an afternoon wondering where the power went.

The second is the one-way valve. A circulator between the amplifier and the cable steers anything that comes back into a dummy load, which is a resistor built for the single job of turning power into heat. The amplifier always meets the load it was designed for, whatever happens at the far end of the cable. Transmitters that have to stay on the air at all times, such as the ones on a cell tower, are built this way.

The third is tougher silicon. The transistors now made for transmitters are tested by connecting a cable with nothing useful on its end, a ratio of 65 to 1, sliding its length through every position, and driving the amplifier at full power throughout. A part earns its rating only by coming through unharmed.

The glass tubes of the old radios had a ruggedness of another kind. Their working parts were sheets of metal in a vacuum, held far apart. A tube could stand many times the voltage of a transistor, and when it was overheated its plate glowed red and gave the heat away as light. The operator had time to see the glow and let go of the key.

The last defense is habit. A careful operator tests a new antenna at low power first, reads the meter, and only then turns the power up.

6. The arithmetic and a program

root mean square       RMS = square root of (the average of every moment squared)
a smooth wave          RMS = peak / 1.414                     120 V RMS has peaks of 170 V
power in a load        watts = RMS volts x RMS amps = RMS volts squared / ohms
100 watts in 50 ohms   70.7 V RMS, 100 V peak                 1.41 A RMS, 2 A peak
with all of it echoed  200 V peaks at the tall places         4 A peaks a quarter of a wave away
load through a cable   line x (1 + e) / (1 - e)               e = the echo, turned twice around for each wave of cable
heat in a transistor   the voltage across it x the current through it, averaged over a swing
#include <math.h>
#include <stdio.h>

static const double PI = 3.14159265358979323846;

/* The steady value that heats as much as the wave does: the root of the mean of the squares. */
double rms(const double *values, int count)
{
    double squares = 0.0;
    for (int i = 0; i < count; i++) squares += values[i] * values[i];
    return sqrt(squares / count);
}

/* The load at the near end of a cable, as a resistance and a reactance in units of the cable's own impedance. */
void seen_through_cable(double echo, double waves, double *resistance, double *reactance)
{
    double turn = -4.0 * PI * waves;
    double a = echo * cos(turn), b = echo * sin(turn);
    double bottom = (1.0 - a) * (1.0 - a) + b * b;
    *resistance = (1.0 - a * a - b * b) / bottom;
    *reactance = 2.0 * b / bottom;
}

/* A simple two-sided amplifier meeting a load. Gives its power out and its heat, as shares of what it was built for. */
void amplifier_into(double resistance, double reactance, double *out, double *heat)
{
    double asked = hypot(resistance, reactance);         /* the swing its full current would need, beside what the supply allows */
    double current = asked <= 1.0 ? 1.0 : 1.0 / asked;   /* short of voltage, it passes less current */
    double full = PI / 4.0;                              /* at full swing, this share of the power drawn goes out */
    *out = current * current * resistance;
    *heat = (current - full * *out) / (1.0 - full);
}

int main(void)
{
    double wave[360];
    for (int i = 0; i < 360; i++) wave[i] = 170.0 * sin(2.0 * PI * i / 360.0);
    printf("peaks of 170 volts work like %.1f steady volts\n", rms(wave, 360));

    const double lengths[] = { 0.0, 0.125, 0.25, 0.375 };   /* an antenna at 3 to 1, through four lengths of cable */
    for (int i = 0; i < 4; i++) {
        double resistance, reactance, out, heat;
        seen_through_cable(0.5, lengths[i], &resistance, &reactance);
        amplifier_into(resistance, reactance, &out, &heat);
        printf("cable %5.3f of a wave long   power out %3.0f%%   heat %4.2f times normal\n", lengths[i], 100.0 * out, heat);
    }
    return 0;
}

/* It prints:
  peaks of 170 volts work like 120.2 steady volts
  cable 0.000 of a wave long   power out  33%   heat 0.33 times normal
  cable 0.125 of a wave long   power out  60%   heat 2.46 times normal
  cable 0.250 of a wave long   power out  33%   heat 3.44 times normal
  cable 0.375 of a wave long   power out  60%   heat 2.46 times normal   */
import math

def rms(values):
    """The steady value that heats as much as the wave does: the root of the mean of the squares."""
    return math.sqrt(sum(v * v for v in values) / len(values))

def seen_through_cable(echo, waves):
    """The load at the near end of a cable, as (resistance, reactance) in units of the cable's own impedance."""
    turn = -4 * math.pi * waves
    a, b = echo * math.cos(turn), echo * math.sin(turn)
    bottom = (1 - a) ** 2 + b ** 2
    return (1 - a * a - b * b) / bottom, 2 * b / bottom

def amplifier_into(resistance, reactance):
    """A simple two-sided amplifier meeting a load. Returns its power out and its heat, as shares of what it was built for."""
    asked = math.hypot(resistance, reactance)        # the swing its full current would need, beside what the supply allows
    current = 1.0 if asked <= 1 else 1 / asked       # short of voltage, it passes less current
    out = current * current * resistance
    full = math.pi / 4                               # at full swing, this share of the power drawn goes out
    return out, (current - full * out) / (1 - full)

wave = [170 * math.sin(2 * math.pi * i / 360) for i in range(360)]
print(f"peaks of 170 volts work like {rms(wave):.1f} steady volts")
for waves in [0, 0.125, 0.25, 0.375]:                # an antenna at 3 to 1, through four lengths of cable
    out, heat = amplifier_into(*seen_through_cable(0.5, waves))
    print(f"cable {waves:5.3f} of a wave long   power out {100 * out:3.0f}%   heat {heat:4.2f} times normal")

# It prints:
# peaks of 170 volts work like 120.2 steady volts
# cable 0.000 of a wave long   power out  33%   heat 0.33 times normal
# cable 0.125 of a wave long   power out  60%   heat 2.46 times normal
# cable 0.250 of a wave long   power out  33%   heat 3.44 times normal
# cable 0.375 of a wave long   power out  60%   heat 2.46 times normal
use std::f64::consts::PI;

/// The steady value that heats as much as the wave does: the root of the mean of the squares.
pub fn rms(values: &[f64]) -> f64 {
    (values.iter().map(|v| v * v).sum::<f64>() / values.len() as f64).sqrt()
}

/// The load at the near end of a cable, as (resistance, reactance) in units of the cable's own impedance.
pub fn seen_through_cable(echo: f64, waves: f64) -> (f64, f64) {
    let turn = -4.0 * PI * waves;
    let (a, b) = (echo * turn.cos(), echo * turn.sin());
    let bottom = (1.0 - a) * (1.0 - a) + b * b;
    ((1.0 - a * a - b * b) / bottom, 2.0 * b / bottom)
}

/// A simple two-sided amplifier meeting a load. Returns its power out and its heat, as shares of what it was built for.
pub fn amplifier_into(resistance: f64, reactance: f64) -> (f64, f64) {
    let asked = resistance.hypot(reactance);                    // the swing its full current would need, beside what the supply allows
    let current = if asked <= 1.0 { 1.0 } else { 1.0 / asked }; // short of voltage, it passes less current
    let out = current * current * resistance;
    let full = PI / 4.0;                                        // at full swing, this share of the power drawn goes out
    (out, (current - full * out) / (1.0 - full))
}

fn main() {
    let wave: Vec<f64> = (0..360).map(|i| 170.0 * (2.0 * PI * i as f64 / 360.0).sin()).collect();
    println!("peaks of 170 volts work like {:.1} steady volts", rms(&wave));
    for waves in [0.0, 0.125, 0.25, 0.375] {
        // an antenna at 3 to 1, through four lengths of cable
        let (resistance, reactance) = seen_through_cable(0.5, waves);
        let (out, heat) = amplifier_into(resistance, reactance);
        println!("cable {:5.3} of a wave long   power out {:3.0}%   heat {:4.2} times normal", waves, 100.0 * out, heat);
    }
}

// It prints:
// peaks of 170 volts work like 120.2 steady volts
// cable 0.000 of a wave long   power out  33%   heat 0.33 times normal
// cable 0.125 of a wave long   power out  60%   heat 2.46 times normal
// cable 0.250 of a wave long   power out  33%   heat 3.44 times normal
// cable 0.375 of a wave long   power out  60%   heat 2.46 times normal

The amplifier in the program and in the drawing is a sketch. It passes its current in smooth half swings, it has a perfect tuned circuit, and it gives up gracefully when it runs short of voltage. A real one differs in every detail. What the sketch gets right is the shape of the trouble: the same antenna is a problem of heat at one length of cable and a problem of voltage a quarter of a wave away.

Try it: a label, a hose and a quarter of a wave

  1. Read the label on a hair dryer or a kettle. The volts on it are RMS, and so are the amperes. Multiply the two and you have its watts. The peaks at the plug are 1.4 times the number on the label.
  2. Turn a garden hose full on, and then fold it sharply shut. The hose stiffens and kicks in your hand. Moving water that is stopped all at once piles its pressure up far above what the tap supplies, and a current that is cut off inside an amplifier does the same with voltage.
  3. In the drawing of section 3, press no antenna at all and slide the length of the cable slowly from one end to the other. Find the length at which the heat is greatest, and the length at which the load asks for the most swing. They lie a quarter of a wave apart.

An amplifier that survives its own echo still has the neighbors to think about. The next chapter stands a transmitter beside a receiver and adds up what each does to the other.