0

I have used with partial success I2C with the ESP8266. When it works, it works well, with many devices on the bus. I've examined the signals on a 'scope to assure Vlo, Vhi, Tr, and Tf.

However, often it works not at all. No I2C devices (even if there is only one connected) are detected. This condition is determined by some unknown factor, and it stays in this condition for some time (days?) before it starts working again. Power cycle, reset-by-button, and reset-by-reflashing do not restore operation until it works again.

This has occurred with at least three ESP8266 modules from two different manufacturers with different pinouts. It affects all connected I2C devices. They are all slaves to the ESP8266.

What should I try next?

asked Jun 3, 2019 at 21:44
1
  • next time it fails, load and run a minimal sketch that uses I2C Commented Jun 4, 2019 at 1:25

1 Answer 1

0

The signals had looked good, but I did not examine them closely enough. When I removed extra pullup resistors I had added on SCL and SDA, I2C worked.

answered Jun 5, 2019 at 11:40
1
  • It's OK to accept your own answer as the solution to the problem. Commented Nov 2, 2019 at 17:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.