I am using the NodeMCU 1.0 ESP8266 Arduino with a CJMCU BME680 connected using i2c.
When I use the Base BME680 library I get readings of gas, temp, hum, alt, pressure etc. However, after reading the datasheet I wanted to get IAQ, eCO2 and VOC values out. So I started looking at the BSEC library. At first it would not compile for my board, but after following the installation instructions (copying libalgobsec.a and adding flags etc) I got the Basic example to build and start logging to the Serial Monitor on Baud 115200.
I understand that there is a warm up time with this sensor before it gives accurate readings, and it is expected that the sensor will out put 25.00 and 0 for IAQ and IAQ accurary respectively. However, after running the sensor for multiple times for more than an hour, there is no change in these values nor the eCO2 or VOC.
here is what is output:
4176097, 23.10, 101475.00, 48.61, 165967.00, 25.00, 0, 23.10, 48.61, 25.00, 400.00, 0.50
and here is the header that is printed when the program starts:
BSEC library version 220.127.116.11
BSEC warning code : 10
Timestamp [ms], raw temperature [°C], pressure [hPa], raw relative humidity [%], gas [Ohm], IAQ, IAQ accuracy, temperature [°C], relative humidity [%], Static IAQ, CO2 equivalent, breath VOC equivalent
I don't understand why it is not changing and can't find anything on what Warning Code : 10 means.
Any help would be appreciated.
p.s. I have attaced the Serial Monitor output and I have included a photo of the breadboard.
10 means "Output (virtual) sensor id passed to bsec_update_subscription() is not in the valid range; e.g., n_requested_virtual_sensors > actual number of output (virtual) sensors requested".
I attached one intergrate guidelines for Arduino platforms for our BSEC lib which you should also find in your BSEC downlaoded lib.
Please refer to the document.
If it is still not working, please put your source code here.
I have the same problem with an esp8266, the temperature and humidity are well calculated, however the iaq remains fixed at 25.
My sketch is the one provided by default basic.ino