
水滴雨水感測器 單面5.0*4.0公分2感測面積 雙輸出帶模擬輸出與數位輸出
- 貨號
- 7268231(A2-7)
- 分類
- 其他類型感測器
- 庫存
- 有庫存(0)
商品說明 水滴雨水感測器 大面積 雨滴感測器模組 產品介紹 水滴雨水感測器 ,可用於各種天氣狀況的監測,並轉成數定信號和AO輸出。 產品介紹: 感測器採用高品質FR-04材料(單面),超大面積5.0*4.0CM,並用鍍鎳處理表面,具有對抗氧化,導電性,及壽命方面更優越的性能; 比較器輸出,信號乾淨,波形好,驅動能力強,超過15mA; 配電位器調節靈敏度; 工作電壓3.3V-5V 輸出形式:數字開關量輸出(0和1)和模擬量AO電壓輸出; 設有固定螺栓孔,方便安裝 小板PCB尺寸:3.2cm x 1.4cm 使用寬電壓LM393比較器 功能介紹: 接上5V電源,電源指示燈亮,感應板上沒有水滴時, DO輸出為高電平,開關指示燈滅,滴上一滴水,DO輸出為低電平,開關指示燈亮,刷掉上面的水滴,又恢復到,輸出高電平狀態。 AO模擬輸出,可以連接單片機的AD口檢測滴在上面的雨量大小。 DO TTL數字輸出也可以連接單片機檢測是否有雨。 接線方式: VCC:接電源正極(3-5V) GND: 接電源負極 DO:TTL開關信號輸出 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 }




