JSS Mahavidhyapeetha Jss Science and Technology University: Sri Jayachamarajendra College of Engineering
JSS Mahavidhyapeetha Jss Science and Technology University: Sri Jayachamarajendra College of Engineering
JSS Mahavidhyapeetha Jss Science and Technology University: Sri Jayachamarajendra College of Engineering
Report of event 4
Topic:- Plant Watering System With The Nodemcu ESP8266 Board And The
Blynk App
Submitted By
5 KUSHAL M 01JCE21EI023
6 KUSHAL P 01JCE21EI0024
7 PRATHEEK H B 01JCE21EI034
8 SUDEEP N 01JCE21EI050
Submitted To
P RAJESHWARI
Assistant professor
Department of E&I
Sri Jayachamarajendra College of
Engineering,
JSS Science and Technology University,
Mysore– 570006
1
INTRODUCTION
The project focuses on designing a plant watering system using the NodeMCU
ESP8266 board and the latest Blynk update. As an instrumentation engineering
project, our objective is to create an automated system that ensures the optimal
watering of plants, based on their specific moisture requirements. By integrating the
NodeMCU ESP8266 board with Blynk, we can remotely monitor and control the
watering system through a smartphone application.
With the latest Blynk update, we can leverage its user-friendly interface to monitor
real-time data and control the watering system remotely. The Blynk application
allows users to set desired moisture levels for different types of plants, and the
system will adjust watering accordingly. This ensures that plants receive adequate
water based on their specific needs, leading to healthier growth and conservation of
water resources.
In addition to providing automated watering, our system will also include sensors to
measure soil moisture levels, temperature, and humidity. These sensors will
continuously monitor the plant's environment, providing valuable data for further
analysis and optimization of watering schedules. By collecting and analyzing this data,
we can make informed decisions to improve plant health and optimize water
consumption.
Overall, the integration of the NodeMCU ESP8266 board and the new Blynk update
offers a convenient and efficient solution for plant watering. Through this project, we
aim to demonstrate the potential of instrumentation engineering in creating smart
systems that enhance plant care and contribute to sustainable practices.
2
COMPONENTSREQUIRED
SL.NO COMPONENTSNAME
1 Nodemcu ESP8266 board
2 Soil moisture sensor
3 Relay module
4 LCD display
5 I2C module
6 Breadboard
7 Jumper wires
8 Mini water pump
9 Mini water pipe
10 9v Battery
NodeMCUESP8266
The NodeMCU ESP8266 is a popular development board that combines an
ESP8266 Wi-Fi module with a microcontroller unit (MCU) and provides an easy-to-
use platform for building Internet of Things (IoT) projects. The working principle
of the NodeMCU ESP8266 can be summarized as follows:
Microcontroller Unit (MCU): The NodeMCU ESP8266 is built around a
microcontroller unit (MCU) based on the ESP8266 chip. The MCU is
responsible for executing program instructions, controlling input/output
(I/O) operations, and managing communication with other devices.
Wi-Fi Connectivity: One of the key features of the NodeMCU ESP8266 is its
built-in Wi-Fi module. The Wi-Fi module enables the NodeMCU to connect
to wireless networks, allowing it to communicate with other devices and
access the internet.
Firmware and Programming: The ESP8266 chip comes with a firmware
preloaded, which provides essential functions for Wi-Fi connectivity and
3
networking. Users can program the NodeMCU using various programming
languages and integrated development environments (IDEs) such as
Arduino IDE or Lua-based NodeMCU firmware.
GPIO Pins: The NodeMCU ESP8266 has several General Purpose
Input/Output (GPIO) pins that can be used to interface with external
sensors, actuators, and other electronic components. These GPIO pins
allow the NodeMCU to read sensor data, control outputs, and interact with
the physical world.
Power Supply: The NodeMCU ESP8266 requires a power supply to operate.
It can be powered either through a USB connection or an external power
source such as a battery or power adapter.
SoilMoistureSensor:
As it name suggests, a soil moisture sensors measures the volumetric water
content of soil. Soil moisture sensor can either use resistance or capacitance
changes to measure water content in soil.
LiquidCrystalDisplay
An LCD (Liquid Crystal Display) is a type of flat-panel display commonly used in
electronic devices to provide visual information. It consists of multiple layers,
including two polarized panels with a liquid crystal solution in between. When an
electric current is applied, the liquid crystals align to control the amount of light
passing through the panels, creating visible text, numbers, and graphics.
MiniWaterPump
A mini water pump is a small-sized pump designed for various applications that
require pumping or circulating liquids. These pumps are typically compact,
5
lightweight, and have lower flow rates compared to larger pumps. They are
commonly used in small-scale systems such as aquariums, fountains, hydroponics,
and small water feature projects.
JumperWires
Jumper wires are electrical wires used to create temporary connections between components on a
breadboard, printed circuit board (PCB), or other electronic prototyping platforms. They are essential
tools for building and testing circuits, allowing for easy and flexible connections without the need
for soldering.
Breadboard
The basic structure of a breadboard consists of a plastic board with a grid of holes or sockets.
These holes are interconnected by conductive metal strips running underneath the board.
The most common type of breadboard is the solderless breadboard, where the holes are
designed to accommodate the leads of electronic components.
6
Circuitdiagram
Program:-
/*Plant watering system with new blynk update
https://srituhobby.com
*/
#include <LiquidCrystal_I2C.h>
7
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
bool Relay = 0;
#define sensor A0
#define waterPump D3
void setup()
{ Serial.begin(9600);
pinMode(waterPump, OUTPUT);
digitalWrite(waterPump, HIGH);
lcd.init();
lcd.backlight();
lcd.setCursor(1, 0);
lcd.print("System Loading");
lcd.setCursor(a, 1);
lcd.print(".");
8
delay(500);
lcd.clear();
timer.setInterval(100L, soilMoistureSensor);
BLYNK_WRITE(V1) {
Relay = param.asInt();
if (Relay == 1) {
digitalWrite(waterPump, LOW);
lcd.setCursor(0, 1);
lcd.print("Motor is ON ");
} else {
digitalWrite(waterPump, HIGH);
lcd.setCursor(0, 1);
lcd.print("Motor is OFF");
void soilMoistureSensor() {
Blynk.virtualWrite(V0, value);
9
lcd.setCursor(0, 0);
lcd.print("Moisture :");
lcd.print(value);
lcd.print(" ");
void loop() {
Working
The circuit works as follows:
• The soil moisture sensor measures the moisture levels in the soil.
• The NodeMCU board receives the data from the soil moisture sensor.
• The NodeMCU board decides whether to turn on the water pump based on
the moisture levels in the soil.
• If the NodeMCU board decides to turn on the water pump, it sends a signal
to the relay module.
• The Blynk app is used to control and monitor the plant watering system.
The Blynk app allows users to adjust the watering schedule, view the
moisture levels in the soil, and receive alerts if the plant needs water.
10
Advantages
The project to make a plant watering system with the NodeMCU ESP8266 board and the
new Blynk update offers several advantages for instrumentation engineering:
1. Automation: The system allows for the automation of plant watering, eliminating
the need for manual intervention. This automation ensures that plants receive
the right amount of water at the right time, promoting healthy growth and
reducing the risk of over or under watering.
2. Remote Monitoring and Control: With the Blynk update, the NodeMCU ESP8266
board can be connected to the internet, enabling remote monitoring and control
of the plant watering system. This feature allows users to monitor plant health
and water levels, adjust watering schedules, and even receive alerts or
notifications on their smartphones.
3. Energy Efficiency: The NodeMCU ESP8266 board is known for its low power
consumption, making it energy-efficient for long-term operation. By leveraging
this board in the project, the plant watering system can operate efficiently
without significantly impacting energy bills.
4. Scalability: The project can be easily scaled to accommodate multiple plants or a
larger garden. By incorporating additional sensors and actuators, such as soil
moisture sensors, the system can be expanded to cater to different plant types or
varying watering requirements.
5. Data Logging and Analysis: The Blynk update provides features for data logging,
allowing users to collect and analyze plant-related data over time. This
information can be valuable for understanding plant behavior, optimizing
watering schedules, and making informed decisions regarding plant care.
6. Integration with IoT Ecosystem: The NodeMCU ESP8266 board and Blynk
platform are compatible with various IoT devices and services. This compatibility
opens up opportunities for integrating the plant watering system with other
11
smart home devices, weather data, or cloud-based services, enhancing the
overall functionality and versatility of the system.
Overall, the project offers a combination of automation, remote monitoring and control,
energy efficiency, scalability, data logging, and integration capabilities that can greatly
benefit instrumentation engineering and contribute to efficient plant care and
management
DISADVANTAGES
There are a few potential disadvantages of using the NodeMCU ESP8266 board
and the new Blynk update for a plant watering system, particularly from the
perspective of instrumentation engineering. Here are two possible drawbacks:
1. Reliability and Stability: The NodeMCU ESP8266 board and the Blynk
update may not provide the highest level of reliability and stability for
critical instrumentation applications. The wireless communication between
the board and the Blynk server may be subject to interference or
connectivity issues, leading to unreliable operation of the watering system.
In instrumentation engineering, where accuracy and precision are crucial,
any instability or unreliability in the system can lead to inaccurate
measurements or improper control of the plant watering process.
2. Limited Control and Customization: The Blynk platform, while convenient
for IoT projects, may have limitations in terms of control and customization.
As an instrumentation engineer, you might require more advanced control
features and customization options to meet specific project requirements.
The Blynk platform may not provide the flexibility needed for fine-tuning
the watering system's behavior or integrating it with other instrumentation
systems. This limitation could restrict the system's ability to adapt to
varying plant watering needs or integrate with other sensors and control
mechanisms in an instrumentation setup.
Future
Scope
12
Here are some potential areas for future development and improvement:
Enhanced Sensor Integration: Expand the system's capability by integrating
additional sensors to monitor various environmental parameters such as
soil moisture, temperature, humidity, light intensity, and pH level. This data
can be utilized to optimize watering schedules, provide real-time feedback,
and adjust irrigation patterns accordingly.
Intelligent Watering Algorithms: Implement advanced algorithms and
13