Code Monkey home page Code Monkey logo

arduino_auto_plant_care's Introduction

Automated Plant Watering System This Arduino-based project aims to create an automated plant watering system that monitors the soil moisture levels of multiple plants and controls the water pumps accordingly. The system also features an OLED display for visual feedback and a rotary encoder for user input.

Hardware Components Arduino board (e.g., Arduino Uno, Nano, or Mega) Soil moisture sensors (4x) Relay modules (4x) Water pumps (4x) OLED display (I2C compatible) Rotary encoder Breadboard, jumper wires, and power supply

Pin Connections

Soil moisture sensors: MOISTURE_1: A0 MOISTURE_2: A1 MOISTURE_3: A2 MOISTURE_4: A3

Relay modules: RELAY_1: 2 RELAY_2: 3 RELAY_3: 4 RELAY_4: 5

Rotary encoder: ENCODER_A: 6 ENCODER_B: 7 ENCODER_BUTTON: 8

OLED display (I2C protocol): SCL: A5 (default SCL pin on most Arduino boards) SDA: A4 (default SDA pin on most Arduino boards)

Software Dependencies Arduino IDE U8g2 library for the OLED display Encoder library for the rotary encoder

Setup Install the required libraries using the Arduino IDE. Connect the hardware components according to the pin definitions. Upload the provided code to your Arduino board. Adjust the desired moisture level using the rotary encoder. How it works The system reads the moisture levels from the soil moisture sensors and computes the error based on the desired moisture level. A PID loop is used to calculate the appropriate pump time for each plant. The relay modules control the water pumps based on the calculated pump times. The OLED display shows the current moisture levels and pump times for each plant. The rotary encoder allows the user to adjust the desired moisture level, and the system recalculates the pump times accordingly.

Customization You can customize the code to suit your specific needs, such as adding more plants, adjusting the PID constants, or implementing different control algorithms. Make sure to update the pin definitions and hardware connections accordingly if you make any changes to the project.

Regenerate response

arduino_auto_plant_care's People

Contributors

robbiesturgill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.