- 描述
- 評價 (0)
描述
描述
Arduino 類比 TDS 水質檢測模組 | 總溶解固體檢測模組 | TDS 水質硬度傳感器
Arduino 類比 TDS 水質檢測模組 專為檢測 TDS 水質設計的模組, TDS(Total Dissolved Solids),中文名總溶解固體,又稱溶解性固體總量,表明1升水中溶有多少毫克溶解性固體。一般來說,TDS值越高,表示水中含有的溶解物越多,水就越不潔淨。因此,TDS值的大小,可作為反映水的潔淨程度的依據之一。
常用的TDS檢測設備為TDS筆,雖然價格低廉,簡單易用,但不能把數據傳給控制系統,做長時間的在線監測,並做水質狀況分析。使用專門的儀器,雖然能傳數據,精度也高,但價格很貴。為此,我們專門推出了這款 類比 TDS 水質檢測模組 ,連接至arduino控制器後,就可用於測量水的TDS值。
該產品專為arduino設計,即插即用,使用簡單方便。3.3~5.5V的寬電壓供電,0~2.3V的模擬信號輸出,使得這款產品兼容5V、3.3V控制系統,能非常方便的接到現成的控制系統中使用。測量用的激勵源採用交流信號,可有效防止探頭極化,延長探頭壽命的同時,也增加了輸出信號的穩定性。TDS探頭為防水探頭,可長期浸入水中測量。
該產品可應用於生活用水、水培等領域的水質檢測。有了這個傳感器,就可輕鬆DIY一套TDS檢測儀了,輕鬆檢測水的潔淨程度,為你的水質把好關。
Arduino 類比 TDS 水質檢測模組 產品參數
信號轉接板
- 輸入電壓:3.3~5.5V
- 輸出信號:0~2.3V
- 工作電流: 3~6mA
- TDS測量範圍:0~1000ppm
- TDS測量精度:±10% FS(25℃)
- 尺寸:42*32mm
- 模塊接口:PH2.0-3P
- 電極接口:XH2.54-2P
TDS探頭
- 探針數量:2
- 總體長度:83cm
- 連線接口:XH2.54-2P
- 顏色:黑色
- 其他:防水探頭
引腳說明
|
|
Arduino 端口接法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
/*************************************************** DFRobot Gravity: Analog TDS Sensor / Meter For Arduino <https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_TDS_Sensor_/_Meter_For_Arduino_SKU:_SEN0244> Created 2017-8-22 By Jason <jason.ling@dfrobot.com@dfrobot.com> GNU Lesser General Public License. See <http://www.gnu.org/licenses/> for details. All above must be included in any redistribution /***********Notice and Trouble shooting*************** 1. This code is tested on Arduino Uno and Leonardo with Arduino IDE 1.0.5 r2 and 1.8.2. 2. More details, please click this link: <https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_TDS_Sensor_/_Meter_For_Arduino_SKU:_SEN0244> ****************************************************/ #define TdsSensorPin A1 #define VREF 5.0 // analog reference voltage(Volt) of the ADC #define SCOUNT 30 // sum of sample point int analogBuffer[SCOUNT]; // store the analog value in the array, read from ADC int analogBufferTemp[SCOUNT]; int analogBufferIndex = 0,copyIndex = 0; float averageVoltage = 0,tdsValue = 0,temperature = 25; void setup() { Serial.begin(115200); pinMode(TdsSensorPin,INPUT); } void loop() { static unsigned long analogSampleTimepoint = millis(); if(millis()-analogSampleTimepoint > 40U) //every 40 milliseconds,read the analog value from the ADC { analogSampleTimepoint = millis(); analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin); //read the analog value and store into the buffer analogBufferIndex++; if(analogBufferIndex == SCOUNT) analogBufferIndex = 0; } static unsigned long printTimepoint = millis(); if(millis()-printTimepoint > 800U) { printTimepoint = millis(); for(copyIndex=0;copyIndex<SCOUNT;copyIndex++) analogBufferTemp[copyIndex]= analogBuffer[copyIndex]; averageVoltage = getMedianNum(analogBufferTemp,SCOUNT) * (float)VREF / 1024.0; // read the analog value more stable by the median filtering algorithm, and convert to voltage value float compensationCoefficient=1.0+0.02*(temperature-25.0); //temperature compensation formula: fFinalResult(25^C) = fFinalResult(current)/(1.0+0.02*(fTP-25.0)); float compensationVolatge=averageVoltage/compensationCoefficient; //temperature compensation tdsValue=(133.42*compensationVolatge*compensationVolatge*compensationVolatge - 255.86*compensationVolatge*compensationVolatge + 857.39*compensationVolatge)*0.5; //convert voltage value to tds value //Serial.print("voltage:"); //Serial.print(averageVoltage,2); //Serial.print("V "); Serial.print("TDS Value:"); Serial.print(tdsValue,0); Serial.println("ppm"); } } int getMedianNum(int bArray[], int iFilterLen) { int bTab[iFilterLen]; for (byte i = 0; i<iFilterLen; i++) bTab[i] = bArray[i]; int i, j, bTemp; for (j = 0; j < iFilterLen - 1; j++) { for (i = 0; i < iFilterLen - j - 1; i++) { if (bTab[i] > bTab[i + 1]) { bTemp = bTab[i]; bTab[i] = bTab[i + 1]; bTab[i + 1] = bTemp; } } } if ((iFilterLen & 1) > 0) bTemp = bTab[(iFilterLen - 1) / 2]; else bTemp = (bTab[iFilterLen / 2] + bTab[iFilterLen / 2 - 1]) / 2; return bTemp; } |
感測結果
樣例代碼上傳完畢後,打開Arduino IDE的串口監視器。將TDS探頭插入需要測量的水中,輕輕攪拌幾下,觀察串口監視器上面打印的數值,此數值就是水的TDS值。如下圖所示。

arduino兼容的TDS傳感器,用於測量水的TDS值,TDS數值可反應水的潔淨程度,可應用於生活用水、水培等領域的水質檢測。
TDS (Total Dissolved Solids),中文名:總溶解固體,又稱溶解性固體總量,表明1升水中溶有多少毫克溶解性固體。一般來說,TDS值越高,表示水中含有的溶解物越多,水就越不潔淨。因此,TDS值的大小,可作為反映水的潔淨程度的依據之一。
(圖片來自網絡)
常用的TDS檢測設備為TDS筆,雖然價格低廉,簡單易用,但不能把數據傳給控制系統,做長時間的在線監測,並做水質狀況分析。使用專門的儀器,雖然能傳數據,精度也高,但價格很貴。為此,我們專門推出了這款arduino兼容的TDS傳感器,連接至arduino控制器後,就可用於測量水的TDS值。
Arduino 類比 TDS 水質檢測模組 專為arduino設計,即插即用,使用簡單方便。3.3~5.5V的寬電壓供電,0~2.3V的模擬信號輸出,使得這款產品兼容5V、3.3V控制系統,能非常方便的接到現成的控制系統中使用。測量用的激勵源採用交流信號,可有效防止探頭極化,延長探頭壽命的同時,也增加了輸出信號的穩定性。TDS探頭為防水探頭,可長期浸入水中測量。
該產品可應用於生活用水、水培等領域的水質檢測。有了這個傳感器,就可輕鬆DIY一套TDS檢測儀了,輕鬆檢測水的潔淨程度,為你的水質把好關。
注意:
TDS探頭不能用於55℃以上的水中。
TDS探頭放置位置不能太靠近容器邊緣,否則會影響示數。
TDS探頭頭部與導線為防水,可浸入水中,但連線接口處與信號轉接板不防水,請注意使用。
特性
1.寬電壓工作:3.3~5.5V
2.0~2.3V模擬信號輸出,兼容5V、3.3V兩種控制系統
3.激勵源為交流信號,有效防止探頭極化
4.防水探頭,可長期浸入水中測量
5.Arduino兼容,Gravity接口,連線簡單,即插即用,無需焊接
技術規格
- 信號轉接板:
- 輸入電壓:3.3~5.5V
- 輸出信號:0~2.3V
- 工作電流: 3~6mA
- TDS測量範圍:0~1000ppm
- TDS測量精度:±10% FS(25℃)
- 尺寸:42*32mm
- 模塊接口:PH2.0-3P
- 電極接口:XH2.54-2P
- TDS探頭:
- 探針數量:2
- 總體長度:83cm
- 連線接口:XH2.54-2P
- 顏色:黑色
- 其他:防水探頭
配送清單
- TDS信號轉接板 x1
- 防水TDS探頭 x1
- Gravity 3PIN模擬傳感器線 x1
相關文檔
Gravity: Analog TDS Sensor/Meter for Arduino
1.The probe can not be used in water above 55 degrees centigrade.
2.The probe can not be left too close to the edge of the container, otherwise it will affect the reading.
3.The head and the cable of the probe are waterproof, but the connector and the signal transmitter board are not waterproof. Please be careful.
FEATURES
- Wide Voltage Input: 3.3~5.5V
- Good Compatibility Output: 0~2.3V analog signal output, compatible with 5V or 3.3V controller
- AC Excitation Source: effectively prevent probe from polarization
- Waterproof Probe
- Easy to Use: Arduino compatible, simple connection, plug and play without soldering
SPECIFICATION
Signal Transmitter Board
- Input Voltage: 3.3 ~ 5.5V
- Output Voltage: 0 ~ 2.3V
- Working Current: 3 ~ 6mA
- TDS Measurement Range: 0 ~ 1000ppm
- TDS Measurement Accuracy: ± 10% F.S. (25 ℃)
- Module Size: 42 * 32mm
- Module Interface: PH2.0-3P
- Electrode Interface: XH2.54-2P
TDS probe
- Number of Needle: 2
- Total Length: 83cm
- Connection Interface: XH2.54-2P
- Color: Black
- Other: Waterproof Probe
評價 (0)
相關商品
-
液體 / 水質 感測
Gravity 數位型非接觸式液位感測器模組 水位感測器模組
0 out of 5NT$460原始價格:NT$460。NT$425目前價格:NT$425。 (未稅)加入購物車產品速覽 -
液體 / 水質 感測
Gravity: 模擬電導率計 / 模擬電導率傳感器/儀表(K=10)
0 out of 5NT$3,650原始價格:NT$3,650。NT$3,160目前價格:NT$3,160。 (未稅)加入購物車產品速覽 -
液體 / 水質 感測
Gravity: Analog Turbidity Sensor 光學濁度感測器模組 類比輸出 Arduino 專用液體濁度感測器
0 out of 5NT$430原始價格:NT$430。NT$385目前價格:NT$385。 (未稅)加入購物車產品速覽 -
液體 / 水質 感測
YF-201C 透明水流量傳感器 透明流量計 渦輪流量計 4分流量傳感器
0 out of 5NT$155原始價格:NT$155。NT$135目前價格:NT$135。 (未稅)加入購物車產品速覽
商品評價
目前沒有評價。