It's not quite clear what you mean by (to paraphrase) "..frequency of motor signal..".
Are you talking about the rpm ? Is this a DC motor/ AC motor/ BLDC motor ???
Once you clarify this it will be easier to give helpful suggestions
my client hadn't mentioned any hardware details of their hardware kit as how they are taking the measurement , they just gave me a output pin where I get an analog signal which i connect the same to my adc pin (on my board).
I am attaching a pdf ,
based on the 'voltage' and 'parameter' i want to check, i will automate the switches, if the measuring parameter falls in the correct range the voltage levels will be in the 'range values' else it will show 4.9v which means incorrect range. once i detect the exact range i make calculations to detect the actual value of the parameter based on the voltage level detected.
for parameters - 'IR', resistance, inductance, rotor resistance, i have made calculations and its is detecting correctly as i wanted.
but for parameters - Vibration, temperature, sound, current, i need to check frequency along with voltages if it falls in the range.
as i have only one pin where i can make measurement, with the same can i measure voltage and frequency.
in the links i have read, to measure frequency, from my understanding, they are configuring an interrupt pin and timer for counter and based on that they are measuring frequency, but in those cases the signal is digital.
but in my case i have only one pin which gives me a analog signal.
what can i do ?
- - - Updated - - -
if the signal is pulses no need to use an FFT (required for complex analogue signals)
you can connect the pulse data to a dsPIC "interrupt on change" input to count pulses
use a timer to count the pulses over known time period and hence calculate frequency
but horace1 ,
i am not getting any digital signal.
FFT is quiet tricky for to understand
http://www.microchip.com/CodeExamplesByFunc.aspx
are there any simpler way to understand ??