Re: NODEMCU with CCS811
Posted: Wed Oct 24, 2018 2:24 am
Are you sure this is the sketch that corresponds to the output?
I don't see the "CCS811 Basic Example [...] .begin() returned with an error." error string in the sketch, nor do I see the very first "CCS811 test" message in the sketch printed on serial.
And if this sketch were the right one: there are (at least) two while-loops in setup() that will choke your watchdog if the sensor isn't found or can't be calibrated.
To me it looks like you're trying to use an Arduino sketch, which in itself is fine most of the time, but you do have to verify the code and make it compatible for the ESP8266, since there are some (minor) differences in both hardware- as software-properties.
I don't see the "CCS811 Basic Example [...] .begin() returned with an error." error string in the sketch, nor do I see the very first "CCS811 test" message in the sketch printed on serial.
And if this sketch were the right one: there are (at least) two while-loops in setup() that will choke your watchdog if the sensor isn't found or can't be calibrated.
Code: Select all
while(1);
[...]
while(!ccs.available());
To me it looks like you're trying to use an Arduino sketch, which in itself is fine most of the time, but you do have to verify the code and make it compatible for the ESP8266, since there are some (minor) differences in both hardware- as software-properties.