ModularSensors > Files > src / sensors / AtlasScientificDO.h

AtlasScientificDO.h file

Contains the AtlasScientificCO2 subclass of the AtlasParent sensor class along with the variable subclasses AtlasScientificDO_DOmgL and AtlasScientificDO_DOpct.

These are used for any sensor attached to an Atlas EZO DO circuit.

Classes

class AtlasScientificDO
The Sensor sub-class for the Atlas Scientific EZO dissolved oxygen circuit.
class AtlasScientificDO_DOmgL
The Variable sub-class used for the dissolved oxygen concentration output from an Atlas Scientific EZO dissolved oxygen circuit.
class AtlasScientificDO_DOpct
The Variable sub-class used for the dissolved oxygen percent of saturation output from an Atlas Scientific EZO dissolved oxygen circuit.

Defines

#define ATLAS_DO_I2C_ADDR = 0x61
Default I2C address is 0x61 (97)
#define ATLAS_DO_NUM_VARIABLES = 2
Sensor::_numReturnedValues; the Atlas DO sensor can report 2 values.
#define ATLAS_DO_INC_CALC_VARIABLES = 0
Sensor::_incCalcValues; we don't calculate any additional values.

Sensor Timing

The sensor timing for an Atlas DO sensor

#define ATLAS_DO_WARM_UP_TIME_MS = 745
Sensor::_warmUpTime_ms; the Atlas DO sensor warms up in 745ms.
#define ATLAS_DO_STABILIZATION_TIME_MS = 0
Sensor::_stabilizationTime_ms; the Atlas DO sensor is stable at completion of warm up (0ms after warm-up).
#define ATLAS_DO_MEASUREMENT_TIME_MS = 600
Sensor::_measurementTime_ms; the Atlas DO sensor takes 600ms to complete a measurement.

DO Concentration

The dissolved oxygen concentration from an Atlas DO sensor

  • Accuracy is ± 0.05 mg/L
  • Range is 0.01 − 100+ mg/L

AtlasScientificDO_DOmgL(AtlasScientificDO* parentSense, const char* uuid = "", const char* varCode = ATLAS_DOMGL_DEFAULT_CODE) explicit

Construct a new AtlasScientificDO_DOmgL object.

Parameters
parentSense The parent AtlasScientificDO providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "AtlasDOmgL".

#define ATLAS_DOMGL_RESOLUTION = 2
Decimals places in string representation; dissolved oxygen concentration should have 2 - resolution is 0.01 mg/L.
#define ATLAS_DOMGL_VAR_NUM = 0
Sensor variable number; dissolved oxygen concentration is stored in sensorValues[0].
#define ATLAS_DOMGL_VAR_NAME = "oxygenDissolved"
Variable name in ODM2 controlled vocabulary; "oxygenDissolved".
#define ATLAS_DOMGL_UNIT_NAME = "milligramPerLiter"
Variable unit name in ODM2 controlled vocabulary; "milligramPerLiter" (mg/L)
#define ATLAS_DOMGL_DEFAULT_CODE = "AtlasDOmgL"
Default variable short code; "AtlasDOmgL".

DO Percent Saturation

The dissolved oxygen percent saturation for an Atlas DO sensor

  • Accuracy is ± 0.05 mg/L
  • Range is 0.1 − 400+ % saturation

AtlasScientificDO_DOpct(AtlasScientificDO* parentSense, const char* uuid = "", const char* varCode = ATLAS_DOPCT_DEFAULT_CODE) explicit

Construct a new AtlasScientificDO_DOpct object.

Parameters
parentSense The parent AtlasScientificDO providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "AtlasDOpct".

#define ATLAS_DOPCT_RESOLUTION = 1
Decimals places in string representation; dissolved oxygen percent should have 1 - resolution is 0.1 % saturation.
#define ATLAS_DOPCT_VAR_NUM = 1
Sensor variable number; dissolved oxygen percent is stored in sensorValues[1].
#define ATLAS_DOPCT_VAR_NAME = "oxygenDissolvedPercentOfSaturation"
Variable name in ODM2 controlled vocabulary; "oxygenDissolvedPercentOfSaturation".
#define ATLAS_DOPCT_UNIT_NAME = "percent"
Variable unit name in ODM2 controlled vocabulary; "percent" (percent saturation)
#define ATLAS_DOPCT_DEFAULT_CODE = "AtlasDOpct"
Default variable short code; "AtlasDOpct".