Hello, I have this BME688 chip integrated with nrf9160 processor using I2C. Right now, Im just using the BME688 sensorAPI library on git to get the gas resistance value. I tested the chip to check for VOC's exposing it to an exhaust of an automobile, but it keeps giving the same resistance of 64000. The temperature value seems to be changing (not using the pressure and humidity function of the sensor yet). Can someone explain what is happening: This is the code of the math involved in calculating resistance: static void bme688_calc_gas_resistance(struct bme688_data *data, uint8_t gas_range, uint16_t adc_gas_res) { uint32_t var1; int32_t var2; var1 = (uint32_t)(262144) >> gas_range; var2 = (int32_t)adc_gas_res - (int32_t)512; var2 *= (int32_t)3; var2 += (int32_t)4096; data->calc_gas_resistance = ((uint32_t)10000 * var1) / (uint32_t)var2; }
... View more