Volhout Guru
 Joined: 05/03/2018 Location: NetherlandsPosts: 5994 |
| Posted: 07:04pm 18 Feb 2021 |
|
|
|
I2c stanard is developped by Philips to communicate between ic's on a printed cicuit board. This is a controlled environment with limitted bus length. The i2c bus design is not robust per design. Compare i2c to ethernet to understand the difference. Ethernet knows collision detect, retries, cable compensation.
Although every situation and location is different, i would never use i2c outside its controlled environment (read: closed box) , especially not if the application is mission critical.
Just to give some background info on this: i am a senior electronics engineer and have been fighting the lack of immunity of an i2c bus sytem for ESD for the last weeks. If you have a noisy environment (esd or surges or eft) the i2c bus is a baby that requires very soft gloves.....outide the house is a typical uncontrolled environment with lightning, esd, power grid, ground loops, motorcyles(ignition ), belt grinders, milking machines, radio and tv transmitters, whatever your environment has.
In short: if you want to measure humidity outside for fun: go ahead and use i2c sensors. If you plan to control your heating system, or solar farm with sensors, please dont use i2c but look at 20ma sensors (industrial) or rs485 serial with preferably a modbus protocol.
Volhout Edited 2021-02-19 05:05 by Volhout |