ShawnDecker
New member
Hi,
I am running into audio problems doing the 2 audio shield w. teensy 3.2 setup.
I am using the standard test code example, included at the end of this post.
I have removed the pin 15 capacitors on each shield
I have done all the mods to the second shield described in the sparkfun tutorial (linked from the quad page):
I get the message playing file 1 & playing file 2.
The 1/2 channel card works fine. Nothing at all on the 3/4 channel card. There appears to be no data on pin 15. If I temporarily short the pin 22 pad to the pin 15 pad, I get channels 1/2 playing on the 3/4 shield, as you would expect. I built two different boards - each with the same problem. I also tried a modified board I had successfully used in the past - this also didn't work.
I also tried setting pin 15 to output mode (not in the example).
I've tried running at 96 Mhz and also 72 Mhz.
Has something changed re. the support for the Teensy 3.2?
Here is my code. Thanks to anyone who has some ideas!
Shawn
I am running into audio problems doing the 2 audio shield w. teensy 3.2 setup.
I am using the standard test code example, included at the end of this post.
I have removed the pin 15 capacitors on each shield
I have done all the mods to the second shield described in the sparkfun tutorial (linked from the quad page):
I get the message playing file 1 & playing file 2.
The 1/2 channel card works fine. Nothing at all on the 3/4 channel card. There appears to be no data on pin 15. If I temporarily short the pin 22 pad to the pin 15 pad, I get channels 1/2 playing on the 3/4 shield, as you would expect. I built two different boards - each with the same problem. I also tried a modified board I had successfully used in the past - this also didn't work.
I also tried setting pin 15 to output mode (not in the example).
I've tried running at 96 Mhz and also 72 Mhz.
Has something changed re. the support for the Teensy 3.2?
Here is my code. Thanks to anyone who has some ideas!
Shawn
Code:
AudioPlaySdWav playSdWav1;
AudioPlaySdWav playSdWav2;
AudioOutputI2SQuad audioOutput;
AudioConnection patchCord1(playSdWav1, 0, audioOutput, 0);
AudioConnection patchCord2(playSdWav1, 1, audioOutput, 1);
AudioConnection patchCord3(playSdWav2, 0, audioOutput, 2);
AudioConnection patchCord4(playSdWav2, 1, audioOutput, 3);
AudioControlSGTL5000 sgtl5000_1;
AudioControlSGTL5000 sgtl5000_2;
// Use these with the Teensy Audio Shield
#define SDCARD_CS_PIN 10
#define SDCARD_MOSI_PIN 7
#define SDCARD_SCK_PIN 14
void setup() {
Serial.begin(9600);
AudioMemory(20);
pinMode(15, OUTPUT);
sgtl5000_1.setAddress(LOW);
sgtl5000_1.enable();
sgtl5000_1.volume(0.85);
sgtl5000_2.setAddress(HIGH);
sgtl5000_2.enable();
sgtl5000_2.volume(0.85);
SPI.setMOSI(SDCARD_MOSI_PIN);
SPI.setSCK(SDCARD_SCK_PIN);
if (!(SD.begin(SDCARD_CS_PIN))) {
// stop here, but print a message repetitively
while (1) {
Serial.println("Unable to access the SD card");
delay(500);
}
}
}
void setup() {
Serial.begin(9600);
AudioMemory(20);
pinMode(15, OUTPUT);
sgtl5000_1.setAddress(LOW);
sgtl5000_1.enable();
sgtl5000_1.volume(0.85);
sgtl5000_2.setAddress(HIGH);
sgtl5000_2.enable();
sgtl5000_2.volume(0.85);
SPI.setMOSI(SDCARD_MOSI_PIN);
SPI.setSCK(SDCARD_SCK_PIN);
if (!(SD.begin(SDCARD_CS_PIN))) {
// stop here, but print a message repetitively
while (1) {
Serial.println("Unable to access the SD card");
delay(500);
}
}
}
Last edited by a moderator: