S8 · Lesson 11 · Analog modulation lab
Measuring FM's Bessel sidebands and Carson's rule, AM's power efficiency, an FM discriminator and a phasing SSB modulator's image rejection from simulated signals
Lessons 2 to 7 predicted what analog modulation does to a spectrum: AM puts a carrier and two sidebands around , FM spreads a tone into Bessel-weighted lines, a phasing modulator with imperfect parts leaks an image. In this lab you'll generate those signals sample by sample, measure their spectra with a discrete Fourier transform, and check every prediction to many digits. When the number of carrier and message cycles in the record is a whole number, the DFT bins land exactly on the lines, and the measurements match the formulas almost to rounding error.
- The curves are the magnitudes of the first three Bessel functions, which set the amplitudes of FM's carrier and its first two pairs of sidebands against the modulation index β.
- The carrier vanishes at β = 2.405, the first zero of J₀: all the power has moved into the sidebands.
- Power is conserved: for every β, so FM's envelope stays constant however the lines rearrange.
Predict
An FM transmitter with a 1 kHz test tone raises its deviation until a spectrum analyzer shows the carrier line disappearing. What is the deviation?
The carrier's amplitude is J₀(β), whose first zero is β = 2.405; with and a 1 kHz tone, the deviation is 2.405 kHz. This carrier-null method is how FM deviation meters are calibrated, since it needs only a frequency and a null.
Name it
What the lab computes
For a record of N samples, the DFT bin k is , and a real sinusoid that completes exactly k cycles in the record has one-sided amplitude . Parseval's theorem gives the power in any set of bins as a fraction of the total:
- FM: has lines at .
- AM: puts a fraction of its power in the sidebands.
- A discriminator on the complex baseband signal reads the phase step , the instantaneous frequency in radians per sample.
- A phasing SSB modulator with gain ratio a and phase error φ in its quadrature path leaves the unwanted sideband below the wanted one.
Check
Write bin_amp(x, k): the one-sided amplitude of DFT bin k of the real list x, and fm_lines(beta, fc, fm, N): generate N samples of an FM tone with fc and fm in cycles per record, and return the amplitudes of the bins for k = 0 to 4.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write power_fraction(x, bins): the fraction of the real signal's total power that lies in the given one-sided bins (count each bin's negative-frequency twin too), by Parseval over the full DFT.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write discriminator(z): from a list of complex baseband samples, return the phase steps for n = 1 to N − 1, in radians per sample.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write ssb_image_db(a, phi_deg, fc, fm, N): build N samples of a phasing upper-sideband modulator with a tone message, , and return the wanted-to-image power ratio in dB, measured from the DFT bins and .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why can an FM signal's carrier line vanish completely while the transmitted power stays the same?
An FM signal has a constant envelope: it's a sinusoid whose phase wanders with the message, so its power is fixed by its amplitude alone, whatever the modulation. Its spectrum, however, depends on how the phase wanders. Writing the signal as a sum of lines gives a carrier of amplitude J₀(β) and sidebands of amplitudes J_k(β), and the squares of all of them always add to one. As the modulation index grows, power moves out of the carrier into the sidebands, and at β = 2.405, where J₀ is zero, none is left at the carrier at all. The power hasn't gone anywhere: it all sits in the sidebands.