Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hot - swappable I2C buffer/isolator between I2C jack and main I2C lines #22

Open
SRGDamia1 opened this issue Feb 23, 2019 · 0 comments

Comments

@SRGDamia1
Copy link
Contributor

Having either the SCL or SDA line pulled low can cause an unrecoverable hang in the I2C/wire library. Any i2c device with its own internal pull ups that is running on switched power will suddenly pull both SCL and SDA low if the switched power is turned off. The next time the Mayfly tries to communicate with any I2C devices, like the RTC, it will hang forever.

http://forum.arduino.cc/index.php/topic,19624.0.html

I'm sure this is the cause of EnviroDIY/ModularSensors#176

There are alternatives to the "built in" Wire library that add a timeout to prevent the hang, but it would be very difficult to replace all the calls to wire in other people's libraries and implement an alternative. A hardware solution is needed.

@s-hicks2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant