immortal13
Newbie level 6
- Joined
- Mar 31, 2013
- Messages
- 11
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,348
Hello!
I am working around a project, in which I have to measure a frequency of the signal coming to STM32 microprocessor. The frequency is about 2210 Hz.
I have done it by measuring period of square wave (sine wave passed through comparator) with Timer and then I have tried to appoximate it (array of period measurements is of about 100 elements) using moving average and least square fitting. Both results are about the same.
So, the question is - could I improve the frequency measurement accuracy by at least one order, using ADC convertion of sine wave (without passing through comparator) and then using FFT?
Any help would be appreciated!
Viacheslav.
I am working around a project, in which I have to measure a frequency of the signal coming to STM32 microprocessor. The frequency is about 2210 Hz.
I have done it by measuring period of square wave (sine wave passed through comparator) with Timer and then I have tried to appoximate it (array of period measurements is of about 100 elements) using moving average and least square fitting. Both results are about the same.
So, the question is - could I improve the frequency measurement accuracy by at least one order, using ADC convertion of sine wave (without passing through comparator) and then using FFT?
Any help would be appreciated!
Viacheslav.