Yosemitech Y514 Wipered Chlorophyll Sensor topic
- Sensor Datasheet
- Sensor Constructor
- Example Code
- Reference
- Detailed Descriptions
Classes for the Yosemitech Y514 chlorophyll sensor with wiper.
Sensor Datasheet
Sensor Constructor
YosemitechY514:: YosemitechY514(byte modbusAddress,
Stream* stream,
int8_t powerPin,
int8_t powerPin2 = -1,
int8_t enablePin = -1,
uint8_t measurementsToAverage = 1)
Construct a new Yosemitech Y514 object.
Parameters | |
---|---|
modbusAddress | The modbus address of the sensor. |
stream | An Arduino data stream for modbus communication. See notes for more information on what streams can be used. |
powerPin | The pin on the mcu controlling power to the Y514. Use -1 if it is continuously powered. |
powerPin2 | The pin on the mcu controlling power to the RS485 adapter, if it is different from that used to power the sensor. Use -1 or omit if not applicable. |
enablePin | The pin on the mcu controlling the direction enable on the RS485 adapter, if necessary; use -1 or omit if not applicable. |
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 Yosemitech Y514 chlorophyll sensor is used in the menu a la carte example.
Classes
- class YosemitechY514
- The Sensor sub-class for the Yosemitech Y514 sensor.
- class YosemitechY514_Chlorophyll
- The Variable sub-class used for the chlorophyll concentration output from a Yosemitech Y514-A chlorophyll sensor with wiper.
- class YosemitechY514_Temp
- The Variable sub-class used for the temperature output from a Yosemitech Y514-A chlorophyll sensor with wiper.
Sensor Variable Counts
The number of variables that can be returned by a Yosemitech Y514
- #define Y514_NUM_VARIABLES = 2
- Sensor::
_numReturnedValues; the Y514 can report 2 values. - #define Y514_INC_CALC_VARIABLES = 0
- Sensor::
_incCalcValues; we don't calculate any additional values.
Sensor Timing
The sensor timing for a Yosemitech Y514
- #define Y514_WARM_UP_TIME_MS = 1300
- Sensor::
_warmUpTime_ms; time before sensor responds after power - 1.3 seconds (1300ms). - #define Y514_STABILIZATION_TIME_MS = 8000
- Sensor::
_stabilizationTime_ms; time between "StartMeasurement" command and stable reading - 8sec (8000ms). - #define Y514_MEASUREMENT_TIME_MS = 2000
- Sensor::
_measurementTime_ms; the Y514 takes ~2000ms to complete a measurement.
Chlorophyll Concentration
The chlorophyll concentration variable from a Yosemitech Y514
- Range is 0 to 400 µg/L or 0 to 100 RFU
- Accuracy is ± 1 %
YosemitechY514_ Chlorophyll:: YosemitechY514_Chlorophyll(YosemitechY514* parentSense,
const char* uuid = "",
const char* varCode = "Y514Chloro") explicit
Construct a new YosemitechY514_
Parameters | |
---|---|
parentSense | The parent YosemitechY514 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 "Y514Chloro". |
- #define Y514_CHLORO_RESOLUTION = 1
- Decimals places in string representation; chlorophyll concentration should have 1 - resolution is 0.1 µg/L / 0.1 RFU.
- #define Y514_CHLORO_VAR_NUM = 0
- Sensor variable number; chlorophyll concentration is stored in sensorValues[0].
- #define Y514_CHLORO_VAR_NAME = "chlorophyllFluorescence"
- Variable name in ODM2 controlled vocabulary; "chlorophyllFluorescence".
- #define Y514_CHLORO_UNIT_NAME = "microgramPerLiter"
- Variable unit name in ODM2 controlled vocabulary; "microgramPerLiter" (µg/L)
- #define Y514_CHLORO_DEFAULT_CODE = "Y514Chloro"
- Default variable short code; "Y514Chloro".
Temperature
The temperature variable from a Yosemitech Y514
- Range is 0°C to + 50°C
- Accuracy is ± 0.2°C
YosemitechY514_ Temp:: YosemitechY514_Temp(YosemitechY514* parentSense,
const char* uuid = "",
const char* varCode = "Y514Temp") explicit
Construct a new YosemitechY514_
Parameters | |
---|---|
parentSense | The parent YosemitechY514 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 "Y514Temp". |
- #define Y514_TEMP_RESOLUTION = 1
- Decimals places in string representation; temperature should have 1 - resolution is 0.1°C.
- #define Y514_TEMP_VAR_NUM = 1
- Sensor variable number; temperature is stored in sensorValues[1].
- #define Y514_TEMP_VAR_NAME = "temperature"
- Variable name in ODM2 controlled vocabulary; "temperature".
- #define Y514_TEMP_UNIT_NAME = "degreeCelsius"
- Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)
- #define Y514_TEMP_DEFAULT_CODE = "Y514Temp"
- Default variable short code; "Y514Temp".
Define documentation
#define Y514_NUM_VARIABLES = 2
#include <src/sensors/YosemitechY514.h>
Sensor::
#define Y514_INC_CALC_VARIABLES = 0
#include <src/sensors/YosemitechY514.h>
Sensor::
#define Y514_WARM_UP_TIME_MS = 1300
#include <src/sensors/YosemitechY514.h>
Sensor::
#define Y514_STABILIZATION_TIME_MS = 8000
#include <src/sensors/YosemitechY514.h>
Sensor::
#define Y514_MEASUREMENT_TIME_MS = 2000
#include <src/sensors/YosemitechY514.h>
Sensor::
#define Y514_CHLORO_RESOLUTION = 1
#include <src/sensors/YosemitechY514.h>
Decimals places in string representation; chlorophyll concentration should have 1 - resolution is 0.1 µg/L / 0.1 RFU.
#define Y514_CHLORO_VAR_NUM = 0
#include <src/sensors/YosemitechY514.h>
Sensor variable number; chlorophyll concentration is stored in sensorValues[0].
#define Y514_CHLORO_VAR_NAME = "chlorophyllFluorescence"
#include <src/sensors/YosemitechY514.h>
Variable name in ODM2 controlled vocabulary; "chlorophyllFluorescence".
#define Y514_CHLORO_UNIT_NAME = "microgramPerLiter"
#include <src/sensors/YosemitechY514.h>
Variable unit name in ODM2 controlled vocabulary; "microgramPerLiter" (µg/L)
#define Y514_CHLORO_DEFAULT_CODE = "Y514Chloro"
#include <src/sensors/YosemitechY514.h>
Default variable short code; "Y514Chloro".
#define Y514_TEMP_RESOLUTION = 1
#include <src/sensors/YosemitechY514.h>
Decimals places in string representation; temperature should have 1 - resolution is 0.1°C.
#define Y514_TEMP_VAR_NUM = 1
#include <src/sensors/YosemitechY514.h>
Sensor variable number; temperature is stored in sensorValues[1].
#define Y514_TEMP_VAR_NAME = "temperature"
#include <src/sensors/YosemitechY514.h>
Variable name in ODM2 controlled vocabulary; "temperature".
#define Y514_TEMP_UNIT_NAME = "degreeCelsius"
#include <src/sensors/YosemitechY514.h>
Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)
#define Y514_TEMP_DEFAULT_CODE = "Y514Temp"
#include <src/sensors/YosemitechY514.h>
Default variable short code; "Y514Temp".