0

Grand Central and I2S within Arduino IDE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Grand Central and I2S within Arduino IDE

by onemattband on Sat Feb 09, 2019 1:54 pm

I've been using an MKR Zero board for an audio related project using the ArudinoSound library with I2S and have grown out of the limited number of pins on the MKR Zero's small board. Rather than expanding the I/O, I decided to give the Grand Central a try. I would like to utilize the SD card reader and playback .wav files. The Grand Central doesn't seem to like the ArduinoSound library as the code for the MKR Zero won't compile for the Grand Central. Is there an I2S compatible library for the Grand Central for the Arduino IDE that plays .wav files from the SD card reader?

Thanks so much.

onemattband
 
Posts: 3
Joined: Tue Jan 08, 2019 4:13 pm

Re: Grand Central and I2S within Arduino IDE

by adafruit_support_mike on Mon Feb 11, 2019 5:04 am

Yeah, the MKR Zero uses a SAMD21 microcontroller, while the Grand Central uses a SAMD51.

You might want to take a look at our code for the NeoTrellis M4.. that also uses a SAMD51:

https://github.com/adafruit/Adafruit_NeoTrellisM4

adafruit_support_mike
 
Posts: 57056
Joined: Thu Feb 11, 2010 2:51 pm

Re: Grand Central and I2S within Arduino IDE

by onemattband on Mon Feb 11, 2019 2:49 pm

Thanks so much. I checked out all the code and I didn't see anything using I2S or .wav files from an SD card. Am I out of luck at this point?

Thanks again.

onemattband
 
Posts: 3
Joined: Tue Jan 08, 2019 4:13 pm

Re: Grand Central and I2S within Arduino IDE

by adafruit_support_mike on Sat Feb 16, 2019 5:49 am

I'm sorry, I was thinking of the wrong library.

Our fork of Paul Stoffregen's Audio library definitely supports reading WAV files from an SD card and sending the output through an I2S interface:

https://github.com/adafruit/Audio

CircuitPython also supports I2S audio output:

https://circuitpython.readthedocs.io/en ... 2SOut.html

reading data from an SD card:

https://circuitpython.readthedocs.io/pr ... t/api.html

And playing WAV files:

https://circuitpython.readthedocs.io/en ... eFile.html

adafruit_support_mike
 
Posts: 57056
Joined: Thu Feb 11, 2010 2:51 pm

Re: Grand Central and I2S within Arduino IDE

by onemattband on Sat Feb 16, 2019 8:43 am

Great. I’ll check them out. Thank you for getting back to me.

onemattband
 
Posts: 3
Joined: Tue Jan 08, 2019 4:13 pm

Please be positive and constructive with your questions and comments.