Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

Plant Watering System

Importance and Utility of the Plant Watering System

The Plant Watering System is an essential project for anyone interested in automating the watering process for plants. It is particularly useful for individuals who have a busy schedule or frequently travel, as it ensures that plants receive the necessary amount of water at the right time.

This system eliminates the need for manual watering, reducing the risk of overwatering or underwatering plants. It also provides convenience and peace of mind, as users can remotely monitor and control the watering process.

Project: Designing an Automated Plant Watering System

The objective of this project is to create an automated system that waters plants based on predefined parameters. The system will utilize an Arduino board to control various components and sensors to monitor soil moisture levels. When the moisture level falls below a certain threshold, the system will activate a water pump to water the plants until the desired moisture level is reached.

The functionality of the system includes:

  1. Monitoring soil moisture levels using a soil moisture sensor.
  2. Activating a water pump when the moisture level is below the desired threshold.
  3. Automatically stopping the water pump when the moisture level reaches the desired threshold.
  4. Providing real-time data and notifications through a graphical user interface or mobile application.

List of Components:

  1. Arduino Uno - 1x
  2. Soil Moisture Sensor - 1x
  3. Water Pump - 1x
  4. Relay Module - 1x
  5. Power Supply - 1x
  6. Jumper Wires - As required
  7. Breadboard - 1x (Optional)
  8. Enclosure - 1x (Optional)

Example Code 1: Reading Soil Moisture Level

int moistureSensorPin = A0; // Analog pin for moisture sensor
int moistureThreshold = 500; // Threshold value for moisture level

void setup() {
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  int moistureLevel = analogRead(moistureSensorPin); // Read analog value from sensor
  Serial.print("Moisture Level: ");
  Serial.println(moistureLevel);

  if (moistureLevel < moistureThreshold) {
    // Activate water pump
    // Code to control the relay module and water pump
  }

  delay(1000); // Delay for 1 second
}

Example Code 2: Controlling Water Pump

int pumpPin = 9; // Digital pin connected to relay module

void setup() {
  pinMode(pumpPin, OUTPUT); // Set pump pin as output
}

void loop() {
  // Check moisture level and activate pump if required
  // Code to read moisture level and control the water pump

  digitalWrite(pumpPin, HIGH); // Activate water pump
  delay(5000); // Keep pump on for 5 seconds
  digitalWrite(pumpPin, LOW); // Turn off water pump
  delay(1000); // Delay for 1 second
}

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.