Skip to content

Commit 02a3219

Browse files
authored
Merge pull request #423 from EnviroDIY/y700_y4000
Y700 y4000
2 parents daaa618 + 17d742c commit 02a3219

File tree

10 files changed

+819
-10
lines changed

10 files changed

+819
-10
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535

3636
### Added
3737
- Support Campbell RainVUE10 SDI-12 Precipitation Sensor (#416)
38+
- Support YosemiTech Y700 Pressor Sensor ([#421](https://github.com/EnviroDIY/ModularSensors/issues/421))
3839

3940
### Removed
4041

4142
### Fixed
43+
- Fixed bug in YosemiTech Y4000 Sonde ([#420](https://github.com/EnviroDIY/ModularSensors/issues/420))
4244
- Fixed non-concurrent data fetch for SDI-12 when *NOT* using debugging.
4345
- Fixed internet connection when in "testing mode"
4446
- Allow a non-zero wait time for SDI-12 sensors

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.33.4
1+
0.34.0

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = ModularSensors
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 0.33.4
41+
PROJECT_NUMBER = 0.34.0
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

examples/menu_a_la_carte/menu_a_la_carte.ino

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,6 +2230,38 @@ Variable* y560Temp =
22302230
#endif
22312231

22322232

2233+
#if defined BUILD_SENSOR_YOSEMITECH_Y700
2234+
// ==========================================================================
2235+
// Yosemitech Y700 Pressure Sensor
2236+
// ==========================================================================
2237+
/** Start [yosemitech_y700] */
2238+
#include <sensors/YosemitechY700.h>
2239+
2240+
// NOTE: Extra hardware and software serial ports are created in the "Settings
2241+
// for Additional Serial Ports" section
2242+
2243+
// NOTE: Use -1 for any pins that don't apply or aren't being used.
2244+
byte y700ModbusAddress = 0x70; // The modbus address of the Y700
2245+
const int8_t y700AdapterPower = sensorPowerPin; // RS485 adapter power pin
2246+
const int8_t y700SensorPower = A3; // Sensor power pin
2247+
const int8_t y700EnablePin = -1; // Adapter RE/DE pin
2248+
const uint8_t y700NumberReadings = 5;
2249+
// The manufacturer recommends averaging 10 readings, but we take 5 to minimize
2250+
// power consumption
2251+
2252+
// Create a Y700 pressure sensor object
2253+
YosemitechY700 y700(y700ModbusAddress, modbusSerial, y700AdapterPower,
2254+
y700SensorPower, y700EnablePin, y700NumberReadings);
2255+
2256+
// Create pressure and temperature variable pointers for the Y700
2257+
Variable* y700Pres =
2258+
new YosemitechY700_Pressure(&y700, "12345678-abcd-1234-ef00-1234567890ab");
2259+
Variable* y700Temp =
2260+
new YosemitechY700_Temp(&y700, "12345678-abcd-1234-ef00-1234567890ab");
2261+
/** End [yosemitech_y700] */
2262+
#endif
2263+
2264+
22332265
#if defined BUILD_SENSOR_YOSEMITECH_Y4000
22342266
// ==========================================================================
22352267
// Yosemitech Y4000 Multiparameter Sonde (DOmgL, Turbidity, Cond, pH, Temp,

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
"owner": "envirodiy",
325325
"library id": "2078",
326326
"url": "https://github.com/EnviroDIY/YosemitechModbus",
327-
"version": "~0.3.2",
327+
"version": "~0.4.0",
328328
"note": "Arduino library for communication with Yosemitech sensors via Modbus.",
329329
"authors": ["Sara Damiano", "Anthony Aufdenkampe"],
330330
"frameworks": "arduino",

0 commit comments

Comments
 (0)