รหัสสินค้า | AS00563 |
หมวดหมู่ | Grove Modules |
ราคา | 985.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
ดูรายละเอียดการต่อ และ ตัวอย่าง arduino / python code ได้ที่ Click
Description
Interface: 2.54-3Pin
Output Voltage: 0 ~ 3VDC
Cable Length: 1.5m
Dimension(L x W): 175 x 30mm / 6.89 x 1.18 inches
PROJECTS
Project 1. Saving Plants - DIY Plant Watering Device
Introduction:
To avoid ending up with yellow and dead leaves due to a water shortage, this project introduces making an auto plant watering device to save the plants.
Connect the sensor and the main control board according to the picture and wiring comparison table below.
Color | port |
---|---|
Red | VCC |
Black | GND |
Yellow | Signal |
Black | GND |
Before using the sensor, we need to calibrate to get the measurement range of the sensor.
void setup() {
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop() {
Serial.println(analogRead(A0)); //connect sensor and print the value to serial
delay(100);
}
Open the serial port monitor and set the baud rate to 9600
Record the sensor value when the probe is exposed to the air as "Value 1". This is the boundary value of dry soil “Humidity: 0%RH”. Due to different humidity in the air, this value range is generally between 520-640.
Take a cup of water and insert the probe into it. The recommended depth is between "Recommend Depth" and not more than the "Warning Line" on the board.
When the sensor value is 0, it is the boundary value of moist soil “Humidity: 100%RH”. At this time, according to the scale on the board, record the depth of the sensor's insertion into the water. When used in soil, it is also recommended to insert this depth.
The range can be divided into three sections: dry, wet, water. Their related values are:
Because the value of the sensor will be affected by the depth of the soil and the tightness of the soil, only the relative humidity of the soil can be detected. We divided the range of humidity into three equal parts, indicating dry, wet, and very humid. The two data recorded before are the humidity interval. For example: the reading in the air is 540, and the reading in the water is 0, so that it can be divided into three sections: dry, wet and very wet. Their related values are:
Dry: (570, 380]
Wet: (380, 190]
Very wet: (190, 0]
Attention
Since this sensor will detect soil moisture based on the principle of capacitive sensing, it will show different humidity when placed in different soil moisture, different tightness, and different insertion depth. Even in the same place and at the same depth, when the second insertion is made, since the first extraction has caused loosening of the soil, the humidity may be lower than the first reading.
Humidity is inversely proportional to the reading.
Due to the different air humidity in different regions and different weathers, and there may be differences between individual sensors, the feedback value in the air may be between 660-500 (DC5V, 10-bit ADC).
Bring the data from the air just recorded to line 17 of the test code below.
const int AirValue = ; //you need to change this value that you had recorded in the air
Bring the data from the water just recorded to line 18 of the test code below.
const int WaterValue = ; //you need to change this value that you had recorded in the water
Test Code:
/***************************************************
This example reads Analog Waterproof Capacitive Soil Moisture Sensor.
Created 2019-10-25
By Felix Fu <Felix.Fu@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.Connection and Diagram can be found here
2.This code is tested on Arduino Uno.
****************************************************/
const int AirValue = 570; //you need to change this value that you had recorded in the air
const int WaterValue = 0; //you need to change this value that you had recorded in the water
int intervals = (AirValue - WaterValue)/3;
int soilMoistureValue = 0;
void setup() {
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop() {
soilMoistureValue = analogRead(A0); //put Sensor insert into soil
if(soilMoistureValue > WaterValue && soilMoistureValue < (WaterValue + intervals))
{
Serial.println("Very Wet");
}
else if(soilMoistureValue > (WaterValue + intervals) && soilMoistureValue < (AirValue - intervals))
{
Serial.println("Wet");
}
else if(soilMoistureValue < AirValue && soilMoistureValue > (AirValue - intervals))
{
Serial.println("Dry");
}
delay(100);
}
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,406,176 ครั้ง |
ผู้ชมทั้งหมด | 5,909,254 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 25 ก.ย. 2568 |