Atlas EZO-RTD topic
- Sensor Datasheet
- Sensor Constructor
- Example Code
- Reference
- Detailed Descriptions
Classes for the Atlas Scientific EZO-RTD temperature circuit and probes.
Sensor Datasheet
Documentation on the probe is found here: https:/
Documentation on the measurement circuit is found here: https:/
Sensor Constructor
Construct a new Atlas Scientific RTD object using the primary hardware I2C instance. The pin on the mcu controlling powering to the Atlas RTD (temperature) circuit. Use -1 if it is continuously powered. Construct a new Atlas Scientific RTD object using a secondary hardware I2C instance. The pin on the mcu controlling powering to the Atlas RTD (temperature) circuit. Use -1 if it is continuously powered.
AtlasScientificRTD::
Parameters
powerPin
i2cAddressHex
The I2C address of the Atlas circuit; optional with the Atlas-supplied default address of 0x66.
measurementsToAverage
The number of measurements to take and average before giving a "final" result from the sensor; optional with a default value of 1.
AtlasScientificRTD::
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 0x66.
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 RTD sensor is used in the menu a la carte example.
Classes
- class AtlasScientificRTD
- The Sensor sub-class for the Atlas Scientific RTD temperature sensor.
- class AtlasScientificRTD_Temp
- The Variable sub-class used for the temperature output from an Atlas Scientific RTD temperature sensor.
Sensor Variable Counts
The number of variables that can be returned by the Atlas RTD (temperature) sensor
- #define ATLAS_RTD_NUM_VARIABLES = 1
- Sensor::
_numReturnedValues; the Atlas EZO temperature circuit can report 1 value. - #define ATLAS_RTD_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 RTD (temperature) sensor
- #define ATLAS_RTD_I2C_ADDR = 0x66
- The default I2C address of the Atlas RTD sensor is 0x66 (102)
Sensor Timing
The sensor timing for an Atlas RTD (temperature) sensor
- #define ATLAS_RTD_WARM_UP_TIME_MS = 740
- Sensor::
_warmUpTime_ms; the Atlas EZO temperature circuit warms up in 740ms. - #define ATLAS_RTD_STABILIZATION_TIME_MS = 0
- Sensor::
_stabilizationTime_ms; the Atlas EZO temperature circuit is stable 0ms after warm-up (stable at completion of warm up). - #define ATLAS_RTD_MEASUREMENT_TIME_MS = 650
- Sensor::
_measurementTime_ms; the Atlas EZO temperature circuit takes 650ms to complete a measurement.
Temperature
The temperature variable from an Atlas RTD (temperature) sensor
- Accuracy is ± (0.10°C + 0.0017 x °C)
- Range is -126°C − 125°C
Construct a new AtlasScientificRTD_
AtlasScientificRTD_
Parameters
parentSense
The parent AtlasScientificRTD 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 "AtlasTemp".
- #define ATLAS_RTD_RESOLUTION = 3
- Decimals places in string representation; temperature should have 3 - resolution is 0.001°C.
- #define ATLAS_RTD_VAR_NUM = 0
- Sensor variable number; RTD is stored in sensorValues[0].
- #define ATLAS_RTD_VAR_NAME = "temperature"
- Variable name in ODM2 controlled vocabulary; "temperature".
- #define ATLAS_RTD_UNIT_NAME = "degreeCelsius"
- Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)
- #define ATLAS_RTD_DEFAULT_CODE = "AtlasTemp"
- Default variable short code; "AtlasTemp".
Define documentation
#define ATLAS_RTD_NUM_VARIABLES = 1
#include <src/sensors/AtlasScientificRTD.h>
Sensor::
#define ATLAS_RTD_INC_CALC_VARIABLES = 0
#include <src/sensors/AtlasScientificRTD.h>
Sensor::
#define ATLAS_RTD_I2C_ADDR = 0x66
#include <src/sensors/AtlasScientificRTD.h>
The default I2C address of the Atlas RTD sensor is 0x66 (102)
#define ATLAS_RTD_WARM_UP_TIME_MS = 740
#include <src/sensors/AtlasScientificRTD.h>
Sensor::
731-735 in tests
#define ATLAS_RTD_STABILIZATION_TIME_MS = 0
#include <src/sensors/AtlasScientificRTD.h>
Sensor::
#define ATLAS_RTD_MEASUREMENT_TIME_MS = 650
#include <src/sensors/AtlasScientificRTD.h>
Sensor::
#define ATLAS_RTD_RESOLUTION = 3
#include <src/sensors/AtlasScientificRTD.h>
Decimals places in string representation; temperature should have 3 - resolution is 0.001°C.
#define ATLAS_RTD_VAR_NUM = 0
#include <src/sensors/AtlasScientificRTD.h>
Sensor variable number; RTD is stored in sensorValues[0].
#define ATLAS_RTD_VAR_NAME = "temperature"
#include <src/sensors/AtlasScientificRTD.h>
Variable name in ODM2 controlled vocabulary; "temperature".
#define ATLAS_RTD_UNIT_NAME = "degreeCelsius"
#include <src/sensors/AtlasScientificRTD.h>
Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)
#define ATLAS_RTD_DEFAULT_CODE = "AtlasTemp"
#include <src/sensors/AtlasScientificRTD.h>
Default variable short code; "AtlasTemp".