Skip to content

This project features an automated plant watering system that uses an Arduino programmed with Java. It employs a soil moisture sensor to monitor the soil's moisture level and activates a water pump when watering is needed, ensuring optimal plant care with minimal manual intervention.

Notifications You must be signed in to change notification settings

kpanesar88/automated-plant-watering-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Automated Plant Watering System

This Java application reads moisture levels from a sensor and controls a water pump based on those readings. It also displays the moisture level on an OLED screen and plots the data over time using StdDraw.

Features

  • Moisture Sensing: Continuously reads moisture levels from a connected sensor.
  • Water Pump Control: Activates a water pump based on moisture levels.
  • Data Visualization: Plots moisture levels over time using StdDraw.
  • OLED Display: Shows real-time moisture levels and status messages on an OLED display.

Requirements

  • Java: Ensure you have Java installed on your system.
  • Libraries:
    • Firmata4j: For communication with the Arduino board.
    • StdDraw: For plotting the moisture levels.
    • JSSC: For serial communication (Windows users).
  • Hardware:
    • Arduino board
    • Moisture sensor
    • Water pump
    • OLED display
  1. Connect Hardware:

    • Connect the moisture sensor to the analog pin (Pin 14).
    • Connect the water pump to the digital output pin (Pin 2).
    • Connect the OLED display via I2C.
  2. Configure the Port:

    • Update the myPort variable in the code with the correct port name for your Arduino board (e.g., COM3 for Windows or /dev/ttyUSB0 for Linux).
    • Update the Hardware pins or addresses for your Arduino Circuit/Board.

Troubleshooting

  • Connection Issues: Ensure the correct port is specified and that all hardware is properly connected.
  • Library Issues: Verify that all required libraries are included in the classpath.

Resources

About

This project features an automated plant watering system that uses an Arduino programmed with Java. It employs a soil moisture sensor to monitor the soil's moisture level and activates a water pump when watering is needed, ensuring optimal plant care with minimal manual intervention.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages