maarten-pennings / CCS811

Arduino library for the CCS811 gas sensor for monitoring indoor air quality.
MIT License
165 stars 46 forks source link

Esp32 Deepsleep confusion #51

Closed sagar448 closed 2 years ago

sagar448 commented 3 years ago

Hey,

Had a couple questions, I want to deep sleep with the esp32 for about 20minutes. How would this work with this sensor? Do I just set the mode to the 60second one and then just go to sleep and not put the sensor to sleep? And then when the esp32 Wakes up it will be able to get the data? How would I restore the settings? A detailed explanation would really help! Thank you.

maarten-pennings commented 3 years ago

Hi, it is a bad idea to power off the ccs811. So if low power is your goal, i would indeed put the ccs811 in its lowest power mode. It should be possible to sleep the esp, and let it wake up after (a bit more) than 60s, and read the ccs811. I never tried it myself. Since the ccs is in low power, but not off, it is not necessary to retire baselines.