Improving Frequency Resolution with Window Functions in FFT Calculations

AI Thread Summary
Calculating the FFT of a noisy signal can yield the expected input signal's frequency as the highest peak if its amplitude is significantly higher than the noise. However, the effectiveness of this approach depends on the characteristics of the noise, such as whether it is white noise or interference. For accurate frequency measurements, it is crucial to have a sufficient number of data points and to apply a window function to improve frequency resolution and reduce high-frequency noise. Using an FFT for initial frequency estimation followed by a least squares fit of a sine wave to the original data can enhance accuracy. Overall, while FFT can be useful, careful consideration of noise and data processing techniques is essential for reliable results.
Tim Condra
Messages
2
Reaction score
0
Okay I have a question involving calculating the FFT of a signal from a sensor. I have simulated many different scenarios in MATLAB of various noise characteristics involving the signal.

I want to take the FFT of a noisy signal. As long as my expected input signal has a higher amplitude than noise signals of other frequencies, then the plotted spectrum of the magnitude of the signal should always have the highest peak at my expected input signal's frequency, is this correct?

The reason I am asking is due to an argument about whether filtering is needed to discover the expected input signal's frequency. If the amplitude of the the input signal is always higher, I figured it would always be the peak of the magnitude spectrum.

If this is not correct, what is a correct way to look at this scenario?
 
Engineering news on Phys.org
Tim Condra said:
As long as my expected input signal has a higher amplitude than noise signals of other frequencies, then the plotted spectrum of the magnitude of the signal should always have the highest peak at my expected input signal's frequency, is this correct?
That is a truism.

It depends on the noise, is it white noise or is it intermods and RF interference? If the noise is white you can use power spectrum accumulation to drop the noise floor relative to the signal.

If you want an accurate frequency measurement it is important that the frequency is reasonably high, somewhere near the middle of the FFT spectrum.
 
The problem is I have no idea of the noise characteristics other than it being relatively high (but not quite as high as the expected input) at low frequencies compared to the expected input. We've been asked to design a system that calculates the frequency of the input signal from the sensor. Ideas of using phase locked loops and other things are being thrown around, and I am just puzzled as to why taking an FFT of the sampled signal would not be a viable solution given that the noise isn't at the amplitude of the input signal.
 
Is the signal a sinewave?

Tim Condra said:
and I am just puzzled as to why taking an FFT of the sampled signal would not be a viable solution given that the noise isn't at the amplitude of the input signal.
It is because frequency resolution is poor unless you have an enormous number of data points. Also you must first multiply your data by a window function such as Hann or similar, that widens the frequency bins while reducing the high frequency noise due to the step where the end wraps around to the start.

Maybe use an FFT to estimate the frequency, then do a least squares fit of a sine wave to the original data points. That will give you a more accurate measurement. You must model and fit in the DC offset, amplitude and frequency space.
 
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Back
Top