Teensy Audio without audioshield

Status
Not open for further replies.

donperryjm

Well-known member
Good day everyone,

MY first post here.

So i've been looking to use teensy as an audio filter but what I've seen so far from my search shows an audioshield involved in the process. I'm still trying to understand everything and I guess If i did i'd know whether or not I could forego the audioshield to do what I want to accomplish.

Mic->Op amp -> Teensy Filter -> Interpret information.
 
Last edited:
Reading the exhaustive documentation of the audio library (pdf, tutorial video, and GUI design tool) on the PJRC website will tell you that you can use the audio library without the audio shield. The audio libray works with the internal ADCs and DAC(s) of the Teensy 3.x MCUs, too, as long as your use case is fine with 12bit resolution.
 
Hey frank, thanks for replying.

Expense is not as much of an issue as real estate.

I tried following the video and it seems to have a set path outside of which I'd like to go - the audio shield. It's kinda hard to imagine how to get things going without the audio shield. I'm drawn to teensy and purchased one because of the arduino env that i'm familiar with :)
 
OK. a digital mic is not an option as i'm applying it to an existing hardware.

I want to see the amplitude of the sound after the frequency is filtered.


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

// GUItool: begin automatically generated code
AudioInputAnalog         adc1;           //xy=283,132
AudioFilterBiquad        biquad1;        //xy=451.00000762939453,142.00000095367432
AudioAmplifier           amp1;           //xy=680.0000076293945,164.00000190734863
AudioConnection          patchCord1(adc1, biquad1);
AudioConnection          patchCord2(biquad1, amp1);
// GUItool: end automatically generated code

void setup() {
  // put your setup code here, to run once:
AudioNoInterrupts();
AudioMemory(16);
audioShield.enable();





AudioInterrupts();
}

void loop() {
  // put your main code here, to run repeatedly:

}
 
Status
Not open for further replies.
Back
Top