General Gravity

Gravity SCD41 CO2 sensor, ASC on or off by default?

userHead brooksdr 2024-12-31 00:14:33 24 Views0 Replies

RE: Gravity SCD41 CO2 sensor, SEN0536

The Sensirion software library for this device assumes that the auto self calibration (ASC) feature is “on” by default. In your sample code, these lines:

// SCD4X.setAutoCalibMode(true);

 /**
  * @brief get automatic self calibration enabled
  * @return Automatic self-calibration mode:
  * @n        true : enable automatic self-calibration
  * @n        false : disable automatic self-calibration
  * @note When executing the command, the sensor can't be in period measurement mode
  */
 // if(SCD4X.getAutoCalibMode()) {
 //   Serial.println("Automatic calibration on!");
 // } else {
 //   Serial.println("Automatic calibration off!");
 // }
 

might imply that ASC is “off” by default in your library. Is this true? Or do these commented-out lines mean that ASC is on by default and you don't have to do anything about it in code? Is there any reason NOT to have ASC on??

 

Thank you for help with these questions!