themaninthesuitcase
New member
Hi,
I am working on a project that uses the Adafruit MAX98357A to play wav files but am not having good luck.
I believe this should be possible as I have a friend who uses "import" versions of the MAX98357A in his products.
The code I am using is :
I'm using I2S2 as it will make routing a PCB later easier, but I have tried I2S1 as well.
I am sure this is a me issue, but I can't find it.
Tried so far:
Is there a missing control object I need for this board? It's just the max and a handful of caps and resistors, I don't think it would require one.
Is there a simple way to try work out if it's the teensy or the max? Maybe MQS and look at it with a scope?
Pictures of the setup, click for bigger
Vague setup pictures, the I2S2 is hooked up at pins 2-4 front left.
The other end at the breakout board. Post-it is there to stop the speaker shorting on a jumper for the power rails under it.
I am working on a project that uses the Adafruit MAX98357A to play wav files but am not having good luck.
I believe this should be possible as I have a friend who uses "import" versions of the MAX98357A in his products.
The code I am using is :
Code:
// GUItool: begin automatically generated code
AudioPlaySdWav playSdWav1; // xy=301,144
AudioOutputI2S2 i2s2_1; // xy=478,131
AudioConnection patchCord1(playSdWav1, 0, i2s2_1, 0);
AudioConnection patchCord2(playSdWav1, 1, i2s2_1, 1);
// GUItool: end automatically generated code
// in setup for testing
playSdWav1.play("IGNO.WAV");
I'm using I2S2 as it will make routing a PCB later easier, but I have tried I2S1 as well.
I am sure this is a me issue, but I can't find it.
Tried so far:
- Validated audio board is getting +5v.
- Checked the connections multiple times, both on I2S 1 and 2.
- Tried using a "String" synth note to eliminate the WAV is in the wrong format.
- Checked the speaker isn't damaged, it measures 4R across the leads which is correct.
- Checked the speaker is actually connected to the header as I am using ferules, again 4R.
- Using 8.3 file names for WAVs.
Is there a missing control object I need for this board? It's just the max and a handful of caps and resistors, I don't think it would require one.
Is there a simple way to try work out if it's the teensy or the max? Maybe MQS and look at it with a scope?
Pictures of the setup, click for bigger
Vague setup pictures, the I2S2 is hooked up at pins 2-4 front left.
The other end at the breakout board. Post-it is there to stop the speaker shorting on a jumper for the power rails under it.