Other Parts Discussed in Thread: HDC2021
Tool/software:
Hi everyone,
I'm facing intermittent communication problems with a digital temperature and humidity sensor connected via the I2C bus. The sensor occasionally stops responding under various environmental conditions, including low humidity with high temperature, and sometimes even under normal ambient conditions.
Here's a summary of my setup:
- The I2C bus has pull-up resistors of 10kΩ.
- The alert pin of the temperature sensor is connected to the microcontroller but is not used in the current application code. It requires a pull-up resistor but not populated
- The data ready pin of the humidity sensor is connected to the microcontroller but is also not used in the current application code.
- An EEPROM is connected on the same I2C line but is not used in the current application code. :
Troubleshooting steps taken:
- Removed the EEPROM from the I2C line: Communication still failed.
- Changed pull-up resistors to 4.7kΩ: Communication failed
- Removed connections of the alert pin and data ready pin to the microcontroller: Issue persisted.
- Grounded the alert pin and data ready pin: Microcontroller resets more frequently than expected.
Despite these efforts, the sensor continues to become unresponsive, requiring a power cycle to restore communication. Has anyone encountered similar issues with I2C sensors under such conditions? What potential solutions or additional troubleshooting steps would you recommend? I can provide I2C waveform captures if that would help diagnose the issue.
Thanks in advance for your insights!