SamWiseTheg
New member
I am trying to create a 18kHz sine wave coming off the DAC on a 3.1 using the teensy Audio Library.
I have tried with a 10 and 22µF cap coming off my DAC, and still no luck in producing a nice sine wave on my scope.
Any help is greatly appreciated
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
AudioSynthWaveformSine sine1;
AudioOutputAnalog dac1;
AudioConnection patchCord2(sine1, dac1);
long freq = 18000;
void setup() {
AudioMemory(20);
sine1.frequency(freq);
sine1.amplitude(1);
}
void loop(){
}
I have tried with a 10 and 22µF cap coming off my DAC, and still no luck in producing a nice sine wave on my scope.
Any help is greatly appreciated