ProjectReportonAutomatedWateringthePlantsUsingArduino
ProjectReportonAutomatedWateringthePlantsUsingArduino
net/publication/388027417
CITATIONS READS
0 467
1 author:
Asifur Rahman
Bangladesh University of Business and Technology
26 PUBLICATIONS 0 CITATIONS
SEE PROFILE
All content following this page was uploaded by Asifur Rahman on 15 January 2025.
Submitted By:
Table of Contents
Group Member List: ..................................................................................................................................... 2
Abstract ......................................................................................................................................................... 3
Acknowledgments......................................................................................................................................... 4
Chapter 1: Introduction ............................................................................................................................. 5
1.1 Problem Statement ........................................................................................................................ 5
1.2 Project Aim & Objectives ............................................................................................................. 5
Chapter 2: Background Study ................................................................................................................... 7
2. 1 Existing System ................................................................................................................................. 7
2.2 Need for the System ............................................................................................................................ 7
2.3 Proposed System ................................................................................................................................. 7
2.4 Scope of the Project ............................................................................................................................ 8
2.5 Feasibility Study ................................................................................................................................. 9
Chapter 3: Materials and Method ........................................................................................................... 10
3.1 Arduino ............................................................................................................................................. 10
3.2 Getting Started with Arduino ............................................................................................................ 11
3.3 Basic Arduino Code Definition: ....................................................................................................... 12
3.4 ARDUINO UNO PIN TYPE DEFINITIONS: ................................................................................. 14
3.5 Soil Moisture Sensor ......................................................................................................................... 14
3.6 DC Motor .......................................................................................................................................... 16
3.7 Relay ................................................................................................................................................. 19
Chapter 4: Performance Analysis ........................................................................................................... 22
4.1 Overview of the System .................................................................................................................... 22
4.2 Custom Water Pump Design ............................................................................................................. 23
4.3 Key Advantages of the System ......................................................................................................... 24
4.4 Challenges Faced .............................................................................................................................. 24
4.5 Future Enhancements ........................................................................................................................ 25
Chapter 5: Conclusion .............................................................................................................................. 26
2
1. Asifur Rahman
ID:22234103353
Intake: 50 Section: 07 Semester: Fall, 2024
4. MD Rasel Mamun
ID:22234103126
Intake: 50 Section: 07 Semester: Fall, 2024
Abstract
In modern agriculture and home gardening, the need for efficient water management systems has
become paramount to ensure sustainability and reduce water wastage. This project, titled "Auto-
mated Watering the Plants Using Arduino," presents a cost-effective and user-friendly solu-
tion for automating the irrigation process.
The system utilizes an Arduino Uno microcontroller as the core component to monitor and con-
trol the watering process. A Soil Moisture Sensor continuously measures the soil's moisture
level, determining whether the soil is dry or adequately hydrated. Based on the sensor readings,
the Arduino sends a signal to a Relay Module to activate or deactivate a DC Motor, which oper-
ates a water pump to irrigate the plants. The system is powered by a Rechargeable Battery to
ensure uninterrupted operation, making it suitable for remote or off-grid areas.
The proposed solution significantly reduces manual intervention, ensuring plants are watered
only when necessary, thereby conserving water and promoting efficient plant care. This project
is scalable and can be enhanced with additional features like a mobile app interface or weather-
based automation, making it an ideal starting point for smart irrigation systems.
4
Acknowledgments
First of all, we are thankful and expressing our gratefulness to Almighty Allah who offers us His
divine blessing, patience, mental and physical strength to complete this project work. We are
deeply indebted to our project supervisor, Ms. Nourin Khandaker, Lecturer, Department of
Computer Science and Engineering (CSE), Bangladesh University of Business and Technology
(BUBT). Her scholarly guidance, important suggestions, work for going through our drafts and
correcting them, and generating courage from the beginning to the end of the project work has
made the completion of this report possible. A very special gratitude goes out to all our friends
for their support and help to implement our work. The discussions with them on various topics of
our works have been very helpful for us to enrich our knowledge and conception regarding the
work. Last but not least; we are highly grateful to our parents and family members for supporting
us spiritually throughout writing this report and our life in general.
5
Chapter 1: Introduction
Watering plants is an essential but time-consuming task that, if not done correctly, can lead to
overwatering or underwatering, affecting plant health and growth. Manual irrigation is labor-in-
tensive and inefficient, especially for individuals with busy schedules or in agricultural settings
with large areas to manage. With the advancement of technology, automation offers a viable so-
lution to simplify and optimize irrigation practices.
This project, "Automated Watering the Plants Using Arduino," introduces a smart irrigation
system that automatically waters plants based on soil moisture levels. By integrating an Arduino
Uno, Soil Moisture Sensor, DC Motor, Relay Module, and a Rechargeable Battery, the sys-
tem ensures precise and timely watering, eliminating the guesswork and reducing water wastage.
This project combines affordability, reliability, and ease of use, making it accessible for both
home gardeners and small-scale agricultural applications.
Without such a system, there is a risk of overwatering, underwatering, and significant water re-
source wastage, all of which negatively impact plant health and sustainability.
• Measure Soil Moisture: Utilize a soil moisture sensor to continuously monitor the mois-
ture levels of the soil.
• Automate Watering: Implement a mechanism to automatically activate a water pump
via a relay module when the soil moisture falls below a pre-set threshold.
• Ensure Energy Efficiency: Power the system with a rechargeable battery to enable sus-
tainable operation, even in remote locations.
• Minimize Human Intervention: Develop a system that operates autonomously with
minimal manual input required.
• Enhance Scalability: Create a flexible design that can be scaled for larger agricultural
settings or upgraded with additional features like remote monitoring and weather-based
adjustments.
7
2. 1 Existing System
In the existing systems of plant care, most individuals rely on traditional manual watering, where
the person is responsible for monitoring and watering the plants at regular intervals. However,
this approach has a few notable limitations. Firstly, human intervention is required to ensure the
plants are watered according to their specific needs. This often results in inconsistent watering
schedules due to busy personal or professional lives, vacations, or forgetfulness. As a result,
plants can either be over-watered or under-watered, which leads to poor plant health. Over-wa-
tering can cause root rot and fungal infections, while under-watering can lead to wilting and
stunted growth. Moreover, the traditional manual watering method is time-consuming and ineffi-
cient, especially for individuals with multiple plants or those who travel often. While there are
some automated systems available, they are often expensive, complex, or difficult to maintain for
the average plant owner.
• Soil Moisture Sensor: The sensor detects the current moisture level in the soil. If the
moisture content falls below a predefined threshold, indicating the soil is dry, the sensor
sends a signal to the Arduino to activate the water pump. Once the moisture level returns
to an acceptable range, the sensor sends another signal to the Arduino, stopping the pump
and halting the watering process.
• Water Pump: The system uses a 5V DC motor to power the water pump. This pump is
simple, cost-effective, and easy to control using the Arduino microcontroller. The motor-
based pump is sufficient to deliver water to the plant without needing more complex and
expensive components such as 12V water pumps or relays.
• Arduino UNO: The heart of the system, Arduino UNO, serves as the controller. It pro-
cesses the data from the soil moisture sensor and uses that input to control the water
pump. It is programmed to perform automated actions based on the sensor readings, mak-
ing the system fully self-operating.
In terms of physical components, this system is compact, portable, and easy to set up, making it
an ideal solution for both home gardeners and office plant owners who may not have the time or
resources to tend to their plants regularly. Moreover, by using low-voltage components, the sys-
tem is safe, energy-efficient, and simple to maintain.
• Scalability: The system can handle multiple plants simultaneously. By adding more
moisture sensors and pumps, users can create a larger-scale automatic watering system to
cover a whole garden or multiple potted plants.
• Customization: The system can be adjusted to cater to various plant types and their spe-
cific watering needs. For example, different plants may require different moisture thresh-
olds, which can be programmed into the Arduino for more precise care.
• Remote Monitoring: As a future enhancement, the system could be connected to a
smartphone app or a web-based interface, allowing users to remotely monitor soil mois-
ture levels, check the system's status, and manually override the system when necessary.
• Advanced Features: Integrating other sensors such as temperature, humidity, or light
sensors could enable more sophisticated watering control. For instance, the system could
adjust the watering schedule based on ambient temperature or light intensity, providing
more tailored care for the plants.
• Integration with Smart Home Systems: The system could also be expanded to work
within the framework of existing smart home technologies, such as Amazon Alexa or
Google Assistant, providing voice control capabilities for users to monitor or control the
watering process.
9
2. Economic Feasibility: The economic feasibility of the project is strong due to its low
cost. The components required for the system are relatively inexpensive, and the overall
cost of building the system is affordable for most plant owners. By using low-cost com-
ponents such as a 5V DC motor and simple electronics, the system remains accessible
even for hobbyists or individuals who want to automate their plant care without a signifi-
cant investment. Additionally, the long-term savings from reduced water waste and fewer
plant care requirements make the system a worthwhile investment.
4. Social Feasibility: The social benefits of the system are significant. By automating the
watering process, the system promotes responsible water usage, ensuring that plants re-
ceive water only when necessary. This conservation approach can be particularly valua-
ble in areas facing water scarcity or where environmental sustainability is a priority. Fur-
thermore, the system offers convenience to users, especially those who travel frequently
or have busy schedules, ensuring that their plants receive the care they need even in their
absence. This technology can also inspire others to adopt more automated solutions in
their everyday lives, promoting the use of technology for practical purposes.
The Automatic Plant Watering System provides a practical, cost-effective, and efficient solu-
tion to the challenges of manual plant care. It ensures that plants receive the right amount of wa-
ter at the right time, promoting healthy growth while conserving water. The simplicity of its de-
sign, low cost, and ease of operation make it accessible to a wide range of users, from hobbyists
to busy professionals. As the system can be scaled, customized, and integrated with future tech-
nologies, it represents a valuable step forward in the automation of plant care.
10
3.1 Arduino
The Arduino Uno is a versatile microcontroller board equipped with 14 digital input/output
pins (6 of which can function as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a
USB connection, a power jack, an ICSP header, and a reset button. It contains everything
necessary to support the microcontroller, making it easy to start building projects. Users can con-
nect it to a computer via a USB cable or power it using an AC-to-DC adapter or a battery. The
board is robust, allowing for quick and simple experimentation. In case of errors, replacing the
microcontroller chip is inexpensive, enabling users to continue exploring without major setbacks.
The name “Uno” means “one” in Italian, symbolizing the launch of the first version of Arduino
Software (IDE) 1.0. This board became the reference model for the Arduino platform, paving the
way for newer versions of Arduino boards and software updates.
Microcontroller ATmega328P
Operating Voltage 5V
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Length 68.6 mm
Width 53.4 mm
Weight 25 g
Core Functions:
1. setup():
• This function is mandatory in every Arduino sketch and runs only once when the
program starts.
• It is commonly used to configure pin modes (e.g., INPUT or OUTPUT) and ini-
tialize libraries or hardware.
• Syntax: void setup() {
// Code to execute once
}
2. loop():
• Another essential function present in every Arduino sketch. The loop() runs re-
peatedly after setup() finishes, making it the core of most Arduino programs.
13
• This is where the primary code for the project resides, continuously executing to
handle tasks and respond to inputs.
• Syntax: void loop() {
// Code to execute repeatedly
}
Core Commands:
1. digitalRead(pin):
o Reads the state (HIGH or LOW) from a pin configured as an INPUT.
2. digitalWrite(pin, value):
o Sets a pin configured as an OUTPUT to either HIGH or LOW.
3. analogRead(pin):
o Reads an analog value from a pin, returning a value between 0 (LOW) and 1023
(HIGH).
o Used to get input from sensors that provide varying signals, such as temperature
sensors.
4. analogWrite(pin, value):
o Outputs a PWM (Pulse-Width Modulation) signal on a pin, with a value between
0 (LOW) and 255 (HIGH).
o Useful for controlling devices like servo motors or dimming LEDs.
• Definition: A technique used to simulate an analog signal on a digital pin by toggling the
pin rapidly between HIGH and LOW states.
• Value Range: 0 (0% duty cycle, equivalent to always LOW) to 255 (100% duty cycle,
equivalent to always HIGH).
• Usage: Commonly used with analogWrite() to control brightness, motor speed, or other
outputs requiring variable levels.
14
Resets 3.3 5 Ground Voltage Analog in- Serial Input or Digital External
Arduino volts volts puts, can output, pins with reference
in for comm.
sketch in in also be used HIGH or output op- voltage
Receive
on board sources as Digital tion of used for
and and and Trans- LOW
over 7V analog
out out mit PWM
(9V -
12V)
Arduino boards, such as the UNO, Lilypad, and Mini, share a common microcontroller but differ
in their features and form factors. For example, the Lilypad is optimized for wearable electronics
with conductive thread, while the Mini is compact and lacks USB ports or power outputs.
Applications:
1. Agriculture:
o Farmers use soil moisture sensors to optimize irrigation, improving water usage
and crop yields.
o They prevent over-watering and adjust irrigation based on real-time soil condi-
tions, even automating systems to skip watering after rainfall.
2. Urban and Residential Landscaping:
o Soil moisture sensors convert basic irrigation clocks into smart controllers, en-
hancing efficiency and conserving water.
3. Research:
o Sensors aid in climate studies, irrigation planning, and environmental science.
o Used in solute transport and soil respiration studies.
4. Simple Tools for Gardeners:
o Affordable devices help monitor plant moisture needs, requiring only a brief
probe insertion to indicate if soil is dry, moist, or wet.
5. Galvanic Cells: Leverage water’s electrolyte properties to produce a voltage for measur-
ing moisture.
Working Principle
A soil moisture sensor operates by applying a small charge to its electrodes and measuring elec-
trical resistance.
• Dry Soil: Increased resistance.
• Moist Soil: Decreased resistance.
3.6 DC Motor
A DC motor is a rotary electrical device that converts direct current (DC) electrical energy into
mechanical energy. Its operation is based on the principles of electromagnetism, utilizing the in-
teraction between a magnetic field and a current-carrying conductor to produce motion.
Basic Parts of a DC Motor
1. Axle: The shaft that transmits rotational motion.
2. Rotor (Armature): The rotating part of the motor, consisting of windings and a commu-
tator.
3. Stator: The stationary part that includes the motor casing and the magnetic field.
4. Commutator: A rotary switch that reverses the direction of current, ensuring smooth ro-
tation.
5. Field Magnets: Permanent magnets or windings that create a magnetic field.
6. Brushes: Conduct electricity between stationary and rotating parts.
Working Principle:
• A current-carrying conductor in a magnetic field experiences a force.
• The interaction between the rotor's current-induced magnetic field and the stator's field
generates rotational motion.
• This principle is based on Faraday's Law of Electromagnetism.
Types of DC Motors:
1. Permanent Magnet DC Motors: Use permanent magnets to create the field flux. Com-
mon in small applications like toys and appliances.
2. Series DC Motors: Have a few turns of thick wire in the field winding, suitable for high-
torque applications like cranes.
18
3. Shunt DC Motors: Feature separate field and armature circuits, providing constant speed
for tasks like fans.
4. Compound DC Motors: Combine series and shunt characteristics, offering versatility in
speed and torque.
Applications of DC Motors:
1. Household: Found in tools, toys, and appliances.
2. Retail: Used in conveyors and turntables.
3. Industrial: Large motors power braking systems, elevators, and steel mills.
4. Transportation: Essential for electric vehicles.
Advantages of DC Motors:
• Speed control over a wide range.
• High starting torque.
• Simple design and ease of maintenance.
DC motors remain a cornerstone in motion control, from small-scale tools to industrial machin-
ery. Despite the rise of AC motors, their reliability and efficiency in specific applications ensure
their continued relevance.
19
3.7 Relay
Working Principle:
1. Electromagnetism: When an electric current flows through the coil, it creates a magnetic
field.
2. Armature Movement: The magnetic field pulls the movable armature, opening or clos-
ing the relay contacts.
3. Switching Action: Depending on the relay's design, this movement either completes or
interrupts a circuit.
4. Return Mechanism: When the current stops, a spring or gravity returns the armature to
its original position.
Parts of a Relay:
1. Coil: Generates the magnetic field.
2. Core: Provides a low-reluctance path for the magnetic flux.
20
Relay Module:
• A relay module is a pre-assembled circuit that includes one or more relays and necessary
components like transistors, diodes, and connectors.
• It simplifies the integration of relays into projects and is often controlled by microcon-
trollers like Arduino or ESP32.
Types of Relays:
1. Electromechanical Relays (EMR): Use physical contacts and an electromagnet.
2. Solid-State Relays (SSR): Use semiconductors for faster switching and durability.
3. Latching Relays: Maintain their state without continuous power.
21
Design Considerations:
• Voltage Rating: Match the relay to the system voltage.
• Contact Material: Choose based on application requirements (e.g., gold for low re-
sistance or silver for durability).
• Coil Type: AC or DC operation.
• Snubber Circuits: Use to handle surge currents and reduce arcing.
Relays are indispensable components in modern electronics, offering reliability, efficiency, and
adaptability for countless applications. A relay module makes it even easier to incorporate this
technology into projects, whether you're automating your home or building industrial control
systems.
22
When we plan vacations, one of the recurring concerns has always been the well-being of our
plants. Plants require consistent care, particularly watering, which cannot be overlooked even for
a few days. The moisture level of the soil determines how much water a plant needs, and im-
proper watering—either too much or too little—can damage plant health. This challenge
prompted me to explore an automated solution that could independently manage watering while
maintaining optimal moisture levels in the soil. After thorough research and planning, I success-
fully developed an Automatic Plant Watering System using the Arduino UNO, combining
technology and creativity to care for plants efficiently.
The system leverages an Arduino UNO microcontroller to process sensor data and control the
pump. It uses a soil moisture sensor to detect moisture levels and a custom-made water pump to
deliver water. The decision to build a custom water pump was driven by the need to minimize
hardware complexity and cost while maintaining system efficiency.
The system operates in a continuous feedback loop, ensuring real-time responsiveness to the
moisture level of the soil. Here’s a detailed breakdown of its working mechanism:
23
• Diodes: These protect the circuit from voltage spikes caused by the motor's inductive
load.
• Transistors: These act as switches, enabling the Arduino to control the motor's opera-
tion.
• Resistors: These regulate the flow of current, ensuring stable and efficient functioning of
the circuit.
This setup allowed me to eliminate the need for a relay module, simplifying the design while
maintaining functionality. The custom pump is compact, efficient, and tailored to the specific re-
quirements of the system.
24
1. Circuit Design:
o Designing the custom water pump circuit required precise calibration of diodes,
transistors, and resistors to ensure smooth operation and compatibility with the
Arduino.
2. Sensor Calibration:
o The soil moisture sensor needed to be accurately calibrated to define the threshold
levels for "dry" and "wet" soil conditions.
3. Arduino Programming:
o Writing the code for the Arduino to process sensor data and control the pump in-
volved iterative testing to achieve accurate and efficient operation.
4. Durability:
o Ensuring the system could withstand outdoor conditions like temperature fluctua-
tions and humidity was essential for its reliability.
25
1. Remote Monitoring:
o Integrating IoT capabilities would allow users to monitor soil moisture and con-
trol the pump remotely using a smartphone or computer.
2. Power Efficiency:
o Adding solar panels could make the system self-sufficient in terms of power, re-
ducing dependency on external power sources.
3. Advanced Sensors:
o Using more sophisticated sensors could provide additional data, such as tempera-
ture and humidity, for better plant care.
4. Scalability:
o Adding multiple sensors and pumps could enable the system to manage larger
gardens or agricultural fields.
26
Chapter 5: Conclusion
The Automatic Plant Watering System demonstrates how technology can be effectively uti-
lized to solve everyday challenges. By automating the process of watering plants based on soil
moisture levels, this system ensures that plants receive the right amount of water without the
need for constant manual intervention. The use of an Arduino UNO and a custom-built water
pump not only simplifies the design but also keeps the system cost-effective and efficient.
This project highlights the practical applications of microcontroller-based automation, offering a
solution that is scalable, energy-efficient, and easy to maintain. It addresses a common problem
faced by plant owners, especially during vacations or busy schedules, by providing a reliable and
sustainable means of plant care.
Through this system, I was able to merge creativity with technical knowledge, gaining hands-on
experience in circuit design, programming, and problem-solving. The success of this project
opens up opportunities for future enhancements, such as integrating IoT capabilities for remote
monitoring or expanding the system for larger-scale applications. Ultimately, the Automatic
Plant Watering System serves as a perfect example of how small technological innovations can
have a significant impact on our daily lives.