BME688 on IoT Carrier Rev2

I have just started getting to know the IoT Carrier Rev2 with an MKR Wifi 1010. I have a sketch that reads the BME688 and prints to the onboard display and I get the following values
IAQ: 13038131.00
TempC: 25.71
Humidity: 17.26%
Pressure: 98.31
CO2: 500.00
VOC: 0.50

There is not much in the online documentation here about the BME688. I have studied the Bosch literature a bit and can see that the chip offers AI in which it can be "trained" to recognize gas compositions by comparing to "normal" air.

The temp, humidity and air pressure are within normal ranges with the temp needing some calibration which I know how to do.

But, the IAQ, VOC and CO2 don't seem right. First they never change and secondly the IAQ, from my research seems like an absurdly high number.

Anyone experience similar issues..I am assuming I am missing something fundamental here.

My code is quite simple at this point.

/* 
  Sketch generated by the Arduino IoT Cloud Thing "Untitled"
  https://create.arduino.cc/cloud/things/faa7b0f9-243e-4158-8919-4f67a4da4fb9 

  Arduino IoT Cloud Variables description

  The following variables are automatically generated and updated when changes are made to the Thing

  float humidity;
  float pressure;
  float tempCal;
  float temperature;

  Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
  which are called when their values are changed from the Dashboard.
  These functions are generated with the Thing and added at the end of this sketch.
*/

#include <Arduino_MKRIoTCarrier.h>
  MKRIoTCarrier carrier;

#include "thingProperties.h"

  float tempAdjust;
  float co2;
  float volatileOrganicCompounds;
  float gasResistor;
  
  
void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  carrier.noCase();
  carrier.begin();
  
  carrier.display.fillScreen(0x0000);
  carrier.display.setTextColor(0xFFFF,0x0000);
  carrier.display.setTextSize(2);
  //carrier.display.setCursor(80,120);

  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
  
  tempCal=7.0;
}

void loop() {
  ArduinoCloud.update();
  temperature = carrier.Env.readTemperature()-tempAdjust;

 carrier.display.setCursor(55,110); 
 humidity = carrier.Env.readHumidity();
 pressure = carrier.Pressure.readPressure(); //this is different than documentation
 co2 = carrier.AirQuality.readCO2();
 volatileOrganicCompounds = carrier.AirQuality.readVOC();
 gasResistor = carrier.AirQuality.readGasResistor();

 carrier.display.print("TempC: "); 
 carrier.display.print(temperature);
 
 carrier.display.setCursor(55,130);
 carrier.display.print("Humid: "); 
 carrier.display.print(humidity);
 carrier.display.print("%");
 
 carrier.display.setCursor(55,150);
 carrier.display.print("Press: ");
 carrier.display.print(pressure);
 
 carrier.display.setCursor(55,170);
 carrier.display.print("CO2  : ");
 carrier.display.print(co2);
 
 carrier.display.setCursor(55,190);
 carrier.display.print("VOC  : ");
 carrier.display.print(volatileOrganicCompounds);
 
 carrier.display.setCursor(35 ,90  );
 carrier.display.print("IAQ: ");
 carrier.display.print(gasResistor);
 
   
  Serial.println(temperature);
  Serial.println(humidity);
  Serial.println(pressure);
  
  
}


/*
  Since TempCal is READ_WRITE variable, onTempCalChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onTempCalChange()  {
  // Add your code here to act upon TempCal change
  
  tempAdjust = tempCal;
}

GitHub - boschsensortec/Bosch-BME68x-Library: Arduino library for the BME680 and BME688 sensors from Bosch Sensortec might be of help or not.

I'm not an expert but I had the same problem, from what I understand the sensor needs more continuous readings to be able to adjust and give real values.

HI!
Ditto here, I just bought the Carrier iot Rev 2 board together with a MKR-1010, CO2 values still at 500.00 (also my display and buzzer don't work with any code example, only the backlight turns on, I think the card is hardware defective.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.