Arduino Smart Irrigation project for kids

Arduino Smart Irrigation project for kids

Overview

This project deals with a way to save water and also helps farmers to tell whether the soil needs water or not from this project we can save wastage of water in the fields.

In this project we have used a Temperature Sensor (LM 35)  which tells the temperature of the soil from that temperature we can calculate how much water we have to give in the fields and we also get to know that when we have to give water into the fields. On detecting the need for water according to temperature the motor will get start automatically.

Hardware required 

  1. Arduino Uno R3
  2. NPN Transistor
  3. Resistor
  4. DC Motor
  5. LED Red
  6. LED Green
  7. BreadBoard
  8. Jumper Wires
  9. Temperature Sensor(LM35)

Schematic Diagram

Fig 1.  Circuit Diagram

Arduino Code : 

const int LM35 = A0;
const int motor = 13;
const int LedRed = 12;
const int LedGreen = 11;


void setup() {
  Serial.begin(9600);
  pinMode(motor, OUTPUT);
  pinMode(LedRed, OUTPUT);
  pinMode(LedGreen, OUTPUT);
  delay(2000);
  }

void loop() {
  int value = analogRead(LM35);
  float Temperature = value * 500.0 / 1024.0;

  if (Temperature > 50){
    digitalWrite(motor, HIGH);
    digitalWrite(LedRed, HIGH);
    digitalWrite(LedGreen, LOW);
  }
  else {
    digitalWrite(motor, LOW);
    digitalWrite(LedRed, LOW);
    digitalWrite(LedGreen, HIGH);
  }
  
   delay(1000);
}

Precautions

  1. Connections should be done properly.
  2. Arduino is case Sensitive so code accordingly.
  3. Give different colors to the wires.
  4. Resistors to be used with sensitive devices.

Do you have questions regarding our STEM program?

Contact us anytime.

Take your first step into the magical world of coding for kids

Share:

More Posts

Send Us A Message

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

STEM Labs

STEM LAB for Schools

If you are a school searching for a cutting-edge makerspace solution that goes beyond conventional education, look no further. Partner with Makers’ Muse to unlock a world of innovation and transformative learning experiences for your students. 

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Leave a Reply