Arduino Zero Audio Recording

Hey Guys.

Is there a library for recording audio (and obviously save it onto a SD Card) with an atsamd21G18 aka Arduino Zero? I know the TMRpcm library for recording but thats only for AVR Boards like Nano, Mega and so but that library doesn't work for SAM Boards.

I'm using an analog Microphone no I2S Communication

Best regards

Something like this in loop() will work. For fastest recording, open the file once in setup() and close it only when done collecting data.

You will lose some fraction of a second of audio when a data block is (automatically) written out to the SD card. To get around that gap, clever coding with double buffering is required.

...
value = analogRead(pin) - zero_offset;
SD.println(value);
...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.