Investigate signal properties and system responses by transforming time signals into frequency components for detailed spectral analysis.
The same signal can be viewed in two ways: as a time waveform, or as a set of sinusoidal components at different frequencies. In the frequency domain the signal is described by its spectrum, a graph showing, for each frequency, how much amplitude (or power) is present. Signals that appear confused in time, like a tone covered by interference, show only a few well-defined lines in the spectrum; for this reason frequency analysis is the main tool to study filters, noise, distortion, and disturbances [1][2][3][4].
The transition occurs with the Fourier transform (for non-periodic signals) or the Fourier series (for periodic signals). A real signal has a spectrum with amplitude symmetric with respect to $f = 0$, so only the part with positive frequencies is shown. The spectrum is often plotted on a logarithmic scale in decibels, $20\log_{10}(V/V_{rif})$ for voltages, because it allows viewing components with very different amplitudes together: a ratio $0.1$ between two voltages equals $-20\ \mathrm{dB}$ [1][2][3][4].
A linear circuit is described by its frequency response $H(f)$, the ratio between output and input for a sinusoid at frequency $f$: the magnitude is the gain (or attenuation), the argument the phase shift. The output signal spectrum is the product of the input spectrum by $H(f)$: a low-pass filter attenuates high-frequency components, a high-pass filter those at low frequency. The response is represented with Bode plots, with frequency on a logarithmic scale [1][2][3].
To analyze a sampled signal the discrete transform (DFT) is calculated using the FFT algorithm. With $N$ samples acquired at frequency $f_s$, the spectrum is calculated at frequencies multiple of the resolution $\Delta f = f_s/N$ and up to $f_s/2$ (Nyquist frequency). Better resolution requires a longer observation window. If the frequency of a component does not coincide with a multiple of $\Delta f$ or the window does not contain an integer number of periods, the energy spreads over adjacent lines (leakage); this is reduced by multiplying the signal by a window (Hann, Hamming, Blackman), at the cost of slightly worse resolution. Components above $f_s/2$ are confused with lower frequencies (aliasing) [1][2][3].
The spectrum analyzer shows amplitude as a function of frequency, with a wide dynamic range (often beyond $80\ \mathrm{dB}$), and is used to measure harmonics, noise, radiated and conducted disturbances, modulation. Modern oscilloscopes have an FFT function for quick analysis [1][2].
A signal is the sum of a tone at $1\ \mathrm{kHz}$ with amplitude $1\ \mathrm{V}$ and a mains interference at $50\ \mathrm{Hz}$ with amplitude $0.1\ \mathrm{V}$ (assumed values), acquired with $N = 1024$ samples at $f_s = 8\ \mathrm{kHz}$.
1. Maximum analyzable frequency (Nyquist): $f_s/2 = 4\ \mathrm{kHz}$, therefore the tone at $1\ \mathrm{kHz}$ and the one at $50\ \mathrm{Hz}$ are representable.
2. Frequency resolution: $\Delta f = 8000/1024 = 7.81\ \mathrm{Hz}$.
3. The line at $1\ \mathrm{kHz}$ falls exactly on the $1000/7.8125 = 128$ line of the spectrum: no leakage.
4. The line at $50\ \mathrm{Hz}$ falls at the non-integer position $50/7.8125 = 6.4$: the energy spreads over lines 6 and 7, and a Hann window reduces the effect, at the cost of line broadening.
5. Relative interference level with respect to the tone: $20\log_{10}(0.1/1) = -20\ \mathrm{dB}$.
6. In time the signal appears as a sinusoid at $1\ \mathrm{kHz}$ with a slow modulation of $\pm0.1\ \mathrm{V}$; in the spectrum the two components are two distinct lines and their level is measured directly.
Frequency analysis is used in the design and testing of filters, amplifiers, and oscillators, in noise measurement, harmonic distortion and electromagnetic interference, in telecommunications (bandwidth occupation, modulation), in audio (equalization, sound analysis), and in machine vibration diagnostics.
[1] Wikipedia (it): Analisi delle frequenze
[2] Wikipedia (en): Frequency domain
[3] Wikipedia (de): Fourier-Analysis
[4] Wikipedia (fr): Fréquence
Generating summary…