I do not use the BME680 to do IAQ. The BME680, to create the Index, figures out the Index with the the first 50 or so readings. Thus IAQ is influenced by your start up Air Quality. Do not forget the meaning of the word Index.
I created my Index gas resistance value by taking 100's of readings during the wee hours of a spring morning.
Mashing stuff onto the BME680 will mess with its ability to do IAQ readings. The IAQ readings are done by hot wire.
Here is the Indexed value I use for IAQ, const float oGasResistanceBaseLine = 149598.0f;
Hmm, i see. I do also around 100 measuring before taking data. The code i use is close to yours in functionality.
In my graph the two curves are practically identical!! I don't let your code run yet but it seems to me the results will also follow more or less the humidity?!?
I don't get the physical correlation between air quality and humidity. The air can be bad if it's wet or dry, right? In my understanding these curves should be totally independent?!?
As i remember, the sensor has an internal memory for it's baseline so it can act his age. In general it seems to me that Bosch is hiding the clear function of the sensor and it's algorithms.
Why do we have to calculate IAQ anyway with code from unclear source?
Isn't that a IC with it's own logic? Why not just simple bme.getAirQuality(); ?
Your mentioned const baseline of 149598 is for this specific sensor or do you let the sensor run for three hours before calculating a IAQ?
Do you develop your code? On what base? Did i miss tech specs from Bosch?
In general or do you use a combination of sensors? What else is the bme680 for?
I don't get it with this sensor and it's lib.
Sorry my harsh questions but it's now the fourth time i re-code the bme IAQ function because i don't trust the results after furting into the sensor...
Don't get me wrong, i'm a little upset against Bosch, not you.
Thxs a bunch for your answers!
Neither of these is air quality, but a proxy for air quality. You definitely want more sensors to judge air quality properly. For instance CO2 content, VOCs, NOx, particulates, ozone, etc etc. This is expensive to do properly as it takes a large range of sensors.