Earth Moisture Unit
SKU: U019
EARTH unit is a Soil Moisture Sensor for measuring the moisture in soil and similar materials.
The soil moisture sensor is pretty straight forward to use. The two large exposed pads function as
probes for the sensor, together acting as a variable resistor. The higher moisture that is in the soil
means the better the conductivity between the two so that the sensor will result in a lower resistance,
and a higher SIG out.
You can read the moisture in soil by ADC. Inside this Unit we put an extra potentiometers to change
the measurement range.
Product Features
•
•
•
•
Adjustable threshold, including 10K adjustable resistor
Analog & Digital output
Program Platform: Arduino, UIFlow(Blockly, Python)
Two Lego-compatible holes
Kit includes
•
•
1x EARTH unit
1x GROVE Cable
Application
•
Potted soil moisture monitoring
Example
1. Arduino IDE
The code below is incomplete. To get the complete code, please click here.
#include
void setup() {
M5.begin();
dacWrite(25, 0);//disable the speak noise
pinMode(26, INPUT);// set digital pin
}
uint16_t analogRead_value = 0;
uint16_t digitalRead_value = 0;
void loop() {
analogRead_value = analogRead(36);// read analog value of EARTH
digitalRead_value = digitalRead(26);// read digital value of EARTH
}
2. UIFlow
To get the complete code, please click here.
Schematic
PinMap
M5Core(GROVE B)
GPIO36
GPIO26
5V
GND
EARTH Unit
AnalogSignal
Pin
DigitalSignal Pin
5V
GND
https://m5stack.com/collections/m5-unit/products/earth-sensor-unit/12-99-19
很抱歉,暂时无法提供与“U019”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+29.686391+3.58990
- 国内价格
- 1+23.71436
- 5+23.08657
- 10+22.38790