COMLEX ENGINEERING ACTAVITY REPORT
ON
IOT - Based smart garden with weather station
Bachelor of science
Electrical Engineering
Submitted by Group no. 5
Roll no Name
223181 M.Shehzad Raza
223186 Hafiz Ahmad
223200 Rehan Ali
223205 Tayyab Ali
Submitted To
Department of Electrical Engineering
New Campus, Faisalabad
Engr. Ali Iqbal
Introduction
In recent years, the Internet of Things (IoT) has revolutionized various industries by enabling devices
to connect and communicate over the Internet. This project leverages IoT technology to develop a
Smart Garden with an integrated Weather Station System. The system aims to automate the process
of plant care by monitoring environmental conditions and controlling irrigation, enhancing the
efficiency and ease of gardening for users such as researchers, farmers, and hobbyists.
System Components
Arduino Uno:Arduino Uno is a micro-controller board based
on the ATmega328P (data-sheet). It has 14 digital input/output
pins (of which 6 can be used as PWM outputs), 6 analog
inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a
USB connection, a power jack, an ICSP header and a reset
button.
Sensors:
So, in this experiment we use 4 sensors. Their information is given below:
Temperature and Humidity Sensor (DHT11 or DHT22): Measures ambient
temperature and humidity.
The DHT11 is a basic, ultra low-cost digital temperature
and humidity sensor. It uses a capacitive humidity sensor
and a thermistor to measure the surrounding air and spits
out a digital signal on the data pin (no analog input pins
needed). It's simple to use but requires careful timing to
grab data.
Soil Moisture Sensor: Detects moisture levels in the
soil.
The Soil Moisture Sensor uses capacitance to
measure dielectric permittivity of the surrounding
medium. In soil, dielectric permittivity is a function of
the water content. The sensor creates a voltage
proportional to the dielectric permittivity, and
therefore the water content of the soil.
Rain Sensor: Senses the presence of rain to prevent unnecessary watering.
A rain sensor or rain switch is a switching device
activated by rainfall. There are two main applications
for rain sensors. The first is a water conservation device
connected to an automatic irrigation system that causes
the system to shut down in the event of rainfall.
Actuators:
Water Pump: Automates irrigation based on soil moisture
readings.
A 5V DC mini water pump is a small water pump
designed to operate on a 5-volt direct current (DC) power
supply. These pumps are commonly used in various
applications where a compact and low-power water
pumping solution is required. Operating Voltage : 2.5 ~
6V. Operating Current : 130 ~ 220mA.
Relay Module:Controls the operation of the water pump.
The primary function of a relay module is to switch
electrical devices or systems on and off. It also serves to
isolate control circuits, ensuring that low-power devices,
such as micro-controllers, can safely control higher
voltages and currents.
Display: 16x2 LCD : Displays real-time sensor data
locally for quick reference.
A 16×2 LCD display works by controlling the
liquid crystals to either block or allow light to pass
through, creating characters and symbols on the
screen. It's controlled by sending data and
commands to its controller, which in turn manages
the display of information.
Communication:
ESP8266 Wi-Fi Module: Provides internet connectivity, allowing remote
monitoring and control via a smartphone app.
Power Supply:
Provides reliable power to the ESP8266, sensors, and actuators.
Budget
5000 Rupees
Equipment quantity and price table
Equipment Quantity Price (PKR)
Arduino Uno 1 1900
DHT11 Sensor 1 350
Soil Moisture Sensor 1 200
Rain Sensor 1 190
16x2 LCD 1 450
Relay Module 1 130
Water Pump (5v) 1 250
Jumper Wires (Pack) 2 120
Breadboard 1 170
Power Supply (9v 1 120
battery)
WiFi Module 1 320
Total Price 4200
Connection Table
Component Pin on component Pin on Arduino
Uno
Rain Sensor VCC 5V
GND GND
Digital Output (DO) 4
Soil Moisture Sensor VCC 5V
GND GND
Analog Output (AO) A0
DHT11Module VCC 5V
GND GND
Data 5
WIFI Module (ESP8266) VCC 3.3V
GND GND
TX 2
RX 3
LCD (16x2) VSS GND
VDD 5V
VO Middle pin of 10
kΩ Potentiometer
RS 6
RW 7
E GND
D4 8
D5 9
D6 10
D7 11
A(Anode, LED +) GND
K(Cathode,LED-) 5V(with current L.R)
Relay Module VCC 5V
GND GND
IN1 12
Water Pump Positive Lead(+) NO (Normally Open) on
Relay
Negative Lead(-) COM(common) on
Relay(GND)
Sketch