I2S ... I2C or SPI I/O Expander?

Raspberry Pi related support

I2S ... I2C or SPI I/O Expander?

Postby tangoo » 13 Dec 2015, 23:07

Hello,

I want to build a centralized multiroom system with a lot of MOSFETs as well as input buttons and therefore I need at least one large I/O-Expander for my Pi B+ with RasyPlay4.
Before ordering and putting a lot effort in a not working setup I would like to know, if I2C is working parallel to I2S and if yes, if it is advisable to use it parallel?

As from what I can see my RasyPlay4 goes to the same pins as I2C should go to (SCL/SDA)?
Or do I need to go for an SPI-I/O-Expander?


Anyone used I2S and I2C at the same time on RPi?


Thank you!

Stef
tangoo
 
Posts: 12
Joined: 08 Dec 2015, 12:16

Re: I2S ... I2C or SPI I/O Expander?

Postby XploD » 14 Dec 2015, 09:32

Music taste:
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi:
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: I2S ... I2C or SPI I/O Expander?

Postby hondagx35 » 14 Dec 2015, 15:22

Hi,

I2C und I2S are two independent interfaces.

There are some DACs that use both, I2S for sound and I2C for volume control.
I2C is a multi master / multi slave bus, so many devices can be used in parallel.
You only have to be carefull not to use the same address twice.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: I2S ... I2C or SPI I/O Expander?

Postby tangoo » 16 Jan 2016, 12:03

Hey everyone,

thanks...
I can confirm 2 x MCP23017 are perfectly working on Pi2 while playing HQ Music with no noticable effect even on full speed switching.
Max i2c "set" frequency for one IC was in bash script (only) 80 hz and in python2 around 1,5 khz (measured with oszi).
So python should really be prefered even in small i2c tasks.

Greets
tangoo
 
Posts: 12
Joined: 08 Dec 2015, 12:16

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 41 guests