Project tutorial
Plant watering alarm system with arduino

Plant watering alarm system with arduino © CC BY

A device that warns us with light sound and a sign when our plant needs water.

  • 10,210 views
  • 2 comments
  • 13 respects

Components and supplies

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)
09507 01
Soldering iron (generic)

Apps and online services

About this project

A device that warns us with light sound and a sign when our plan needs water. The project was made by the students of the “Little Hackers” evening club of the Experimental Elementary School of Florina. The device contains a moisture sensor, a servo motor a led light and a buzzer. 

The moisture sensor is placed the plant pot and continuesly reads the moisture values. When that values fall under a certain limit the device warns us by:

  • Blinking the led light
  • Sending a beeping sound from the buzzer
  • Turning the small sign so that the “No water” sketch is shown

The final project was presented along with other projects from students of all schools of Florina at the 7th Students Festival for Digital Creations

Code

Plant water alarm code - arduinoArduino
#include <Servo.h>  

Servo myServo;      //The sign servo
int buzzerPin = 8;  //The Buzzer pin
int redLed = 9;     //The led pin
int moisture;       //The moisture value
 
void setup() {
  pinMode(buzzerPin,OUTPUT);   
  pinMode(redLed,OUTPUT);      
  myServo.attach(11;          
}
 
void loop() {
  moisture = analogRead(A0);             //Read the moisture from sensor
  moisture = map(moisture,0,1023,100,1); //Map the moisture values to 1-100. 
  if (moisture < 50) {                   //If moisture is low
    myServo.write(165);                  //Turn motor to "No water" sign
    digitalWrite(redLed,HIGH);           //Turn on the led light
    tone(buzzerPin, 2000, 500);          //Play a buzzer tone for halph a second
    delay(1000);                         //delay for a second
    digitalWrite(redLed,LOW);            //Turn off the led light  
    delay(1000);                         //Delay another second
  } else {                               //If moisture is OK
    digitalWrite(redLed,HIGH);           //Just turn on the led light 
    myServo.write(20);                   //and turn motor to "plant ok" sign
  }
}

Schematics

Schematic
wateralarm-en_vEgKS1Aqbl.fzz

Comments

Similar projects you might like

Plant Watering System

Project showcase by Niko123

  • 8,294 views
  • 3 comments
  • 19 respects

Automated Plant Watering System

Project in progress by Ammar Shahid

  • 8,855 views
  • 2 comments
  • 31 respects

Home Plant Watering System

Project tutorial by Alexander

  • 23,395 views
  • 4 comments
  • 61 respects

Plant Moisture Monitoring and Watering with LED Indicator

Project showcase by Rich Noordam

  • 6,621 views
  • 0 comments
  • 16 respects

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 62,573 views
  • 10 comments
  • 38 respects
Add projectSign up / Login