ModularSensors > Files > sensors / AtlasScientificORP.h

AtlasScientificORP.h file

Contains the AtlasScientificRTD subclass of the AtlasParent sensor class along with the variable subclass AtlasScientificORP_Potential.

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

Classes

class AtlasScientificORP
The Sensor sub-class for the Atlas Scientific ORP (oxidation/reduction potential) sensor.
class AtlasScientificORP_Potential
The Variable sub-class used for the oxidation/reduction potential output from an Atlas Scientific EZO-ORP circuit.

Defines

#define ATLAS_ORP_I2C_ADDR = 0x62
Default I2C address is 0x62 (98)
#define ATLAS_ORP_NUM_VARIABLES = 1
Sensor::_numReturnedValues; the Atlas EZO ORP circuit can report 1 value.

Sensor Timing

The sensor timing for an Atlas ORP (redox) sensor

#define ATLAS_ORP_WARM_UP_TIME_MS = 850
Sensor::_warmUpTime_ms; the Atlas EZO ORP circuit warms up in 850ms.
#define ATLAS_ORP_STABILIZATION_TIME_MS = 0
Sensor::_stabilizationTime_ms; the Atlas EZO ORP circuit is stable 0ms after warm-up (stable at completion of warm up).
#define ATLAS_ORP_MEASUREMENT_TIME_MS = 1580
Sensor::_measurementTime_ms; the Atlas EZO ORP circuit takes 1580ms to complete a measurement.

ORP

The ORP variable from an Atlas ORP (redox) sensor

  • Accuracy is ± 1 mV
  • Range is -1019.9mV − 1019.9mV

AtlasScientificORP_Potential(AtlasScientificORP* parentSense, const char* uuid = "", const char* varCode = ATLAS_ORP_DEFAULT_CODE) explicit

Construct a new AtlasScientificORP_Potential object.

Parameters
parentSense The parent AtlasScientificORP 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 "AtlasORP".

#define ATLAS_ORP_RESOLUTION = 1
Decimals places in string representation; ORP should have 1 - resolution is 0.1 mV.
#define ATLAS_ORP_VAR_NUM = 0
Sensor variable number; ORP is stored in sensorValues[0].
#define ATLAS_ORP_VAR_NAME = "reductionPotential"
Variable name in ODM2 controlled vocabulary; "reductionPotential".
#define ATLAS_ORP_UNIT_NAME = "millivolt"
Variable unit name in ODM2 controlled vocabulary; "millivolt" (mV)
#define ATLAS_ORP_DEFAULT_CODE = "AtlasORP"
Default variable short code; "AtlasORP".