Open mshaz opened 7 years ago
hi @pushpa66,
Yes I did. Did not work. I followed the lead to change the twi_setClockStretchLimit(230) to 460, and now it seems to run for 12 hrs with no issues.. So I am guessing it is an issues with the wemos..
The key change seems to be the twi_setClockStretchLimit(230) to 460. I tried all the other tricks, too but after the stretchlimit change, no other trick seems necessary.
My CCS811 runs stable BUT right after the power on, when it shows the million or 65000 values. Pushing the rest button usually fixes the problem. This happens ALWAYS when plugging power in (put USB plug into Wemos).
So, if this startup problem is fixed, the libary works. I have the CCS811 running for ~3 weeks now and as far as I can remember no crashes / crazy values anymore (once one did the initial after-power-on-reset).
I am not very familiar with working with Github but wouldn't it be easier if @pushpa66 forks and adds his valuable changes into this repository? Then we would have one place to discuss and one could also see the code change, etc. The CCS811 and ESP8266 don't seem to be big friends, let's try to channel the info so other people can find solutions easily!?
Some times we cannot initialize CCS811 sensor just calling initialization method one time. That is why I try many times to intialize. After initialization It works fine. If you work with deepSleep modes, we need another way to handle issues. I have working examples if you need. (ESPs are not easy to handle compared to Arduino)
Tq for the great library. Does it gives only 2 values CO2 and TVOC? CO2 concentration : 16848 ppm TVOC concentration : 1075897647 ppb
I think something wrong it keeps giving this value. How many pins do i have to connect? I am using WEMOS D1 Mini