FFT with Teensy 3.2 but no Audio Board

Status
Not open for further replies.

canadianrich

New member
I'm working on a wearable project that will have a mic and a bunch of LED strips that will respond to music.

I want to use FFT to analyze the incoming music - do I need to have the Audio Board to do this, or can I use AudioAnalyzeFFT256 without it? Would I still use the Audio System Design Tool (https://www.pjrc.com/teensy/gui/) to achieve this, even without the Audio board? I'm hoping I can use that function since I'll have other processing happening at the same time as the FFT, and it seems like AudioAnalyzeFFT256 operates almost like a background thread.

I'm looking at a pretty basic setup. Here's the export from the Audio System Design Tool (its really just ADC to FFT256).

Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioInputAnalog         adc1;           //xy=252,176
AudioAnalyzeFFT256       fft256_1;       //xy=470,201
AudioConnection          patchCord1(adc1, fft256_1);
// GUItool: end automatically generated code

Thanks!
 
Yes you can do this, you just need a microphone or line in circuit to an analog pin. The audio library has a reference circuit to convert an input signal to the 0 - 1.2V needed.
 
Status
Not open for further replies.
Back
Top