Earth Soil Monitor Module Grove Compatible Analog and Digital Output
Save 0
SKU: U2I-BG-1498183
Share this product
Description
Description:
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 ran ge.
Product Features:
Adjustable threshold, including 10K adjustable resistor
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
The code below is incomplete. To get the complete code, please clickhere.
#include <M5Stack.h> 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 }