I managed to get the CCS811 (on the cjmcu-8118 board) working with ESPeasy-mega. I use the wemos d1 mini and compiled the ESPEasy with the _P118_CCS811.ino plugin on the ArduinoIDE. I use Domotiz to follow the data and look at the trend. I also use a DHT11 to get the temperature and moisture readings to compensate.
When I power up the sensor the first reading is 400ppm. It slowly goes up and gets up to a relative stable value , but after a couple of hours the data freezes and when I check the espeasy log it reads 'CCS811 : No values found'. Only solution is power off and on. I tried different reading times and interval, but no improvement.
Anyone a suggestion on how to tackle this?
CCS811 CO2 sensor
Moderators: grovkillen, Stuntteam, TD-er
Re: CCS811 CO2 sensor
Same problem here, i used tasmota, got the same error after 6hs.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: CCS811 CO2 sensor
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: CCS811 CO2 sensor
Some more googling revealed the possibility that the freezing is caused by the I2c clockstretching issue between the CCS811 and the Wemos. In the ESPEasymega version I use there is in the advanced section the setting I2c clockstretchlimit. I could not find anything on this parameter. The CCS requires a clockstretch value of '500'. Not sure how that works with the limit parameter. Anyone a hint?
Re: CCS811 CO2 sensor
I did tried the clock strech limit setting in the advanced section of the ESPEasy-mega and chnaged the 0 to 460 and that did the trick. The sensor is running for 2.5 days already. There are a few ' no values found' errors, but they do not stop the unit from working. Hope this helps others with similar issues.
Who is online
Users browsing this forum: No registered users and 16 guests