---
title: Measuring power
heading: From wall sockets to radio transmitters
eyebrow: C11 · Lesson 15 · Measuring power
xp: 40
---

::: hook
Power looks like the simplest measurement, volts times amps, until the waveforms aren't sinusoids, the current isn't in phase with the voltage, or the signal is a radio carrier at 5 GHz where volts and amps can't be measured at all. Power meters handle each case differently: by multiplying samples, by heating a sensor, or by rectifying with a diode. Each has its own way to be wrong.
:::

::: play
- The curves are the limits of the error caused by mismatch when an RF power sensor measures a source: the source reflects $\lvert\Gamma_s\rvert$ and the sensor $\lvert\Gamma_L\rvert$, and the re-reflections between them add in an unknown phase.
- The error lies between $20\log_{10}(1 - \lvert\Gamma_s\Gamma_L\rvert)$ and $20\log_{10}(1 + \lvert\Gamma_s\Gamma_L\rvert)$.
- With both well matched the error is a few hundredths of a decibel; with poor matches it can exceed the sensor's own accuracy several times over.
:::

```sim plot
view: graph
x: g = 0..0.5
y: E = -1.5..1.5 dB
slider: s = 0..0.5 step 0.01 = 0.1
plot: 20*log(1 + s*g) | label: upper limit
plot: 20*log(1 - s*g) | label: lower limit
readout: upper limit with a 0.2 sensor, dB = 20*log(1 + 0.2*s) | digits: 3
```

::: predict
## A source with |Γ| = 0.1 is measured by a sensor with |Γ| = 0.2. How large can the mismatch error be?

- [ ] 0 dB
- [x] About ±0.17 dB
- [ ] About ±1 dB
- [ ] About ±3 dB

::: reveal
About ±0.17 dB: $20\log_{10}(1 \pm 0.02)$ is +0.17 and −0.18 dB. That's comparable to a good sensor's own calibration uncertainty, so it often dominates an RF power budget. Adding a well-matched attenuator in front of the sensor reduces it.
:::
:::

::: nameit
## Low-frequency power

Real power is the average of the instantaneous product,

$$P = \frac1T\int_0^T v(t)i(t)\,dt$$

which a digital power analyzer computes from simultaneous samples. Apparent power is $V_\text{rms}I_\text{rms}$, and the **power factor** is P divided by it: $\cos\phi$ for sinusoids, lower for distorted currents such as a rectifier's. Measuring P as $V_\text{rms} \times I_\text{rms}$ overstates it by the reciprocal of the power factor.

## RF power and dBm

At radio frequencies, power is measured directly and quoted in dBm: $P_\text{dBm} = 10\log_{10}(P/1\text{ mW})$, so 0 dBm is 1 mW, 30 dBm 1 W and −30 dBm 1 µW.

- **Thermal sensors** (thermistors, thermocouples) measure heating, which is true average power whatever the waveform, but slowly and only down to about −30 dBm.
- **Diode sensors** reach −70 dBm and respond fast. Below about −20 dBm a diode is **square-law**, its output proportional to power, and it reads true average power. Above that it moves toward peak detection, and reads modulated signals wrongly unless corrected.

## Average and peak

Modulated signals have a **peak-to-average power ratio** (PAPR): 0 dB for a constant-envelope carrier, about 10 dB for OFDM. Amplifiers and sensors must handle the peaks, not just the average.

## Mismatch

A sensor on a source that isn't perfectly matched receives a power that depends on the phase of the re-reflections between them, uncertain within $(1 \pm \lvert\Gamma_s\Gamma_L\rvert)^2$.
:::

::: example
## A 230 V supply drives a load drawing 5 A rms at a power factor of 0.8. What are the apparent and real powers?

::: solution
1. **Apparent power.**
   $$230\ \text{V} \times 5\ \text{A} = 1150\ \text{VA}$$
2. **Real power.**
   $$1150 \times 0.8 = 920\ \text{W}$$
3. **What a meter reads.** A meter that multiplied rms voltage and rms current would read 1150, 25% high; a true wattmeter averages the instantaneous product and reads 920 W.

**Answer:** the apparent power is 1150 VA, and the real power is 920 W.
:::
:::

::: example
## Convert 10 dBm, −30 dBm and 1 W to the other unit.

::: solution
1. **10 dBm.**
   $$10^{10/10} = 10\ \text{mW}$$
2. **−30 dBm.**
   $$\begin{aligned} 10^{-30/10} &= 10^{-3}\ \text{mW} \\ &= 1\ \mu\text{W} \end{aligned}$$
3. **1 W.** It is 1000 mW:
   $$10\log_{10}1000 = 30\ \text{dBm}$$
4. **Rules of thumb.** Adding 3 dB doubles the power, and adding 10 dB multiplies it by ten.

**Answer:** 10 dBm is 10 mW, −30 dBm is 1 µW, and 1 W is 30 dBm.
:::
:::

::: example
## An OFDM transmitter averages 20 dBm with a PAPR of 10 dB. What peak power must the amplifier and sensor handle?

::: solution
1. **Peak power.**
   $$20 + 10 = 30\ \text{dBm}$$
   That's 1 W of peak for 100 mW of average.
2. **A diode sensor.** One operated near its square-law limit would be driven into its nonlinear region by the peaks and read high.
3. **What to use instead.** That's why such signals are measured with a thermal sensor or a sensor characterized for wide-bandwidth modulation.

**Answer:** 30 dBm, 1 W of peak.
:::
:::

::: check
kind: parts
given: V = 120 | 230; I = 2 | 10; p = 0.6 | 0.75 | 0.9

## A load draws {I} A rms from {V} V rms at a power factor of {p}.

::: part
answer: V*I*p
unit: W
tolerance: 0.5%

### What real power does it take?

::: misses
- [V*I] That's the apparent power; multiply by the power factor.
- [any] $VI \cdot \text{PF}$.
:::
:::

::: part
answer: V*I
unit: VA
tolerance: 0.5%

### What is its apparent power?

::: misses
- [any] $V_\text{rms}I_\text{rms}$.
:::
:::
:::

::: check
kind: parts
given: P = -40 | -3 | 17 | 43

## A signal measures {P} dBm.

::: part
answer: 10^(P/10)
unit: mW
tolerance: 0.5%

### What is its power in milliwatts?

::: misses
- [any] $10^{P/10}$.
:::
:::

::: part
answer: sqrt(10^(P/10)*1e-3*50)
unit: V
tolerance: 0.5%

### What rms voltage is that across 50 Ω?

::: misses
- [any] $\sqrt{PR}$.
:::
:::
:::

::: check
kind: parts
given: s = 0.05 | 0.15 | 0.3; g = 0.05 | 0.2

## A source with |Γ| = {s} is measured by a sensor with |Γ| = {g}.

::: part
answer: 20*log(1 + s*g)
unit: dB
tolerance: 0.5%

### What is the largest positive mismatch error?

::: misses
- [10*log(1 + s*g)] Power goes as the square: $20\log_{10}(1 + \lvert\Gamma_s\Gamma_L\rvert)$.
- [any] $20\log_{10}(1 + \lvert\Gamma_s\Gamma_L\rvert)$.
:::
:::

::: part
answer: 20*log(1 - s*g)
unit: dB
tolerance: 0.5%

### And the largest negative one?

::: misses
- [any] $20\log_{10}(1 - \lvert\Gamma_s\Gamma_L\rvert)$.
:::
:::
:::

::: check
kind: parts
given: A = 10 | 23 | 30; R = 3 | 8 | 12

## A transmitter averages {A} dBm with a peak-to-average power ratio of {R} dB.

::: part
answer: A + R
unit: dBm
tolerance: 0.5%

### What is its peak power?

::: misses
- [any] Average plus PAPR, in dB.
:::
:::

::: part
answer: 10^((A + R)/10)/10^(A/10)
tolerance: 0.5%

### How many times the average is that?

::: misses
- [any] $10^{\text{PAPR}/10}$.
:::
:::
:::

::: check
kind: parts
given: V = 230; I = 4 | 8; p = 0.55 | 0.7

## A rectifier load draws {I} A rms from 230 V with a power factor of {p}.

::: part
answer: 1/p
tolerance: 0.5%

### By what factor would $V_\text{rms} \times I_\text{rms}$ overstate its real power?

::: misses
- [any] Apparent over real is 1/PF.
:::
:::

::: part
answer: V*I*(1 - p)
unit: W
tolerance: 0.5%

### By how many watts?

::: misses
- [any] Apparent minus real.
:::
:::
:::

::: check
kind: derivation
vars: V = 1..400, I = 0.01..50, f = -1.5..1.5

## v and i are sinusoids of rms values V and I, with i lagging v by φ = f radians.

::: step
answer: V*I*cos(f)

### What is the average of v·i?
:::

::: step
answer: cos(f)

### What is the power factor?
:::

::: right
Right. For sinusoids the power factor is $\cos\phi$; distortion lowers it further.
:::
:::

::: check
kind: choice

## A diode power sensor reads accurately for a −40 dBm CW tone. Why might it read a +10 dBm OFDM signal wrongly?

- [ ] Diodes don't respond to OFDM
- [x] Above about −20 dBm a diode leaves its square-law region, so its output no longer tracks average power for a signal whose envelope varies
- [ ] The sensor needs a longer cable
- [ ] OFDM has no average power

::: misses
- [1] It responds; the question is to what.
- [3] Cables don't change the detector's law.
- [4] It has an average; it also has large peaks.
:::
:::

::: explain
## Why does a true wattmeter average the product v·i instead of multiplying the rms voltage by the rms current?

::: model
Power at each instant is v times i, and only the part of the current in phase with the voltage delivers energy on average. When the current lags or is distorted, some of it flows back and forth without doing net work, which the product of rms values counts as if it were useful. Averaging the instantaneous product cancels those back-and-forth parts exactly, leaving the real power. Multiplying rms values instead gives the apparent power, which is larger by the reciprocal of the power factor, and that's what sizes wiring and transformers but not what the load consumes.
:::
:::

::: practice
::: check
given: P = -20 | -10 | 0 | 3 | 10 | 20 | 27 | 30
answer: 10^(P/10)
unit: mW
tolerance: 0.5%

## {P} dBm in milliwatts?

::: misses
- [any] $10^{P/10}$.
:::
:::

::: check
given: V = 120 | 400; I = 3 | 15; p = 0.8 | 0.95
answer: V*I*p
unit: W
tolerance: 0.5%

## Real power at {V} V, {I} A, PF {p}?

::: misses
- [any] $VI \cdot \text{PF}$.
:::
:::

::: check
given: s = 0.1 | 0.25; g = 0.1 | 0.3
answer: 20*log(1 + s*g)
unit: dB
tolerance: 0.5%

## Upper mismatch error for |Γs| = {s}, |ΓL| = {g}?

::: misses
- [any] $20\log_{10}(1 + \lvert\Gamma_s\Gamma_L\rvert)$.
:::
:::
:::
