Go Down

Topic: I2S - analog encoding/input on SAM D21-based board (Read 165 times) previous topic - next topic

rusto

Hi all,

Im looking for some advice on reading analog audio data into an MKR ZERO (or similar SAM D21) board.

Currently I have an MKRZero board reading a WAV file from its onboard SD card. This works great with the ArduinoSound and I2S library amplitude analyser and FFT functions. I

I would now like to read audio data in via a 3.5mm jack (or similar) rather than the SD card. I have seen examples of a MEMS microphone breakout being used to send I2S data into a board (see https://www.arduino.cc/en/Tutorial/ArduinoSoundWhistleDetector) which looks very elegant.

However, I cant find any breakout board, hardware or information to stream/encode data in from an audio jack.

Does anyone have any experience or advice here?
Any advice would be much appreciated!!


Grumpy_Mike

You can get I2S cards that have both analogue inputs and outputs. Here is one:-
https://www.pjrc.com/store/teensy3_audio.html

rusto

Thanks for the reply!
I hadn't seen that, and it looks like a good option. I haven't ever used any Teensy hardware but I'll look into it.

It did seem strange to me that this wasn't a trivial thing for the MKRZero and Co. boards to do. I thought they were meant to be used for audio based projects!

Thanks again!

Grumpy_Mike

You don't have to use Teensy hardware to use that board, you can use it with an MKRZero or any other board that has an I2S driver. I have been using I2S boards designed for the Raspberry Pi with my Arduinos, as well as that board.

rusto

Ah right! Makes sense. Thats great to know. Thanks for your help!

Go Up