水滴雨水感測器 大面積 5.0*4.0 公分感測面積(單面) 雨滴感測器模組 雙輸出帶模擬輸出與數位輸出

-24%

水滴雨水感測器 大面積 5.0*4.0 公分感測面積(單面) 雨滴感測器模組 雙輸出帶模擬輸出與數位輸出

NT$181 NT$138 未稅

大面積型水滴雨水感測器  雨滴感測器模組 雙輸出帶模擬輸出與數位輸出

雨滴,下雨感測器,可用於各種天氣狀況的監測,並轉成數定信號和AO輸出。

尚有庫存

貨號: 7268231(A2-7) 分類: 標籤: , ,
  • 商品說明

商品說明

水滴雨水感測器 大面積 5.0*4.0 公分感測面積(單面) 雨滴感測器模組 雙輸出帶模擬輸出與數位輸出

水滴雨水感測器 雨滴感測器模組

水滴雨水感測器 ,可用於各種天氣狀況的監測,並轉成數定信號和AO輸出。
產品介紹:

  1. 傳感器採用高品質FR-04材料(單面),超大面積5.0*4.0CM,並用鍍鎳處理表面,具有對抗氧化,導電性,及壽命方面更優越的性能;
  2. 比較器輸出,信號乾淨,波形好,驅動能力強,超過15mA;
  3. 配電位器調節靈敏度;
  4. 工作電壓3.3V-5V
  5. 輸出形式:數字開關量輸出(0和1)和模擬量AO電壓輸出;
  6. 設有固定螺栓孔,方便安裝
  7. 小板PCB尺寸:3.2cm x 1.4cm
  8. 使用寬電壓LM393比較器

功能介紹:

  • 接上5V電源,電源指示燈亮,感應板上沒有水滴時, DO輸出為高電平,開關指示燈滅,滴上一滴水,DO輸出為低電平,開關指示燈亮,刷掉上面的水滴,又恢復到,輸出高電平狀態。
  • AO模擬輸出,可以連接單片機的AD口檢測滴在上面的雨量大小。
  • DO TTL數字輸出也可以連接單片機檢測是否有雨。

接線方式:

  1. VCC:接電源正極(3-5V)
  2. GND: 接電源負極
  3. DO:TTL開關信號輸出
  4. AO:模擬信號輸出

範例:

/* Flame Sensor analog example.


- If the Sensor Board is completely soaked; "case 0" will be activated and " Flood " will be sent to the serial monitor.
 - If the Sensor Board has water droplets on it; "case 1" will be activated and " Rain Warning " will be sent to the serial monitor.
 - If the Sensor Board is dry; "case 2" will be activated and " Not Raining " will be sent to the serial monitor.

*/

// lowest and highest sensor readings:
const int sensorMin = 0; // sensor minimum
const int sensorMax = 1024; // sensor maximum

void setup() {
 // initialize serial communication @ 9600 baud:
 Serial.begin(9600); 
}
void loop() {
 // read the sensor on analog A0:
 int sensorReading = analogRead(A0);
 // map the sensor range (four options):
 // ex: 'long int map(long int, long int, long int, long int, long int)'
 int range = map(sensorReading, sensorMin, sensorMax, 0, 3);
 
 // range value:
 switch (range) {
 case 0: // Sensor getting wet
 Serial.println("Flood");
 break;
 case 1: // Sensor getting wet
 Serial.println("Rain Warning");
 break;
 case 2: // Sensor dry - To shut this up delete the " Serial.println("Not Raining"); " below.
 Serial.println("Not Raining");
 break;
 }
 delay(1); // delay between reads
}