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