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.

  • 4,689 views
  • 1 comment
  • 7 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

Automated Plant Watering System

Project in progress by Ammar Shahid

  • 4,425 views
  • 2 comments
  • 23 respects

Plant Watering System

Project showcase by Niko123

  • 3,690 views
  • 2 comments
  • 12 respects

Home Plant Watering System

Project tutorial by Alexander

  • 15,191 views
  • 2 comments
  • 42 respects

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 37,874 views
  • 5 comments
  • 21 respects

Automatic Plant Watering System with Arduino

Project tutorial by Team RobotGeek Projects Team

  • 32,775 views
  • 2 comments
  • 45 respects
Add projectSign up / Login