ModularSensors > Files > sensors / AtlasScientificpH.h

AtlasScientificpH.h file

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

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


class AtlasScientificpH
The Sensor sub-class for the Atlas Scientific pH sensor.
class AtlasScientificpH_pH
The Variable sub-class used for the pH output from an Atlas Scientific EZO pH circuit.


#define ATLAS_PH_I2C_ADDR = 0x63
Default I2C address is 0x63 (99)
Sensor::_numReturnedValues; the Atlas EZO pH circuit can report 1 value.

Sensor Timing

The sensor timing for an Atlas pH sensor

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


The pH variable from an Atlas pH sensor

  • Accuracy is ± 0.002
  • Range is 0.001 − 14.000 (ATLAS_PH_RESOLUTION = 3)
  • Reported as dimensionless pH units

AtlasScientificpH_pH(AtlasScientificpH* parentSense, const char* uuid = "", const char* varCode = ATLAS_PH_DEFAULT_CODE) explicit

Construct a new AtlasScientificpH_pH object.

parentSense The parent AtlasScientificpH 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 "AtlaspH".

Decimals places in string representation; pH should have 3 - resolution is 0.001.
#define ATLAS_PH_VAR_NUM = 0
Sensor variable number; pH is stored in sensorValues[0].
#define ATLAS_PH_VAR_NAME = "pH"
Variable name in ODM2 controlled vocabulary; "pH".
#define ATLAS_PH_UNIT_NAME = "pH"
Variable unit name in ODM2 controlled vocabulary; "pH" (dimensionless pH units)
#define ATLAS_PH_DEFAULT_CODE = "AtlaspH"
Default variable short code; "AtlaspH".