Home › Forums › Environmental Sensors › Yosemitech 511-a no readings?
Tagged: -9999.00 yosemitech 511-a
- This topic has 7 replies, 2 voices, and was last updated 2024-08-05 at 12:35 PM by Stephen H.
-
AuthorPosts
-
-
2024-08-03 at 12:41 AM #18609
Hey,
Using the Yosemitech 511-a, with the regular code[snippet below], on a ver 1.1 mayfly, using the older modbus wing.
I get
YosemitechY511 at modbus_0x02 reports temperature is -9999.0 degreeCelsius
YosemitechY511 at modbus_0x02 reports turbidity is -9999.00 nephelometricTurbidityUnitThe sensor turns on, wipes back and forth 3 times, I think. But no reading?
All the other sensor code is commented out, no hydros1 CTD is connected and should have no effect.
Any suggestions appreciated.
Thx.
Stephen
123456789101112131415161718192021222324252627282930313233/** Start [YosemitechY511] */#include <sensors/YosemitechY511.h>// NOTE: Extra hardware and software serial ports are created in the "Settings// for Additional Serial Ports" sectionbyte y511ModbusAddress = 0x02; // The modbus address of the Y511const int8_t y511AdapterPower = sensorPowerPin; // RS485 adapter power pin (-1 if unconnected)const int8_t y511SensorPower = 22; // Sensor power pinconst int8_t y511EnablePin = -1; // Adapter RE/DE pin (-1 if not applicable)const uint8_t y511NumberReadings = 5;// The manufacturer recommends averaging 10 readings, but we take 5 to minimize// power consumption// Create a Y511-A Turbidity sensor objectYosemitechY511 y511(y511ModbusAddress, modbusSerial, y511AdapterPower,y511SensorPower, y511EnablePin, y511NumberReadings);// End [YosemitechY511]Variable* variableList[] = {/* new MeterHydros21_Cond(&hydros),new MeterHydros21_Depth(&hydros),new MeterHydros21_Temp(&hydros),*/ // new CampbellOBS3_Turbidity(&osb3low, "", "TurbLow"),// new CampbellOBS3_Turbidity(&osb3high, "", "TurbHigh"),new ProcessorStats_Battery(&mcuBoard),new MaximDS3231_Temp(&ds3231),new Modem_SignalPercent(&modem),new YosemitechY511_Temp(&y511), // Temperature (YosemiTech_Y511-A_Temp)new YosemitechY511_Turbidity(&y511), // Turbidity (YosemiTech_Y511-A_Turbidity)}; -
2024-08-03 at 10:36 AM #18610
Also tried with another Yosemitech 511-a, same behavior so don’t think it’s an
issue with the sensor.
-
2024-08-05 at 7:45 AM #18611
I sent you some code last year that should work with the Y511-A. I can’t tell what other changes you’ve made to the code, but in snippet you posted above, the address should be 0x01 on line 7, not 0x02.
-
2024-08-05 at 8:42 AM #18613
Thanks Shannon,
I used mostly the same code but replaced the GUIDS and inserted into the originally working code for one of our current stations.
I initially tried with 0x01, and just tested again with 0x01. The wiper wipes 3 times and stops.
Readings for temp and turbidity are still -9999.0 and -9999.0.
Thanks.
-
2024-08-05 at 8:49 AM #18614
Does the 511-a lose cal over time? Is it confused because we had it un-powered for over a year?
I’m waiting for a USB to RS485 adapter to try to use the smartpc utility to see if calibrating the unit will do anything, as well as see if the units are working correctly.
Thanks.
-
2024-08-05 at 9:07 AM #18615
It’s probably easiest if you email me your code so I can check it. We used 8 of those sensors for 2 years in a continuous deployment and didn’t have any drift or loss of calibration, so I don’t think there’s anything else you need to do with it. If you’ve got another type of calibrated turbidity sensor or a turbidity standard, you could do a comparison to see if you’re getting similar results.
-
2024-08-05 at 10:18 AM #18616
Unfortunately no other turbidity sensor, just using distilled water.
Emailed you the current code.
Thanks!
-
2024-08-05 at 12:35 PM #18618
Thank you Shannon! Really appreciate you looking and finding the problem
in my code. Works now!
-
-
AuthorPosts
- You must be logged in to reply to this topic.