Professional Documents
Culture Documents
An Iot-Based Smart Garden With Weather Station System
An Iot-Based Smart Garden With Weather Station System
System
1Norakmar binti Arbain @ Sulaiman, 2Muhamad Dan Darrawi bin Sadli
Faculty of Electrical Engineering (Computer Engineering)
Universiti Teknologi Mara (UiTM)
40450 Shah Alam, Selangor
1niezmar@gmail.com
2dandarrawi@gmail.com
I. INTRODUCTION
Nowadays, people tend to stay connected with internet
while doing everyday jobs such as laundry, watching
television and others. There are plenty of beneficial B. Weather Station
technologies have been evolve in agriculture industries
where, some of IoT devices can automatically spray the Weather Station is a device that can help the gardener
plant, pick a good vegetable based on its colour and daily to determine the humidity and temperature of the air. It
monitoring on the plants growth. Hence, this research also helpful in predicting the probability of the rain that
project will focus on producing an IoT based device that might occur by using the humidity and temperature sensor
can monitor and give online feedback to the user about and measure the current air values. The weather station can
their plant’s growing progress. The devices are capable to be supportive in determining the current weather and
monitor the plants and retain some data for future research. predict the future weather. A good weather prediction
analysis may help in reducing the water usage by turning
The proposed IoT device also will be implemented off the automatic water pump. Table II shows three
with a weather station sensor, where it can monitor and projects that are related to the project of Smart Garden
predict the pouring rain every day. Hence, the user can with Weather Station, which are Efficient Design of a Low
switch off the automatic watering for reducing the water Cost Portable Weather Station [4], Development of a Low
usage. The weather station sensor can determine the dew Cost Weather Station using Free Hardware and Software
point, humidity of the air, air pressure and light index. It [5] and Design of a Remote Weather Factors Monitoring
will beneficial the user, who are interested in researching System [6].
about their plant growth. The collected data can also be
shared through online mobile applications.
C. Sensor
Most important components of this project are the sensors.
1) Soil Moisturizing Sensor that used for detecting the
moisture of the soil. 2) Light Intensity Sensor for detecting
the brightness. 3) Barometric Pressure Sensor (BMP280)
to detect the temperature, humidity, atmospheric pressure
and altitude. 4) DHT11 for temperature and humidity.
D. Blynk Apps
Blynk Apps is a platform for creating an app for the
Internet of Things (IoT). This application can be used to
control Arduino, Raspberry Pi, and the components
through the internet. It has its own graphical interface and
easy to use. The concept of this application is by drop and
drags the widgets.
39
IV. RESULT AND DISCUSSION kind of result, the housing with airflows is necessary.
This section has been divided into three phases. Phase Fig. 2 shows the sample test data during sunny at Noon.
1 is a functional testing on all components in the hardware
design. Phase 2 is an integration testing for all hardware
components of the device. At Phase 3, system testing is
carried out and collected data from the devices can be
access through the mobile apps.
40
This data can help to find the suitable value of light
intensity that can trigger the lamp to automatically open 4) Barometric Pressure Module Sensor
when the presence of light disappears. Fig. 3 shows the Barometric Pressure Module Sensor is an important
sample of data collection during the testing period. component for creating a weather station system. The
main function of the barometric pressure module sensor is
to calculate the atmospheric pressure. The unit for
atmospheric pressure is in hPa. This sensor can detect the
altitude from the sea level. For the distances, the unit for
measurement is in the meter.
Lastly, this barometric pressure can detect the
Fig. 3. Sample of data during the test. Light Intensity = 22.
temperature surrounding. For this project, BMP280 will
3) Soil Moisturize Module Sensor and Water Pump be used as it is the most stable version. To test the
temperature, it needs to be compared with DHT11 as the
Soil moisturize module sensor is one of the sensors testing will be conducted at the room temperature. Table
that will be used on these devices as tools to measure VI shows the barometric pressure value with the types of
moisture in the soil. The basic unit of this sensor is in environment. Fig. 6 shows the sample of barometric
percentages. Some sensor needs to do the reverse reading pressure result during testing. Fig. 7 shows the image of
value as the value become higher as the soil become a sample of barometric pressure on an online forecast.
moisture. During this testing, the minimum dryness of the
soil is 30%. That mean, when the moisture on the soil has TABLE VI: Barometric Pressure and Environment.
gone down to the 30%, then it will activate the trigger,
Environment Value (MB) Online Database
which will make the actuator to turn on. The actuator in (MB)
this test is a water pump. When the water pump is turned Cloudy Day 1011 1009
on, it needs to be a delay for 10 seconds, before the Light Rain 1010 1009
program to loop back. This step is necessary as the sensor Rainy 1010 1008
required some time before it can adjust to the new Night 1014 1012
moisture in the soil. By referring to the Fig.4, it shows
how fast the moisture will decrease over time.
41
from the battery, which is the main power supply for
Arduino.
Next process is to predict the weather, when the
barometric pressure has been the drop, that is mean the
probability for raining is high. If barometric pressure
recorded the value more than suitable environment data, it
means that the weather will be hot. The normal
atmospheric pressure at the test area is around 1013.
Therefore, to predict if there will be rain or not, the value
of barometric pressure needs to be equal to 1010 and
below and stay the same about 1 hour. Then, it can
assume the probability for rain is higher. To declare if the
weather will be cloudy, the proper value is around
1011mb to 1012mb. More than 1013mb it will be sunny.
For testing the plant growth with the LED light, those
12 hours period has been used to place the LED higher
than plant growth. The LED light distance with the plant
is around 15cm and it can cover the whole vase. Table VII
shows the result of this trial period.
42
the board, that is why, to create the SDA and SCL pin, the beneficial, and the system can be easily managed by all
NodeMCU need to use Wire.Begin() to create a virtual pin users such as researcher or farmer, and children. These
for SDA and SCL pin for NodeMCU. devices contain many sensors such as barometric pressure,
temperature sensor, light sensor, and soil moisturizer
Fig. 10 and Fig. 11 shows the result from
sensor. Other than that, these devices contain water pump
Barometric Pressure on Blynk apps. The actuator on the
for adjusting the soil moisture, fans for controlling the
devices can be controlled by using the apps, if the devices
temperature and LED light for controlling the
and the phone has been connecting to the internet.
photosynthesis process during the night. There are two
types of main processing unit on these devices, which is
Arduino UNO and NodeMCU. The Arduino UNO will be
used as the controller of the devices, while NodeMCU
will be the controller of the phone devices so that it can
control the devices from far away by using Wi-Fi. All the
result shows in this paper provide enough data for creating
an actual IoT Devices.
REFERENCES
43