using ESP32C3 I wanted to get temperature and humidity data from SHTC3 sensor + send via MQTT and everything is working fine when I will use loop function for this, but if I want to migrate to deep sleep the data are gathered only once after USB reconnect. After the chip will woke up from deep sleep the I2C do not provide new measurements. I'm stuck since 2 days so i decided to ask more experienced people. Did anyone have such issue
ESP32C3 + SHTC3 sensor - no measurement after deep sleep
ESP32C3 + SHTC3 sensor - no measurement after deep sleep
Hello,
using ESP32C3 I wanted to get temperature and humidity data from SHTC3 sensor + send via MQTT and everything is working fine when I will use loop function for this, but if I want to migrate to deep sleep the data are gathered only once after USB reconnect. After the chip will woke up from deep sleep the I2C do not provide new measurements. I'm stuck since 2 days so i decided to ask more experienced people. Did anyone have such issue
I tried to somehow reset the, I2C but it didn't solve the issue 
using ESP32C3 I wanted to get temperature and humidity data from SHTC3 sensor + send via MQTT and everything is working fine when I will use loop function for this, but if I want to migrate to deep sleep the data are gathered only once after USB reconnect. After the chip will woke up from deep sleep the I2C do not provide new measurements. I'm stuck since 2 days so i decided to ask more experienced people. Did anyone have such issue
Re: ESP32C3 + SHTC3 sensor - no measurement after deep sleep
After 3 days investigation here is the solution:
Now the full code is working as expected. 
Code: Select all
// Put sensor into wake state before deep sleep
shtc3.sleep(false);
// Entering sleep mode
esp_sleep_enable_timer_wakeup(SLEEP_TIME);
esp_deep_sleep_start();
Who is online
Users browsing this forum: No registered users and 2 guests