Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to calculate frequency from 256 samples of waveform?

Status
Not open for further replies.

jimbies

Member level 2
Joined
Jul 22, 2002
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
245
Calculating frequency

Would greately appreciate some advice.

If I have say 256 sample of a digitized waveform.
Is it possible to calculate the frequency from these sample ?
Any info wouls be much appreciated.

Thanks.
 

Re: Calculating frequency

oh yes you can, there are plenty of methods like :

- zero crossing : just count how many times your waveform crosses your temporal axis, then by knowing your sampling frequency, you can calculate your frequency.

- if it is sinusoidal waveforms, i think it is obvious. frequency is a multiple of the inverse of the sampling frequency

- you can use a fourrier tranfsorm. if you use a 256 point FFT, you may have peaks and then with your FFT resolution you can roughly estimate the frequency (a multiple from Fs / Nfft where Fs is the sampling frequency and Nfft is the number of points of the FFT). with a high sampling frequency and just 256 samples, one should not expect good result

but of course, one should have in mind criteria such as stationarity to estimate a frequency. they are much more complicated frequency estimation method with high resolution such the MUSIC or ESPRIT algorithms.

hope it helps, best regards
 

Re: Calculating frequency

Hi,
You can estimate the frequency. The frequency is correct only if aliasing has not occured. So you should atleast know the maximum frequency you can expect and if the sampling rate is greater than 2 times this max frequency you can estimate the frequency. Pretty basic stuff.

B R M
 

Calculating frequency

If your process meets the sample principle, it is no problem to esitmate signal frequency.
you can transform it into frequency domain with FFT, and search the maximum spectrum peak value,
through it ,you can get a corresponding frequency value, and you can regard it as estimation result.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top