I2C or SPI?

Hello,
I am debating whether to use I2C or SPI. My slave will be connected with a RJ-45 (cat5e or cat6). Box can be up to 25 Meters away (will have a 25M cable anyways).

So I heard some say SPI would be better (not sure about distance limitations for SPI ). I know i2c is very short distance but I do have some of these Active I2C Long Cable Extender P82B715 Modules that would support up to 50M with i2c.

I dont mind using either, just wondering whats would be your opinion?

Cheers

I am debating whether to use I2C or SPI. My slave will be connected with a RJ-45 (cat5e or cat6). Box can be up to 25 Meters away (will have a 25M cable anyways).

Both are the wrong choice. Use RS-485 or CAN-Bus if you need reliable communication.

So I heard some say SPI would be better (not sure about distance limitations for SPI ). I know i2c is very short distance but I do have some of these Active I2C Long Cable Extender P82B715 Modules that would support up to 50M with i2c.

Both I2C and SPI are buses made for local board use. In both cases you should not make the bus longer than about 0.5m. In the I2C case you could extend that to a few meters with the mentioned extender chips but the 50m are more marketing bla-bla than values you can actually expect (it's about the same as the 300m WiFi should be able to reach..., I'm happy if I get 15m).

Ha right! thanks for the info.. just ordered some RS-485 connection boards :slight_smile: