eldiep
Posts: 3
Joined: Fri Jun 07, 2019 5:40 am

I2S and I2C on GPIO-Pins

Fri Jun 07, 2019 5:48 am

Hi,

I've connected the Audio Codec Proto Development-Board (https://www.mikroe.com/audio-codec-proto-board) to the GPIO-Pins of my Raspberry Pi. So my SPI and I2C-Pins are in use now.

Now I want to connect another Audio-Device, which uses I2S to my RaspPi. But it seems like that device needs the same pins, as the Audio Codec Proto-Board, that are already in use.

How can I use both devices in prallel?

Greetings
Elias

alphanumeric
Posts: 1827
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: I2S and I2C on GPIO-Pins

Tue Jun 11, 2019 11:22 am

I'm no expert but I don't think you can? i2c is a shared bus but I'm pretty sure i2s isn't. I think you'll just get the two devices fighting each other with neither working. If I'm wrong I'm sure somebody will correct me very shortly.

Andyroo
Posts: 3306
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: I2S and I2C on GPIO-Pins

Tue Jun 11, 2019 12:05 pm

Have a read of viewtopic.php?p=1375919 and opening up a second I2C bus.

Edit: This bus will need pull up resistors as they are not built in.
Need Pi spray - these things are breeding in my house...

grompot
Posts: 16
Joined: Tue Jan 09, 2018 12:02 am

Re: I2S and I2C on GPIO-Pins

Sun Jun 16, 2019 7:33 pm

Yes, create an additional i2c bus. See

https://www.instructables.com/id/Raspbe ... c-Devices/

I tested it with multiple bmp280, bmp388 and sdp810 sensors.

gordon77
Posts: 3999
Joined: Sun Aug 05, 2012 3:12 pm

Re: I2S and I2C on GPIO-Pins

Sun Jun 16, 2019 7:47 pm

I have never used i2s but searching the Internet it appears on gpios 18,19,20 and 21, these don't appear to be used by i2c

https://learn.adafruit.com/adafruit-i2s ... pi/pinouts
Last edited by gordon77 on Mon Jun 17, 2019 7:18 am, edited 1 time in total.

alphanumeric
Posts: 1827
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: I2S and I2C on GPIO-Pins

Sun Jun 16, 2019 8:52 pm

Maybe this will help, https://pinout.xyz/#

eldiep
Posts: 3
Joined: Fri Jun 07, 2019 5:40 am

Re: I2S and I2C on GPIO-Pins

Fri Jun 21, 2019 1:07 pm

grompot wrote:
Sun Jun 16, 2019 7:33 pm
Yes, create an additional i2c bus. See

https://www.instructables.com/id/Raspbe ... c-Devices/

I tested it with multiple bmp280, bmp388 and sdp810 sensors.
Alright, we've managed to add that additional I2C-Bus. On running the "sudo i2cdetect -l" our BCM2835 is still on the old Bus. But we want it to be linked to the new bus.

So as long as our device is connected to the old I2C-Bus the device works. But connected to the new bus, it doesn't work anymore.

Return to “Advanced users”