Skip to main content

Automatic Irrigation

 

The automatic watering system helps you to water plants at your home, garden or farm in your absence. It uses technology to detect the moisture level of the soil and automatically water the plant when there is no moisture detected in the soil.

required components

Arduinouno

Soil moisture sensor

Relay for Arduino

Dc motor pump

Breadboard

Jumper wires


CIRCUIT DIAGRAM 



ARDUINO CODE

int ACWATERPUMP = 13; //You can remove this line, it has no use in the program.
int sensor = 8; //You can remove this line, it has no use in the program.
int val; //This variable stores the value received from Soil moisture sensor.
void setup() {
  pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin, to send signal to relay
  pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from Soil moisture sensor.
}

void loop() { 
  val = digitalRead(8);  //Read data from soil moisture sensor  
  if(val == LOW) 
  {
  digitalWrite(13,LOW); //if soil moisture sensor provides LOW value send LOW value to relay
  }
  else
  {
  digitalWrite(13,HIGH); //if soil moisture sensor provides HIGH value send HIGH value to relay
  }
  delay(400); //Wait for few second and then continue the loop.
}



Comments

Popular posts from this blog

SMART AUTOMATION

  SMART AUTOMATION SYSTEM USING ARDUINO AND RAIN DROP SENSOR BLOCK DIAGRAM Arduino Code   #include<Servo.h> intrain_sensor = A0, servo = 3; Servo myServo; void setup() { Serial.begin(9600); myServo.attach(servo); myServo.write(0);   } void loop() { intsensorvalue=analogRead(rain_sensor); int motor = map(sensorvalue, 220,1023,180,0); myServo.write(motor); Serial.println("Sensor vlaue is  "); Serial.println(sensorvalue); Serial.println("Servo motor rotates by angle  "); Serial.println(motor); delay(1000);   }

VALLALAR ATL WEATHER STATION

  What is a DHT11 Sensor? DHT11 is a low-cost digital sensor for sensing temperature and humidity.  This sensor can be easily interfaced with any micro-controller such as Arduino, Raspberry Pi etc… to measure humidity and temperature instantaneously. CIRCUIT DIAGRAM ARDUINO CODE #include <SimpleDHT.h> // for DHT11,  //      VCC: 5V or 3V //      GND: GND //      DATA: 2 int pinDHT11 = 2; SimpleDHT11 dht11(pinDHT11); void setup() {   Serial.begin(115200); } void loop() {   // start working...   Serial.println("=================================");   Serial.println("VALLALAR ATL WEATHER STATION");      // read without samples.   byte temperature = 0;   byte humidity = 0;   int err = SimpleDHTErrSuccess;   if ((err = dht11.read(&temperature, &humidity, NULL)) != SimpleDHTErrSuccess) {     Serial.print("Read DHT11 failed, err="); Serial.println(err);del...

நூலகத்தின் பயன்கள்

  “நூலளவே ஆகுமாம் நுண்ணறிவு” என்கின்றார் அவ்வையார். அதாவது அவரவர் கற்ற நூல்களைப் பொறுத்தே அறிவுத்திறன் அமையும். இதற்கு முதுகெலும்பாய் திகழ்வது நூலகங்களே ஆகும். மனிதனது அறிவாற்றல் விருத்தி என்பது எந்தளவு புதிய விடயங்களை உள்வாங்கி இருக்கின்றனர் என்பதிலேயே தங்கியுள்ளது. நல்ல நூல்களைப் படிக்கப் படிக்க அறிவு பெருகும். மதிப்பு கூடும். கடந்த கால மற்றும் நிகழ்கால கலாச்சாரப் பதிவுகள் பாதுகாக்கப்பட்டு பராமரிக்கப்படும் ஒரு இடம் நூலகம் எனலாம். மேலும் மனிதகுல வரலாறு மற்றும் சிந்தனைகளின் எழுத்துப் பதிவுகளாக அமைந்திருக்கும் நூல்கள் ஒரு குறிப்பிட்ட இடத்தில் சேமித்து வைக்கப்பட்டு ஒருவருக்கோ பலருக்கோ வாசிக்க இடமளிக்கும் போது அவ்விடம் நூலகம் என்றழைக்கப்படுகிறது. மாணவர்களும், நூலகமும் உற்ற நண்பர்கள் ஆகும் போது மாணவர்களுக்கு அறிவுப் பஞ்சமே கிடையாது. இன்று பாடசாலைகளில் நூலகங்கள் வடிவமைக்கப்பட்டுள்ளன. இதனால் பாடப்புத்தகங்களை தவிர ஏனைய நல்ல புத்தகங்களையும் மாணவர்கள் படிக்க முடிகின்றது. மாணவர்களிடத்தில் நூலகப் பயன்பாட்டுப் பழக்கத்தை ஏற்படுத்தல், அகலவாசித்தல், ஆழவாசித்தல் என்பவற்றில் ஆர்வத்தை ஊட்டுதல் என்பத...