Frequency Spectrum Graph on a VGA Monitor/ Code
Jedge
Posts: 2
in Propeller 2
Hello everyone.
My project consists of converting a Analog Audio speaker or Microphone Signal and converting it to a Digital signal. From there I wish to produce a Audio Frequency Graph Spectrum involving a Propeller Board to display onto a VGA monitor. similar to how shown below:
I'm looking for Code sharing or perhaps some advice on Calculating the non-linear frequency graph to create the wave form.
Y-axis = Amplitude of Frequency: Db
X-axis = Frequency Range: 20Hz - 20Khz
Any help is greatly appreciated. -Joe
My project consists of converting a Analog Audio speaker or Microphone Signal and converting it to a Digital signal. From there I wish to produce a Audio Frequency Graph Spectrum involving a Propeller Board to display onto a VGA monitor. similar to how shown below:
I'm looking for Code sharing or perhaps some advice on Calculating the non-linear frequency graph to create the wave form.
Y-axis = Amplitude of Frequency: Db
X-axis = Frequency Range: 20Hz - 20Khz
Any help is greatly appreciated. -Joe
Comments
You need a VGA graphics driver (that I don't think exists), a FFT calculation (that also doesn't exist), and a ADC unit or driver (that also doesn't exist)...
I would think it should be possible to do this with a P1.
I am new to the Parallax Hardware, however, the Parallax facility lies within walking distance from my residence, so naturally I wish to use them to drive the my VGA Interface.
I am not fully aware of the product availability, but according to @cgracey it may be wise to wait until the Propeller 2 is released. This Project is in no rush to be completed.
My concern mainly is with the FFT Calculation, which I'm not sure a simple Embedded Chip will be able to process in real time. I was planning on a Pic Axe application, for which i have the most experience in. I have found several different FFT algorithms broken into code, that can be processed within 26 bytes or less. Finding the fastest working one and implementing its full spectrum to the Display is where the hard part comes in.
You just happen to be among the lucky few that can eliminate shipping charges.
Heater is one of the Propeller FFT mavens that might help you out with Propeller 1 code. There has been some discussion of tweaking the VGA resistors to get the best possible color fidelity. The original Propeller Protoboard values were not quite right. But it is no big deal to get really nice VGA colors.
If you google for "parallax propeller fft" or "parallax propeller fourier transform" you should find another one. Sorry I forget who wrote it. I have no idea how they compare in speed and or ease of use. Mine is MIT licensed the other is GPL which may or may not matter to you.
I'm sure one and/or the other of these will get tweaked for the PII when the time comes.
I don't know how "real time" you want it but the Propeller can do a 1024 point transform in about 30ms. Will be interesting to see how the PII improves this.