Professional Documents
Culture Documents
Build A Soil Moisture Detector For Automatic Watering at The Strawberry Garden
Build A Soil Moisture Detector For Automatic Watering at The Strawberry Garden
A Darmawan
Teknik Informatika, Universitas Komputer Indonesia, Indonesia
Email: adarmawan117@mahasiswa.unikom.ac.id
Abstract. This research contains the design of a tool to detect the soil moisture, to turn on the
spraying machine which will irrigate the strawberry garden. The approach taken is library research,
which is by analyzing the data and information that has been done by other researchers and
combining it with the data and experience that is owned by the author when managing his strawberry
garden. The results of this research indicate that the use of this tool can represent garden owners
when there are obstacles in garden maintenance, especially when watering plants. Finally,
conclusion, personal recommendations, and future outlooks will be given based on the existing
work.
1. Introduction
Strawberries are plants that grow and evolve first in Chile, America. Strawberries are the
subtropical plants which are good planted in the highlands with a temperature range of 17-20oC. This plant
requires a moisture between 80-90% and sunlight around 8-10 hours per day. Types of strawberries
Fragaria choiloensis L. is a species found in many countries in America, Europe and Asia. Strawberries
that evolve in Indonesia is produced by a cross between North American strawberries (Var Duchesne) and
Chile strawberries (Fragaria Chiloensis L. var Duchesne). From these two types of strawberries produce
Fragaria x annanassa var Duchesne strawberries which are much cultivated in Indonesia.. In addition of
fertilizers and cultivation media, the water has a very large contribution to the evolve of strawberries, both
planted on the ground directly or through cultivation media in polybags. Too many of water will make this
plant decompose and die. While if the soil is too dry, can makes the plants dry at least die. Therefore, the
farmers or owners is very important to irrigate the strawberies garden. In order for irrigation appropriate
with the necessity of strawberry plants, a tool to automate watering is needed and the solution is to use
technological assistance, a microcontroller.
There are so many types of microcontrollers that can be used to detect soil moisture, such as A
wireless application of drip irrigation automation supported by soil moisture sensors[1], A Smart System for
Garden Watering using Wireless Sensor Networks[2], Large-Scale On-Farm Implementation Of Soil
Moisture-Based Irrigation Management Strategies For Increasing Maize Water Productivity[3], Automatic
Plant Watering System via Soil Moisture Sensing by means of Suitable Electronics and its Applications for
Anthropological and Medical Purposes[4], and many more.
With the support of an automatic watering tool, when the soil less of water it can hand proper irrigation.
And than it can be increase the productivity of the strawberry fruit itself. By collecting data from experts'
research and theory, supported with the author's experience in managing strawberry gardens. Hopefullness,
can be a references for a reader when they start a strawberry business.
2. Method
The method who use in this research with literatures review who previously been conducted.
the cultivation of strawberries was first in America, exactly in Chile. Strawberry is very good planted
in a place with temperatures between 17-20oC with soil moisture around 80-90%. Strawberry will be very
good under the sunlight between 8-10 hours every day. The strawberries in Indonesia are combine from
Chile's Strawberry (Fragaria Chiloensis L. var Duchesne) with North America's Strawberry (Var
Duchesne). From these two strawberries, produced Fragaria x annanassa var Duchesne. Fragaria x
annanassa var Duchesne is strawberries that cultivated in Indonesia.
Farmer cultivation techniques it's so various. Some farmers, plant strawberries using beds and using
sacks. But now, using hydroponic technique, its so many farmers using greenhouses for their strawberry
cultivation. Because, beside from being a business, strawberries can be used as an ornamental plants. The
combination of red and green from the leaves, becomes a beautiful sight to decorate the yard of the house.
The price of one strawberry seedling ranges from Rp. 1,500 to Rp. 2,000, depending on the seeds and sellers
of the strawberry itself.
There are many advantage of strawberries. That advantage make us more healthy, such as from
carbohydrates, protein, fat, iron, calcium, phosphate, and many more [5].
2.1.2 Automatic Control System
Automatic control system is a combination of several components that work together to achieve certain
results without involving humans[6]. There are two types of automatic control systems:
2.1.3 Mikrokontroller
Mikrokontroller is a tools that has many components and can operate independently, and has been
designed to monitor and or regulate work and tasks. There are several components of the microcontroller
[7]
: Processor Core (CPU), Memory, Digital IO, Analog IO, Interupts, Timer, and other components.
2.2 Design
2.2.1 Design for Hardware
In this hardware scheme, Mikrokontroller is used like a brain (control all of tasks) all of system.
On design Of Soil Moisture Detector For Automatic Watering at The Strawberry Garden, soil moisture is
used for main indicator for determine is the system on or off.
#include <mega8.h>
#include <stdio.h>
#include <delay.h>
#include <alcd.h>
The source code whose used to configure ADC (Analog Digital Converter):
Sensor[0]=(read_adc(2)/1,54) ;
Sensor[1]=(read_adc(3)/1,54) ;
Sensor[2]=(read_adc(4)/1,54) ;
Sensor[3]=(read_adc(5)/1,54) ;
lcd_gotoxy(0,0);
lcd_putsf("Tugas KWU:");
lcd_gotoxy(0,1);
sprintf(data, "Kelembabannya: %d % %", dataKelembapan);
lcd_puts(data);
dataKelembapan= ((Sensor[0]+Sensor[1]+Sensor[2]+Sensor[3])/4);
void menu_param(){
delay_ms (200);
do{
lcd_gotoxy(0,0);
lcd_putsf("Tentukan Parameter");
lcd_gotoxy(0,1);
sprintf(data,"Bawah: %d", param);
lcd_puts(data);
if(B2 == 0){param++;}
if(B3 == 0){param--;}
if(param <= 0){param = 0;}
if(param >=100){param = 100;}
delay_ms(100);
lcd_clear();
}
}
void menu_param2(){
delay_ms (200);
do{
lcd_gotoxy(0,0);
lcd_putsf("Tentukan Parameter");
lcd_gotoxy(0,1);
sprintf(data,"Atas: %d", param2);
lcd_puts(data);
if(B2 == 0){param2++;}
if(B3 == 0){param2--;}
if(param2 <= 0){param2 = 0;}
if(param2 >=100){param2 = 100;}
delay_ms(100);
lcd_clear();
}while(B1 != 0);
}
2.2.1.2 Design soil moisture sensor
Sensor whose used is four sensor and all of it connected to pin PC2, PC3, PC4, dan PC5. And
whose used to input is port C. This port is used because it has the Analog to Digital Converter (ADC)
feature.
dataKelembapan = ((Sensor[0]+Sensor[1]+Sensor[2]+Sensor[3])/4)+23;
if(dataKelembapan <= param){
PORTB = (0<<5);
lcd_gotoxy(0,1);
sprintf(data, "Kelembaban: %d%%", dataKelembapan);
lcd_puts(data);
delay_ms(300);
lcd_clear();
}else if(dataKelembapan >= param2){
PORTB = (1<<5);
lcd_gotoxy(0,1);
sprintf(data, "Kelembaban: %d%%", dataKelembapan);
lcd_puts(data);
delay_ms(500);
lcd_clear();
}
For the test results can be seen in more detail in Table 2.2-1 Test Results:
Table 2.2-1 Test Result
4. Conclusion
After testing and analysis is carried out, the soil moiosture sensor runs well and successfully turned on
the water pump when the soil conditions are dry. The microcontroller whose used in this research uses
ATmega 8, assisted by a soil moisture module as a soil moisture detection sensor. LCD to display the values
obtained from soil moisture. And then a relay to turn off or turn on the water pump. With the help of this
system, the use of water is reduced from 0.4 - 2.2 liters for every plant everyday, to 0.1 - 0.7 liters for every
plant.
5. Acknowledgment
Thank you for everyone who helped and guided me to complete this paper. Especially for my lecturers
at this university.
References
[1] Dursun, M., & Ozden, S. (2011). A wireless application of drip irrigation automation supported by soil
moisture sensors. Scientific Research and Essays, 6(7), 1573-1582.
[2] Angelopoulos, C. M., Nikoletseas, S., & Theofanopoulos, G. C. (2011, October). A smart system for
garden watering using wireless sensor networks. In Proceedings of the 9th ACM international symposium
on Mobility management and wireless access (pp. 167-170). ACM.
[3] Irmak, S., Burgert, M. J., Yang, H. S., Cassman, K. G., Walters, D. T., Rathje, W. R., ... & Eisenhauer,
D. E. (2012). Large-scale on-farm implementation of soil moisture-based irrigation management strategies
for increasing maize water productivity. Transactions of the ASABE, 55(3), 881-894.
[4] Đuzić, N., & Đumić, D. (2017). Automatic Plant Watering System via Soil Moisture Sensing by means
of Suitable Electronics and its Applications for Anthropological and Medical Purposes. Collegium
antropologicum, 41(2), 169-172.
[5] Mu'min N. 2012. Uji Daya Hambat Beberapa Ekstrak Nabati Pada Pertumbuhan Linier Mycosphaerella
Fragariae Penyebab Bercak Daun Pada Tanaman Stroberi (Fragaria sp) [Tesis]. Makassar (ID): Universitas
Hasanuddin
[6] Dorf, R. C., & Bishop, R. H. (2011). Modern control systems. Pearson.
[7] Alley, P. J. (2011). Introductory Microcontroller Programming.
[8] Microchip Technology. (2013). ATmega8/L datasheet.
[9] Aniley, Almaw. (2018). Soil Moisture Sensors In Agriculture And The Possible Application Of
Nanomaterials In Soil Moisture Sensors Fabrication
[10] Lambert, T. (2017). Introduction to Microcontrollers and Embedded Systems. Auburn University
Department of Mechanical Engineering Senior Design.