S811 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 fc, 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: J02+2∑Jk2=1 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?

Name it

What the lab computes

For a record of N samples, the DFT bin k is Xk=∑nxne−j2πkn/N, and a real sinusoid that completes exactly k cycles in the record has one-sided amplitude 2|Xk|/N. Parseval's theorem gives the power in any set of bins as a fraction of the total:

∑k∈S|Xk|2∑k|Xk|2
  • FM: cos⁡(2πfcn/N+βsin⁡2πfmn/N) has lines |Jk(β)| at fc±kfm.
  • AM: (1+μcos⁡2πfmn/N)cos⁡2πfcn/N puts a fraction μ2/(2+μ2) of its power in the sidebands.
  • A discriminator on the complex baseband signal zn=ejϕn reads the phase step arg⁡(znzn−1*), 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 1+2acos⁡ϕ+a21−2acos⁡ϕ+a2 below the wanted one.

Check

Write bin_amp(x, k): the one-sided amplitude 2|Xk|/N 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 fc+kfm 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 arg⁡(znzn−1*) 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, cos⁡(2πfmn/N)cos⁡(2πfcn/N)−asin⁡(2πfmn/N)sin⁡(2πfcn/N+ϕ), and return the wanted-to-image power ratio in dB, measured from the DFT bins fc+fm and fc−fm.

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?