Skip to content

Why PSD?

Hugo Chiang edited this page May 25, 2021 · 7 revisions

Why use PSD spectrogram to replace the FFT spectrogram? I guess this is a question that many users will have.

In this Wiki, I will show you why I think PSD should be used as the GOLDEN standard for spectrum analysis.

What's wrong with the FFT spectrum?

In control theory, we only care about the amplitude and phase of the signal. There's nothing wrong with it since the control theory only cares about those two components.

While it's convenient and straightforward, the FFT amplitude is almost never used in the statistics of signals. This is because it doesn't fit well with the physics of how signals operate. In most cases, the important parameter is not the amplitude, but the power. For example, when random noise signals combine in an electronic circuit, the resultant noise is equal to the combined power of the individual signals, not their combined amplitude.

On the other hand, due to the statistically uniform distribution of the phase of random noise, when more time points are collected, the amplitude of random noise will be lower and lower.

Let's take a look at a real-world signal piece (3215hz on BMI270 maximum FIFO mode, throttle stays on 99%):

The FFT result:

OK, so let's turn to the power spectrum (auto-power)?

Alas, that's another bad option.

The power spectrum can show us the power of the signal at various frequency components, but it is susceptible to frequency resolution.

Frequency precision = Sampling frequency / Number of time points

So for example, if we intercept 512 points of data and 1024 points of data from the 3.2Khz sampling rate data of BMI270 sensor, the frequency precision is (3205/512)Hz and (3205/1024)Hz.

Here's a picture that shows how the frequency resolution changes the result of auto-power:

And in real-world signal:

Power Spectral Density

PSD normalizes the result under different frequency resolutions, eliminates the influence of resolution.

This makes the spectrum data comparable between different sampling rate, even between different gyroscopes, e.g. BMI270@3K2 VS MPU6000@8k

Home

BBM website release notes

Oct 2021

For beginners

Sampling flight

FAQ

What is the right way to raise issue here?

Advance topics

Why PSD?

Clone this wiki locally