รายละเอียด
โมดูลวัดความชื้นในดิน
Humidity Sensor
ตัวอย่างโค๊ด
-
// กำหนดพิน LED 1 -
int ledPin = 2;
-
// กำหนดพิน LED 2
-
int ledPin3 = 3;
-
// กำหนดพินที่ใช้สำหรับอ่านค่า analog
-
int analogPin = 5;
-
// ตัวแปรเก็บค่า analog
-
int val = 0;
-
-
void setup() {
-
// กำหนดโหมดของ LED 1 เป็น OUTPUT
-
pinMode(ledPin, OUTPUT);
-
// กำหนดโหมดของ LED 2 เป็น OUTPUT
-
pinMode(ledPin3, OUTPUT);
-
// เริ่มต้นใช้งาน Serial communication ที่ 9600 bps
-
Serial.begin(9600);
-
}
-
-
void loop() {
-
// อ่านค่า analog จากพินที่กำหนด
-
val = analogRead(analogPin);
-
-
// แสดงค่า analog ที่อ่านได้ผ่าน Serial
-
Serial.print("val = ");
-
Serial.println(val);
-
-
// ตรวจสอบค่า analog ถ้าน้อยกว่า 500
-
if (val < 500) {
-
// ปิด LED 1 และเปิด LED 2
-
digitalWrite(ledPin, LOW);
-
digitalWrite(ledPin3, HIGH);
-
}
-
else {
-
// เปิด LED 1 และปิด LED 2
-
digitalWrite(ledPin, HIGH);
-
digitalWrite(ledPin3, LOW);
-
}
-
-
// หน่วงเวลา 100 มิลลิวินาที
-
delay(100);
-
}
-
Free Shipping Soil Hygrometer Humidity Detection Module Moisture Water Sensor for Arduino
Brand new and high quality
This is a simple water sensor, can be used to detect soil moisture
Module Output is high level when the soil moisture deficit,or output is low
Can be used in module plant waterer device, and the plants in your garden no need people to manage
Operating voltage: 3.3V~5V
Dual output mode,analog output more accurate
A fixed bolt hole for easy installation
With power indicator (red) and digital switching output indicator (green)
Having LM393 comparator chip, stable
Panel PCB Dimension: Approx.3cm x 1.5cm
Soil Probe Dimension: Approx. 6cm x 3cm
Cable Length: Approx.21cm
Interface Description(4-wire):
VCC: 3.3V-5V
GND: GND
DO: digital output interface(0 and 1)
AO: analog output interface
Instructions for Use:
Soil moisture module is most sensitive to the ambient humidity is generally used to detect the moisture content of the soil
Module to reach the threshold value is set in the soil moisture, DO port output high, when the the soil humidity exceeds a set threshold value, the module D0 output low
The digital output D0 can be connected directly with the microcontroller to detect high and low by the microcontroller to detect soil moisture
The digital outputs DO shop relay module can directly drive the buzzer module, which can form a soil moisture alarm equipment
Analog output AO and AD module connected through the AD converter, you can get more precise values of soil moisture
ขาย โมดูลวัดความชื้นในดิน ราคา 40.00 บาท ในไทย
40.00 บาท
- จำนวนสินค้า: 29
- รุ่น: Humidity Sensor
- น้ำหนัก: 7.50g
- SKU: 3006
Product Views: 5124
สินค้าที่เกี่ยวข้อง
เป็น PH SENSOR MODULE ใช้ร่วมกับ บอร์ด Arduino ได้
เหมาะสำหรับไปทำระบบควบคุมอัตโนมัติ
วิธีการต่อใช้งาน
- ขา TO คือ แสดงค่าอุณห..
800.00 บาท
ตรวจจับน้ำฝน โมดูลเซ็นเซอร์ตรวจจับน้ำฝน
Rain Sensor MH-RD..
35.00 บาท
infrared sensor module
โมดูลคำอธิบาย
โมดูลเซ็นเซอร์โมดูลปรับตัวให้เข้ากับแสงโดยรอบ,มีคู่ของเปล่งอินฟราเ..
25.00 บาท
โมดูลวัดแรงสั่นสะเทือน Vibration Sensor
* สัญาณที่ออกเป็น Digital Output 0-1 (ON/OFF) โดยมีโวลุ่มปรับระดับความแรงในการสั่นได้
รายละเอียด
..
40.00 บาท
เป็น module Relay สำหรับ Drive ไฟ 220V โดยใช้สัญญาน 5V จากไมโครคอนโทรลเลอร์ โดย module จะมีวงจรป้องกันในตัว
เพื่อไม่ให้ Controler เสียหาย
คุณส..
40.00 บาท
เป็น Relay Module ที่ใช้ไฟเลี้ยงโมดูล 12V และ Input รองรับแรงดัน 5-12V สามาถต่อกับไฟรถยนต์ได้
หรือ ใช้งาน กับ โซลาเซล แบตเตอรี่ 12V โดยสามาถ..
40.00 บาท