Hello Friends, in this video I will show you How to Interface Arduino Leonardo with Moisture Sensor
. im using the Arduino Leonardo and Moisture Sensor
for Making it. its very portable and very easy to make.
BUY Good Quality PCB From Pcbway 😊:-https://www.pcbway.com/setinvite.aspx?inviteid=313942
Things That I used:
Arduino Leonardo :
Moisture Sensor :
RGB Led:
Jumper wire :
Arduino cable:
That's it for today guys, I hope you like this video thanks for watching and don't forget to Like, Comment Subscribe and Share.
Subscribe:
https://www.youtube.com/channel/UCo9z6MOxNNOTdXKgcoexHQg...
Google+:
#Soil Moisture Sensor
#SmartTronics
#ArduinoLeonardo
#Pcbway
#SmartTronics
Soil moisture sensors measure the volumetric water content in soil.[1] Since the direct gravimetric measurement of free soil moisture requires removing, drying, and weighing of a sample, soil moisture sensors measure the volumetric water content indirectly by using some other property of the soil, such as electrical resistance, dielectric constant, or interaction with neutrons, as a proxy for the moisture content.
The relation between the measured property and soil moisture must be calibrated and may vary depending on environmental factors such as soil type,temperature, or electric conductivity. Reflected microwave radiation is affected by the soil moisture and is used for remote sensing in hydrology and agriculture. Portable probe instruments can be used by farmers or gardeners.
Soil moisture sensors typically refer to sensors that estimate volumetric water content. Another class of sensors measure another property of moisture in soils called water potential; these sensors are usually referred to as soil water potential sensors and include tensiometers and gypsum blocks.
The Arduino Leonardo is an open source precise microcontroller board based on the ATmega32U4 SMD chip. It has 23 digital input/output pins (of which 7 can be used as PWM outputs and 12 can be used as analog inputs), a 16 MHz crystal, a USB connection, a power jack, an in-circuit system programming (ICSP) header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer (or appropriate wall power adapter) with a Micro USB cable or power it with a AC-to-DC adapter or battery to get started.
The Leonardo differs from all preceding Arduino boards in that the user-programmable ATmega32U4 AVR microcontroller has built-in USB functionality, eliminating the need for a secondary processor. This makes the Leonardo more versatile: in addition to supporting a virtual (CDC) serial/COM port interface, it can appear to a connected computer as a mouse and keyboard.
code:-
//Smart Tronics www.youtube.com/SmartTronics
//Moisture Sensor
int WET= 3;
int DRY= 2;
int Sensor= 0; // Soil Sensor input at Analog PIN A0
int value= 0;
void setup() {
Serial.begin(9600);
pinMode(WET, OUTPUT);
pinMode(DRY, OUTPUT);
delay(2000);
}
void loop() {
Serial.print("MOISTURE LEVEL : ");
value= analogRead(Sensor);
value= value/10;
Serial.println(value);
if(value<50)
{
digitalWrite(WET, HIGH);
}
else
{
digitalWrite(DRY, HIGH);
}
delay(1000);
digitalWrite(WET, LOW);
digitalWrite(DRY, LOW);
}
Comments