Atlas EZO-ORP topic
- Sensor Datasheet
- Sensor Constructors
- Example Code
- Reference
- Detailed Descriptions
Classes for the Atlas Scientific EZO-ORP oxidation/reduction potential circuit and probes.
Sensor Datasheet
Documentation on the circuit is available here: https:/
Sensor Constructors
Construct a new Atlas Scientific ORP object using the primary hardware I2C instance. The pin on the mcu controlling powering to the Atlas ORP circuit. Use -1 if it is continuously powered. Construct a new Atlas Scientific ORP object using a secondary hardware I2C instance. The pin on the mcu controlling powering to the Atlas ORP circuit. Use -1 if it is continuously powered.
AtlasScientificORP::
Parameters
powerPin
i2cAddressHex
The I2C address of the Atlas circuit; optional with the Atlas-supplied default address of 0x62.
measurementsToAverage
The number of measurements to take and average before giving a "final" result from the sensor; optional with a default value of 1.
AtlasScientificORP::
Parameters
theI2C
A TwoWire instance for I2C communication. Due to the limitations of the Arduino core, only a hardware I2C instance can be used. For an AVR board, there is only one I2C instance possible and this form of the constructor should not be used. For a SAMD board, this can be used if a secondary I2C port is created on one of the extra SERCOMs.
powerPin
i2cAddressHex
The I2C address of the Atlas circuit; optional with the Atlas-supplied default address of 0x62.
measurementsToAverage
The number of measurements to take and average before giving a "final" result from the sensor; optional with a default value of 1.
Example Code
The Atlas ORP sensor is used in the menu a la carte example.
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.
Sensor Variable Counts
The number of variables that can be returned by the Atlas ORP sensor
- #define ATLAS_ORP_NUM_VARIABLES = 1
- Sensor::
_numReturnedValues; the Atlas EZO ORP circuit can report 1 value. - #define ATLAS_ORP_INC_CALC_VARIABLES = 0
- Sensor::
_incCalcValues; we don't calculate any additional values.
Configuration Defines
Defines to configure and set the address of the Atlas ORP sensor
- #define ATLAS_ORP_I2C_ADDR = 0x62
- The default I2C address of the Atlas ORP sensor is 0x62 (98)
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
Construct a new AtlasScientificORP_
AtlasScientificORP_
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".
Define documentation
#define ATLAS_ORP_NUM_VARIABLES = 1
#include <src/sensors/AtlasScientificORP.h>
Sensor::
#define ATLAS_ORP_INC_CALC_VARIABLES = 0
#include <src/sensors/AtlasScientificORP.h>
Sensor::
#define ATLAS_ORP_I2C_ADDR = 0x62
#include <src/sensors/AtlasScientificORP.h>
The default I2C address of the Atlas ORP sensor is 0x62 (98)
#define ATLAS_ORP_WARM_UP_TIME_MS = 850
#include <src/sensors/AtlasScientificORP.h>
Sensor::
846 in SRGD tests
#define ATLAS_ORP_STABILIZATION_TIME_MS = 0
#include <src/sensors/AtlasScientificORP.h>
Sensor::
#define ATLAS_ORP_MEASUREMENT_TIME_MS = 1580
#include <src/sensors/AtlasScientificORP.h>
Sensor::
#define ATLAS_ORP_RESOLUTION = 1
#include <src/sensors/AtlasScientificORP.h>
Decimals places in string representation; ORP should have 1 - resolution is 0.1 mV.
#define ATLAS_ORP_VAR_NUM = 0
#include <src/sensors/AtlasScientificORP.h>
Sensor variable number; ORP is stored in sensorValues[0].
#define ATLAS_ORP_VAR_NAME = "reductionPotential"
#include <src/sensors/AtlasScientificORP.h>
Variable name in ODM2 controlled vocabulary; "reductionPotential".
#define ATLAS_ORP_UNIT_NAME = "millivolt"
#include <src/sensors/AtlasScientificORP.h>
Variable unit name in ODM2 controlled vocabulary; "millivolt" (mV)
#define ATLAS_ORP_DEFAULT_CODE = "AtlasORP"
#include <src/sensors/AtlasScientificORP.h>
Default variable short code; "AtlasORP".