Soil Moisture Detection using Arduino
Soil Moisture Detection using
Arduino
Just Arduino Things | TW TechieTube
Control your Garden by knowing the temperature of the soil.
Principle:
The Soil Moisture Sensor uses capacitance to measure dielectric permittivity of the surrounding medium. In soil, dielectric permittivity is a function of the water content. The sensor creates a voltage proportional to the dielectric permittivity, and therefore the water content of the soil.
Components Required:-
- Arduino UNO (1)
- Soil Moisture Sensor with Interface (1)
- Breadboard (1)
- Jumper Cables (1)
- Piezo Buzzer / LED (1)
- Arduino UNO (1)
- Soil Moisture Sensor with Interface (1)
- Breadboard (1)
- Jumper Cables (1)
- Piezo Buzzer / LED (1)
Construction:-
A very Simple Project to detect the Moisture content in soil.
In this project You will work on LM393 microprocessor interface.
Arduino UNO - Touch sensor Connections
5v - Vcc
Gnd - Gnd
Digital Data - D3/D6
Metal rod board terminal to the interface should be given,
terminal should be placed on soil, and interface should
be away from moisture.
Any Digital pins can be connected for Ip's and Op's
except for D1 & D2(TX/RX pins)
Code:
int sensorPin = D3;
int sensorValue;
int limit = 300;
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
sensorValue = digitalRead(sensorPin);
Serial.println("Digital Value : ");
Serial.println(sensorValue);
if (sensorValue<limit) {
digitalWrite(13, HIGH);
}
else {
digitalWrite(13, LOW);
}
delay(1000);
}
Note: analogRead, digitalRead and sensor terminal can be changed, for required output!
Do make the Project, Take a snap and Tag us @techwiz_india
A very Simple Project to detect the Moisture content in soil.
In this project You will work on LM393 microprocessor interface.
Arduino UNO - Touch sensor Connections
5v - Vcc
Gnd - Gnd
Digital Data - D3/D6
Metal rod board terminal to the interface should be given,
terminal should be placed on soil, and interface should
be away from moisture.
Any Digital pins can be connected for Ip's and Op's
except for D1 & D2(TX/RX pins)
Code:
int sensorPin = D3;
int sensorValue;
int limit = 300;
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
sensorValue = digitalRead(sensorPin);
Serial.println("Digital Value : ");
Serial.println(sensorValue);
if (sensorValue<limit) {
digitalWrite(13, HIGH);
}
else {
digitalWrite(13, LOW);
}
delay(1000);
}
Note: analogRead, digitalRead and sensor terminal can be changed, for required output!
Do make the Project, Take a snap and Tag us @techwiz_india
Comments
Post a Comment