AtlasScientificORP class

The Sensor sub-class for the Atlas Scientific ORP (oxidation/reduction potential) sensor.

Base classes

class AtlasParent
A parent class for Atlas EZO circuits and sensors.

Constructors, destructors, conversion operators

AtlasScientificORP(TwoWire* theI2C, int8_t powerPin, uint8_t i2cAddressHex = 0x62, uint8_t measurementsToAverage = 1)
Construct a new Atlas Scientific ORP object using a secondary hardware I2C instance.
AtlasScientificORP(int8_t powerPin, uint8_t i2cAddressHex = 0x62, uint8_t measurementsToAverage = 1) explicit
Construct a new Atlas Scientific ORP object using the primary hardware I2C instance.
~AtlasScientificORP()
Destroy the Atlas Scientific ORP object.

Function documentation

AtlasScientificORP::AtlasScientificORP(TwoWire* theI2C, int8_t powerPin, uint8_t i2cAddressHex = 0x62, uint8_t measurementsToAverage = 1)

Construct a new Atlas Scientific ORP object using a secondary hardware I2C instance.

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

The pin on the mcu controlling powering to the Atlas ORP circuit. Use -1 if it is continuously powered.

  • Requires a 3.3V and 5V power supply
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::AtlasScientificORP(int8_t powerPin, uint8_t i2cAddressHex = 0x62, uint8_t measurementsToAverage = 1) explicit

Construct a new Atlas Scientific ORP object using the primary hardware I2C instance.

Parameters
powerPin

The pin on the mcu controlling powering to the Atlas ORP circuit. Use -1 if it is continuously powered.

  • Requires a 3.3V and 5V power supply
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.