CCS811 CO2 sensor

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
RenedeH
New user
Posts: 3
Joined: 03 Dec 2016, 07:21

CCS811 CO2 sensor

#1 Post by RenedeH » 01 Nov 2018, 19:01

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?

Barb232
Normal user
Posts: 40
Joined: 12 Mar 2016, 16:40
Location: Earth
Contact:

Re: CCS811 CO2 sensor

#2 Post by Barb232 » 01 Nov 2018, 19:45

Same problem here, i used tasmota, got the same error after 6hs.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: CCS811 CO2 sensor

#3 Post by grovkillen » 01 Nov 2018, 20:18

Interested in Senseair S8 sensors? ;)

I will ship one per each enclosure: viewtopic.php?t=5973
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 :idea: :idea: :idea:

RenedeH
New user
Posts: 3
Joined: 03 Dec 2016, 07:21

Re: CCS811 CO2 sensor

#4 Post by RenedeH » 04 Nov 2018, 20:09

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?

RenedeH
New user
Posts: 3
Joined: 03 Dec 2016, 07:21

Re: CCS811 CO2 sensor

#5 Post by RenedeH » 07 Nov 2018, 17:48

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests