Mon Mar 31, 2014 9:02 am
ilaam wrote:Hi,
I am trying to use RPi to emulate a set of sensors ( a set of slaves). So I need to make it run in I2C slave mode and it should have more than one I2C address (an address per sensor). I wont be using any sensor, it is the RPi that commuicate with a master shipset and responds every time as a different sensor.
To summarize, is it possible to assign many I2C addresses to the RPi ?
Thank you

AFAIK, No, because the RPi
always works as an I2C master ie., IIRC, cannot** be used as an I2C slave.
Trev.
** except, perhaps, by writing your own I2C "driver" and not using the supplied kernel modules.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm