Lesson 31 Soil Moisture Detection
Introduction
The Soil Moisture Sensor module is a simple sensor that measures the soil moisture. When
the soil moisture is insufficient, the output value of the sensor will decrease; on the other
hand, the value will increase when there’s enough water. The surface of the sensor is
gilded to prolong its life.
The CM Module consists of a comparator LM393 and extremely simple external circuits.
When using the module, you can set a threshold via the blue potentiometer beforehand.
When the input analog value reaches the threshold, the digital pin S will output a Low
level.
Components
- 1 * Raspberry Pi
- 1 * GPIO Extension Board
- 1 * 40-Pin GPIO Cable
- 1 * Breadboard
- 1 * Soil Moisture Sensor Module
- 1 * LM393 CM Module
- 1 * ADC0832 Module
- 1 * 2-Pin Wires
- 1 * 3-Pin Wires
- 1 * 4-Pin Wires
- 1 * 5-Pin Wires
Experimental Principle
The Fritzing images:
The Physical picture:
The experiment uses the Soil Moisture Sensor module to collect data of soil moisture and
display it on terminal.
Experimental Procedures
Step 1: Build the circuit