Closed lobeck closed 7 years ago
Hi,
Probably it's a combination of long cable and esp8266 side treating clock stretching poorly. Have a look in this thread where we were debugging something similar to this: https://github.com/Apollon77/I2CSoilMoistureSensor/issues/8
Haven't seen Apollon77/I2CSoilMoistureSensor#8 as relevant in my case, as i only got the issue after some time. Got the rugged version too, so cable length wouldn't be my fault ;) It's currently mitigated by not using sensor.sleep()
, but maybe i'll move away from the esp8266 too and move to some other low power solution. Without the sleep it's running now for 5 days and i'll further look into this once it's happening again.
I've setup the sensor with a Adafruit Feather HUZZAH (ESP8266) and can read data for a while (1-3 days) then suddenly i only get 65k capacitance and invalid temperatures. The connections are soldered on a prototype board and 10k pull-ups
Power supply is a Anker wall adapter, so i don't think it's an issue.
Here's the relevant code (stripped the network pieces):
Any ideas what might cause this? Currently testing a version without the
sensor.sleep()
, because i haven't found any statements regarding wakeup.