Frequency to Voltage con on sx28 ???
Hi Everyone
·· I am looking for a way to input a·varying sine wave·frequency (from 5 Hz to 3000 Hz) and assign either a voltage or a number to it.· I would like to compare it to a table of pre-set frequencies and output an alert when certain frequencies are hit exactly.· I need to use an sx28 @ 50 Mhz.·
·· Would I need an ADC or an FVC·or can the sx28 handle the conversion?
·· Do I need to filter the signal to eliminate harmonic overtones and how can I do this?
········ (RC filters maybe???)
Any ideas or help with programing and hardware design would be greatly appreciated !![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Gold_Daddy
·· I am looking for a way to input a·varying sine wave·frequency (from 5 Hz to 3000 Hz) and assign either a voltage or a number to it.· I would like to compare it to a table of pre-set frequencies and output an alert when certain frequencies are hit exactly.· I need to use an sx28 @ 50 Mhz.·
·· Would I need an ADC or an FVC·or can the sx28 handle the conversion?
·· Do I need to filter the signal to eliminate harmonic overtones and how can I do this?
········ (RC filters maybe???)
Any ideas or help with programing and hardware design would be greatly appreciated !
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Gold_Daddy
Comments
http://www.sxlist.com/techref/ubicom/lib/math/dsp/freqdet/index.htm
regards peter
· The only problem with the code you referenced; it is single ended.
· It only finds the amount of a single frequency chosen by the user.· I need the (program/hardware) to·differentiate between over a hundred different frequencies!·
See next article about an analyzer using a pic. This could possibly be·adapted
to a sx if you leave out the display code.
http://www.circuitcellar.com/library/print/0998/Lacoste98/lacoste98.pdf
Here is the pic source code for the·above article.
ftp://ftp.circuitcellar.com/pub/Circuit_Cellar/1998/Issue_98/
download picspectrum.zip
The·code is also interesting for just the math (FFT,sin.logarithm,fixedpoint)!
regards peter
If it's a single frequency, then I would just use the Schmitt trigger option for the input pin and time the pulse.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
Post Edited (Bean (Hitt Consulting)) : 2/9/2007 12:19:44 PM GMT
·
· Like I should talk
····· Peter;· Thank you again for your input
·HOW DO YOU FIND THIS STUFF?·
I haven't had a chance to go over the links you refer to, but they sound very helpfull!
······ Bean;· Think of the source as a violin played by a beginner (my daughter is learning
Thanks again,·I'll need some time to absorb the files you mentioned
I just googled for pic spectrum analyzer
regards peter