Raspberry Pi Audio Playback using I2S

6 views (last 30 days)
Cody Dowling
Cody Dowling on 4 Oct 2017
I am currently using Raspberry Pi 3B as a development tool for audio algorithms. So far, I have been successful in flashing the Matlab version of of the OS on the micro-SD card, connecting via an Ethernet jack, and passing audio through the EQ Example to the Raspberry Pi and out of the Headphone Jack.
My issue is that I have to use an external board which accepts I2S instead of analog. I don't see any options to enable this (though I have looked in the raspi-config UI, Advanced, Audio, and tried "0"(default), "1"(3.5mm Jack), and "2"(HDMI). Most of the online help refers me to the standard releases of Noobs/Raspbian/Pixel, but not the version I burned when following the instructions from Matlab.
Can you please help me get I2S audio flowing out of the 40 Pin header? I've been working for several days and think perhaps the Linux Kernel / Version I burned onto the micro-SD card simply doesn't have the I2S port enabled/integrated.
Appreciate in advance any help you can offer!
Cody Dowling

Answers (1)

Gabriele Bunkheila
Gabriele Bunkheila on 5 Apr 2018
Hi Cody,
I have just noticed this old question if yours as R2018a introduced enhancements to support external I2S support for I2S on RaspeberryPi. It'd be great if you could take a look at the new documentation page Play High-Quality Audio from Raspberry Pi Using I2S-Based DAC and let us know if that's enough info and capabilities to get you going.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by