Auralgeek

Auralgeek

IQ Signals

Most signal processing for modems is done with a complex baseband representation of signals referred to as an "IQ signal". This naming convention is making reference to the "in-phase" and "quadrature-phase" decomposition of a sinusoid, which can be assumed to be a near orthogonal decomposition when the narrowband signal model is assumed. This orthogonality allows for a clever trick where information can be transmitted on the two components of the signal independently for an increase in data throughput.

Narrowband Signal Model

An RF signal in all communications contexts takes the form of a time-varying amplitude A(t)A(t) and phase ϕ(t)\phi(t) modulating some carrier frequency ff.

A(t)sin(2πft+ϕ(t))A(t) \sin(2\pi ft+\phi(t))

A narrowband signal model makes the assumption that the amplitude A(t)A(t) and phase ϕ(t)\phi(t) vary slowly relative to the carrier frequency ff. The model is called "narrowband" because when ϕ(t)\phi(t) is a constant (as it appears to be on a short enough timescale if we assume it only changes slowly) then we are left with a pure sinusoidal signal whose bandwidth is 0. If we allow that ϕ(t)\phi(t) is not constant, but merely slow, then we see our bandwidth increase from 0 to something narrow. Hence, the narrowband signal model.

Orthogonal Decomposition

In trigonometry one of the angle sum identities is:

sin(α+β)=sin(α)cos(β)+cos(α)sin(β)\sin(\alpha + \beta) = \sin(\alpha) \cos(\beta) + \cos(\alpha) \sin(\beta)

If we apply this identity to our RF signal referenced above then we would end up with the following at any particular time tt:

A(t)sin(2πft+ϕ(t))=A(t)[sin(2πft)cos(ϕ(t))+cos(2πft)sin(ϕ(t))]A(t) \sin(2\pi ft+\phi(t)) = A(t)[\sin(2\pi ft) \cos(\phi (t)) + \cos(2\pi ft) \sin(\phi (t))]

We observe from this decomposed form of the RF signal that sin(2πft)\sin(2\pi ft) from the first component of the decomposition and the cos(2πft)\cos(2\pi ft) from the second component are exactly π/2\pi/2 radians out of phase with each other.

Then there exist many discrete points in time t=k2f,k0,1,2,...t = \frac{k}{2f}, \forall k \in 0, 1, 2, ... such that sin(2πft)=0\sin(2\pi ft) = 0 and so the first component vanishes completely. Simultaneously, at these exact points in time the cos(2πft)\cos(2\pi ft) term from the second component is maximized.

Likewise, we see that at times t=k2f+π2,k0,1,2,...t = \frac{k}{2f} + \frac{\pi}{2}, \forall k \in 0, 1, 2, ... the opposite holds true and cos(2πft)=0\cos(2\pi ft) = 0 so that the second term vanishes, while the sin(2πft)\sin(2\pi ft) of the first term is maximized.

A fantastic illustration of this decomposition in action at the very fast/short timescale can be seen in this graphic from the Wikipedia article on this subject:

IQ Signal

Due to this behavior when A(t)A(t) and ϕ(t)\phi(t) are taken as constants we see that the "in-phase" and "quadrature-phase" (first and second components) are orthogonal functions. When we allow for slowly time varying A(t)A(t) and ϕ(t)\phi(t) the orthogonality is no longer exact, but it is approximately maintained.

On a long enough timescale A(t)A(t) and ϕ(t)\phi(t) are allowed to vary in our narrowband signal model, and they can be adjusted so that if the signal (and a π2\frac{\pi}{2} radian phase delayed copy) is carefully sampled at some symbol rate we will observe the I and Q values of the signal, which correspond to the amplitude of the in-phase and quadrature-phase components. Through the decomposition we note that adjusting and sampling the "IQ" values is equivalent to the adjusting and sampling A(t)A(t) and ϕ(t)\phi(t) of the signal. IQ values are preferred because they can be mapped to the complex plane (as seen above) and allow for more standard Euclidean geometry and mathematical approaches.

Exploit Orthogonality

Given this access to IQ values which map to a complex plane, we can more information per IQ symbol than if we merely adjusted the amplitude A(t)A(t) of the RF signal. We have access to a whole other dimension of channel capacity in ϕ(t)\phi(t)!

If we ignore for a moment how these symbol timings referred to above are decided, we note that a given IQ value pair maps to a point on the complex plane. If we decided that we would use only two distinct points then we would be able to transmit 1 bit of information per symbol, and we'd optimally end up with a classic BPSK constellation map:

BPSK Constellation

If instead we decide to put the Q values to work, we could choose 4 points allowing us to transmit 2 bits of information per symbol and arrive at a QPSK modulated signal:

QPSK Constellation

This game can be continued for quite some time, although eventually practical limitations arising from noise in the system limit the ability of the receiver to be able to tell points apart which are too close together:

QAM Constellations

Although somewhat difficult to visualize, do try to imagine the above animation but with the blue and red (I and Q) arrows extending in and out towards a particular point in these constellation maps repeatedly. Now when the symbol changes (slowly relative to the oscillations of the blue and red arrows) they begin pointing to a new point in the diagram. The time domain sinusoids traced by the two would shift in amplitude in phase slowly as the symbols are adjusted. If you can manage it you'll have a valuable mental image of what is happening in a communications signal, and a lot more insight into what modems are trying to achieve.

References:

Wikipedia