Posts: 15
Joined: Thu May 04, 2017 12:25 pm

Both speaker and microphone via I2S

Sun May 14, 2017 4:54 am

Hello there,
I've connected a speaker module (Hifiberry DAC) to the Rpi via I2S and it's working ok.
Now I'm trying to connect a microphone also via I2S. What I did was following the instructions in the following page:
https://learn.adafruit.com/adafruit-i2s ... g-and-test

Somewhere in the middle, it says:
Download the module, written by Paul Creaser

git clone https://github.com/PaulCreaser/rpi-i2s-audio
cd rpi-i2s-audio
make -C /lib/modules/$(uname -r )/build M=$(pwd) modules
sudo insmod my_loader.ko

Verify that the module was loaded:
lsmod | grep my_loader
dmesg | tail
But in dmesg I get:
bcm2835-i2s 3f203000.i2s: Trying to bind component to card "snd_rpi_simple_card" but is already bound to card "snd_rpi_hifiberry_dac"
It seems that the mic is trying to bind to the same sound card the speaker is bound to. What can I do? Is there another option to connect both mic and speaker to I2S?


Posts: 6
Joined: Tue May 23, 2017 8:33 am

Re: Both speaker and microphone via I2S

Tue May 23, 2017 8:34 am

Did you find an answer to this? I'm running into the same problem

Posts: 2
Joined: Thu Sep 14, 2017 10:06 am

Re: Both speaker and microphone via I2S

Tue Sep 19, 2017 7:17 pm

Any answer on this one? I've just encountered the same..

Posts: 1
Joined: Fri Jul 13, 2018 7:26 am

Re: Both speaker and microphone via I2S

Fri Jul 13, 2018 8:38 am

I have found a way to get this done!
so I have followed this tutorial guide from Adafruit https://learn.adafruit.com/adafruit-i2s ... g-and-test for Microphone
and this one https://learn.adafruit.com/adafruit-max ... -pi-wiring for the speaker.
So things to Consider are
1. BLK and LRCL pins are common for both speaker and microphone
2. Dout pin from the microphone is connected to the pin #38 GPIO-20
and Din pin of i2s Amplifier is connected to the pin#40 GPIO-21

Note: I have set up my microphone first and then i2s speaker

and it worked without any problem

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 9 guests