SCD4x

data class SCD4x(val temperatureOffset: Int, val sensorAltitude: Int, val autoCalibrationDays: Set<CalibrationParameters.SCD4x.Day>, val autoCalibrationTime: Int, val autoCalibrationCO2Concentration: Int, val averageSamplesNumber: Int, val ignoreMinAndMaxInAverageCalculation: Boolean) : CalibrationParameters

Represents calibration parameters for a SensorModel.SCD4X carbon dioxide sensor.

Constructors

Link copied to clipboard
constructor(temperatureOffset: Int, sensorAltitude: Int, autoCalibrationDays: Set<CalibrationParameters.SCD4x.Day>, autoCalibrationTime: Int, autoCalibrationCO2Concentration: Int, averageSamplesNumber: Int, ignoreMinAndMaxInAverageCalculation: Boolean)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The CO2 concentration used for auto-calibration in ppm. Range 0 : 65535

Link copied to clipboard

The days of the week when auto-calibration is performed. Auto-calibration is triggered based on the number of measurement cycles and is executed after a measurement if the configured time interval (in UTC format) has been exceeded. If measurements are not performed frequently enough, auto-calibration may be delayed significantly beyond the specified interval.

Link copied to clipboard

The time of day when auto-calibration is performed in minutes since midnight. Range 0 : 1439

Link copied to clipboard

The number of samples used for averaging. Range 1 : 10 if ignoreMinAndMaxInAverageCalculation is false, otherwise 3 : 10. The final CO2 concentration result is an average of the obtained samples

Link copied to clipboard

Indicates if the minimum and maximum values should be ignored in average calculation.

Link copied to clipboard

The altitude of the sensor in meters above sea level. Range 0 : 65535

Link copied to clipboard

The temperature offset in degrees Celsius. Range 0 : 65535 The temperature offset does not affect the CO2 measurement accuracy of the SCD4x. However, correctly configuring the temperature offset within the end device enables accurate use of the sensor’s relative humidity (RH) and temperature (T) output signals. It is important to note that the temperature offset can be influenced by several factors, including the SCD4x measurement mode, self-heating from nearby components, ambient temperature, and airflow conditions. Therefore, the temperature offset should be determined within the final device under typical operating conditions—this includes the intended measurement mode and ensuring the system is in thermal equilibrium.