Can I use a smartpin ADC or the Streamer to measure a Frequency component of an Audio Signal?
jrullan
Posts: 168
Hello all,
I am trying to implement a spectrum analyzer for an audio signal. TBH I have no knowledge of digital signal processing other than knowing it exists. But upon glancing over the P2 Documentation I noticed that Fourier was mentioned in the DDS/Goertzel mode of the Streamer. This is what the P2 Documentation mentions:
Knowing almost nothing about FFT or the Streamer, I wonder if this feature/mode could be use to detect peaks in a selectable frequency of the audio spectrum for an audio input coming from an audio source's headphones jack.
So my question would be if anyone knows about this and if what I want to do can be done with the P2 streamer ?
I am trying to implement a spectrum analyzer for an audio signal. TBH I have no knowledge of digital signal processing other than knowing it exists. But upon glancing over the P2 Documentation I noticed that Fourier was mentioned in the DDS/Goertzel mode of the Streamer. This is what the P2 Documentation mentions:
Goertzel analysis can be thought of as a single slice of a Fourier transform, in which energy of a single frequency is measured amid potential noise for some number of NCO cycles. Goertzel analysis returns sine and cosine accumulations which can be converted into polar coordinates using the QVECTOR instruction, yielding power and phase information.
Knowing almost nothing about FFT or the Streamer, I wonder if this feature/mode could be use to detect peaks in a selectable frequency of the audio spectrum for an audio input coming from an audio source's headphones jack.
So my question would be if anyone knows about this and if what I want to do can be done with the P2 streamer ?
Comments
If you look in the main silicon documentation, you can see an example of this, but it's using radio frequencies, not audio. You can do swept audio measurements, as well. Maybe what you just need is an FFT program, which I have. You just feed it a set of samples and it converts to power and phase pairs.
@cgracey
Thank you for your feedback. Where can I see that FFT program?
You'll find it at about a third of the way into that doc under section on DDS/Goertzel