S
Scott Ronald
Hi,
I need to calculate the frequency of a sine wave of varying frequency
and amplitude to maximum of 50Hz. The signal will vary from its max to
DC. I am using an 8 bit AVR with 10bit sampling. So far I have
considered three approaches:
-FFT (I'm not sure if this will be fast enough I would like to have a
usable frequency reading every 100 A/D samples or so.)
-zero crossing and time between each odd one
-calculating the max slope and max amplitude and using their
relationship to calculate frequency.
Does anyone have experience they would like to share as to the best
approach?
Scott
I need to calculate the frequency of a sine wave of varying frequency
and amplitude to maximum of 50Hz. The signal will vary from its max to
DC. I am using an 8 bit AVR with 10bit sampling. So far I have
considered three approaches:
-FFT (I'm not sure if this will be fast enough I would like to have a
usable frequency reading every 100 A/D samples or so.)
-zero crossing and time between each odd one
-calculating the max slope and max amplitude and using their
relationship to calculate frequency.
Does anyone have experience they would like to share as to the best
approach?
Scott