In this illustration we will going to wire the Moisture Sensor. These sensor can be used as a soil moisture to detect water level on the soil, if the soil moisture is depleted it will send a signal to HIGH. This module can be adopt on most common microcontroller like Arduino, Microchip, Raspberry Pi, Bagelbone, Launchpad and other microcontroller. This sensor uses two probes bar to pass the current through the soil, and it reads the resistance to get the moisture level, the more water into the soil the more soil conduct the electricity easily. Less resistance if the soil is dry and the conduction of electricity is poor.
The module uses an LM303 chip. These LM303 The LM393 series are dual independent precision voltages comparators capable of single or split supply operation. These chip are designed to permit a common mode range to ground level with single supply operation. Input offset voltage specification as low as 2.0mV to make this device an excellent selection for many applications such as automotive,industrial electronics.
These module adopt input power 3.3v to 5v and it has a voltage signal 0 to 4.2v at current 35mA. For the wiring and illustration we will going to use the Arduino as our controller to control the soil moisture sensor. Below are the required components to this lab.
Component Required
- 1x Arduino Board
- 1x Soil Moisture Probe
- 1x Solder less breadboard
- 1x Jumper wires or DuPont Wires
Wiring Guide
Arduino Sketch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/* * 14CORE TEST CODE FOR SOIL MOISTURE SENSOR * www.14core.com */ //int myLed = 10; int sensorPin = A0; // Analog select the input pin for the potentiometer int sensorValue = 0; // The variable to store the value coming from the sensor void setup() { //pinMode(myLed, OUTPUT); Serial.begin(9600); //Start Serial Communication at boud rate 9600 To verify the ourput } void loop() { sensorValue = analogRead(sensorPin); //Reads the value from the sensor delay(1000); Serial.print("sensor = " ); Serial.println(sensorValue); } |
Downloads
Download Soil Moisture Schematics Diagram | Zip
Download LM393 Datasheets | PDF
Good tutorial, simple to do this I was looking for.