Wiki source code of Water Quality Sensors

Version 11.1 by Karry Zhuang on 2024/07/18 14:10

Hide last authors
Edwin Chen 1.1 1 **Table of Contents:**
2
3 {{toc/}}
4
5
Edwin Chen 7.1 6 = 1. DR-ECK Water EC Probe =
7
8 == 1.1 Specification: ==
9
10 * **Power Input**: DC7~~30
11 * **Power Consumption** : < 0.5W
12 * **Interface**: RS485. 9600 Baud Rate
13 * **EC Range & Resolution:**
14 ** **ECK0.01** : 0.02 ~~ 20 μS/cm
15 ** **ECK0.1**: 0.2 ~~ 200.0 μS/cm
16 ** **ECK1.0** : 2 ~~ 2,000 μS/cm  Resolution: 1 μS/cm
17 ** **ECK10.0** : 20 ~~ 20,000 μS/cm  Resolution: 10 μS/cm
18 * **EC Accuracy**: ±1% FS
19 * **Temperature Measure Range**: -20 ~~ 60 °C
20 * **Temperature Accuracy: **±0.5 °C
21 * **IP Rated**: IP68
22 * **Max Pressure**: 0.6MPa
23
24 == 1.2 Application for Different Range ==
25
26 [[image:image-20240714173018-1.png]]
27
28
29 == 1.3 Wiring ==
30
31
32 == 1.4 Mechinical Drawing ==
33
34 [[image:image-20240714174241-2.png]]
35
36
37 == 1.5 Installation ==
38
39
40 == 1.6 Maintain ==
41
42
Edwin Chen 8.1 43 == 1.7 RS485 Commands ==
44
45
Karry Zhuang 11.1 46 The address of the EC K10 sensor is 11
47
Karry Zhuang 10.1 48 The query data command is 11 03 00 00 00 02 C6 9B
49
Karry Zhuang 11.1 50 For example, the returned data is 11 03 04 (% style="color:red" %)**02 AE**(%%) 01 64 8B D0. 02 AE is converted to decimal 686,  K=10, EC: 6860uS/cm
Karry Zhuang 10.1 51
52
53 The address of the EC K1 sensor is 12
54
55 The query data command is 12 03 00 00 00 02 C6 A8
56
Karry Zhuang 11.1 57 For example, the returned data is 12 03 04 (% style="color:red" %)**02 AE**(%%) 01 64 B8 D0. 02 AE is converted to decimal 686,  K=1, EC: 686uS/cm.
Karry Zhuang 10.1 58
Karry Zhuang 11.1 59
Edwin Chen 8.1 60 = 2. DR-PH01 Water PH Sensor =
61
Edwin Chen 9.1 62 == 2.7 RS485 Commands ==
Edwin Chen 8.1 63
Edwin Chen 9.1 64
Karry Zhuang 11.1 65 The address of the pH  sensor is 10
Edwin Chen 9.1 66
Karry Zhuang 11.1 67 The query data command is 10 03 00 00 00 01 87 4B. After the query, 7 bytes will be returned.
Karry Zhuang 10.1 68
Karry Zhuang 11.1 69 For example, the returned data is 10 03 02 (% style="color:red" %)**02 AE**(%%) C4 9B.
70
71 02 AE is the pH value, which is converted into decimal to get 686, and then two decimal places are added to get the actual value. 02 AE means the current pH value is 6.86.
72
73
Edwin Chen 8.1 74 = 3. DR-ORP1 Water ORP Sensor =
75
Edwin Chen 9.1 76 == 3.7 RS485 Commands ==
Edwin Chen 8.1 77
Edwin Chen 9.1 78
Karry Zhuang 11.1 79 The address of the ORP sensor is 13
Edwin Chen 9.1 80
Karry Zhuang 11.1 81 The query data command is 13 03 00 00 00 01 87 78
Karry Zhuang 10.1 82
Karry Zhuang 11.1 83 For example, the returned data is 13 03 02 (% style="color:red" %)**02 AE**(%%) 80 9B.
Karry Zhuang 10.1 84
Karry Zhuang 11.1 85 02 AE is the ORP value, converted to decimal, the actual value is 686, 02 AE means the current ORP value is 686mV
86
87
Edwin Chen 8.1 88 = 4. DR-DO1 Dissolved Oxygen Sensor =
89
Edwin Chen 9.1 90 == 4.7 RS485 Commands ==
Edwin Chen 8.1 91
Karry Zhuang 11.1 92
Karry Zhuang 10.1 93 The address of the dissolved oxygen sensor is 14
Edwin Chen 9.1 94
Karry Zhuang 10.1 95 The query data command is 14 03 00 14 00 01 C6 CB
Edwin Chen 9.1 96
Karry Zhuang 11.1 97 After the query, 7 bytes will be returned. For example, the returned data is 14 03 02 (% style="color:red" %)**03 78**(%%) B5 55. 03 78 is the value of dissolved oxygen.
Karry Zhuang 10.1 98
99 Converted to decimal, it is 888. Add two decimal places to get the actual value. 03 78 means the current dissolved oxygen is 8.88mg/L
100
Karry Zhuang 11.1 101
Edwin Chen 8.1 102 = 5. DR-TS1 Water Turbidity Sensor =
103
Edwin Chen 9.1 104 == 5.7 RS485 Commands ==
105
Karry Zhuang 10.1 106
107 The address of the dissolved oxygen sensor is 15
108
Karry Zhuang 11.1 109 The query data command is 15 03 00 00 00 01 87 1E
Karry Zhuang 10.1 110
Karry Zhuang 11.1 111 For example, the returned data is 15 03 02 (% style="color:red" %)**02 9A**(%%) 09 4C
112
113 02 9A is the turbidity value, converted to decimal, it is 666, and then divided by 10, the actual value is 66.6, 02 9A means the current turbidity value is 66.6 NTU
114
Edwin Chen 7.1 115