Using on board memory for small sound effects files?

The Speaker Guy

New member
Hi Everyone! I am using a T4.0 for E-Bike LCD display, lighting, and a custom horn sound. I have selected a MAX98357 on the shield.

Q1 - MAX98357 connections, P2: AUD_SDO, P3: AUD_LRCLK, P4: AUD_BCLK is correct?
Q2 - I can use the Flash memory on the T4.0 for wave files, correct? (Plan is a couple custom sounds, i.e. Ahhh OOOh Gaaah)
Q3 - MAX98357 configured for LEFT audio only, and thus I store WAV as mono, and send out as left data only, correct?

Any other caveats I should think about?

Thanks!
 
MAX98357 connections, P2: AUD_SDO, P3: AUD_LRCLK, P4: AUD_BCLK is correct?

Those are the pins for I2S2, the 2nd I2S port. Should work fine. Just be sure to use "i2s2" in the design tool. Almost all the audio library examples use the first I2S port, so if you start from an example program remember you probably need to edit it to the use the 2nd port.
 
You could also compile the sounds into the actual program, e.g. by encoding it as a char array with the PROGMEM prefix. Then you can access the data directly without worrying about having to open a file and read it.
 
Thanks everyone! The amplifier is U6 in below, in the north east corner. T4.0 is mounted on solder side. Board is 65x50mm


1700346541593.png
 
Back
Top