You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using this library on ESP32 Wroom and its working good. I have some questions:
Can i use it in deep sleep? It might need to avoid using ccs811_init_sensor() so the sensor is not reset every time (may be parameter ccs811_init_sensor(bool reset = false) )
If i pull the WAK pin up to sleep it, do i need to hold it up during the ESP deep_sleep?
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry for the late answer, I didn't get a notification for the issue.
I'm not quite familiar yet with deep sleep in ESP32. If it is the same as in ESP8266, the system restarts completely after waking up and the sensor is soft reset.
Your suggestion to introduce an additional parameter to avoid the soft reset and setting the default sensor mode could solve this problem. Application would also have to set sensor mode to the same mode as before deep sleep to let the sensor continue in same operation mode and to bring the driver in this sensor mode. Maybe something would have to be changed in ccs811_set_mode to avoid the setting sensor mode if it is already in this mode.
Concerning the nWAKE signal. As I understand, it simply controls the state of the communication processor. The sensor operation is not affected by nWAKE signal. You have to drive nWAKE down before and throughout each I2C communication to activate the interface. From my point of view, the GPIO for nWAKE signal should be configured as open-drain pulled-up and actively driven to low. I don't know whether ESP32 preserves pull-up state of a GPIO during deep sleep or whether you need an external pull-up resistor.
Hello,
Im using this library on ESP32 Wroom and its working good. I have some questions:
Can i use it in deep sleep? It might need to avoid using ccs811_init_sensor() so the sensor is not reset every time (may be parameter ccs811_init_sensor(bool reset = false) )
If i pull the WAK pin up to sleep it, do i need to hold it up during the ESP deep_sleep?
Thanks!
The text was updated successfully, but these errors were encountered: