Professional Documents
Culture Documents
Iot Backyard: Smart Watering Control System: Abstract - Nowadays, Cropping Own Organic Homegrown
Iot Backyard: Smart Watering Control System: Abstract - Nowadays, Cropping Own Organic Homegrown
Iot Backyard: Smart Watering Control System: Abstract - Nowadays, Cropping Own Organic Homegrown
FigFig. 1. System
1. System Architecture
Architecture of IoT
of IoT Backyard
Backyard
IV. WATER CONTROL SYSEM Ψܵ ݁ݎݑݐݏ݅ܯ݈݅ൌ ͳͲͲ െ ൈ ͳͲͲ.
ଵଶଷ
Figure 6 shows the program written in Typescript. It • Figure 10 shows the monitoring page. Users can
describes the way to query all monitored values of soil monitor the current sensor values for soil moisture,
moisture (SoilMoisture) and water level in the tank temperature, and water level in the tank. Users can
(DistancePer) from the Firebase system and displays them in also choose the watering mode. If the mode is
a bar chart and a pie chart on IoT Backyard mobile switched to on, the watering will be automatic
application respectively. otherwise off will be for manual. This function will
be safe. If there are any problems with hardware or
water level in the tank.
C. Initial Setup
• As shown in Figure 7, users need to set up Wi-Fi
and Firebase authentication at the NodeMCU.
• On IoT Backyard mobile application, users have to
create an account by registering with their E-mail Fig. 10. Monitoring page
address and setting password as shown in Figure
8.
D. Water Control Testing Results
The application allows users to select the level of soil
moisture condition which is suitable for each plant. In our
experiment, we choose the basil. It needs to water regularly
but not to overwater. In this case, we choose medium level of
humid soil or around 31.6% - 60.8% of soil moisture. We set
the threshold 50%. Thus, the system starts to water the plant
if the soil moisture below or equal 50% and stop if it is over
50%.
E. Energy Consumption
For this project, we use two solenoid valves with 12V DC,
one Arduino UNO, and one NodeMCU. The total power
Fig. 8. Register and Log-in page consumption for our system is around 8.08 watts. If the system
is switched on for 24 hours in 1 month. Then we convert
• Figure 9 presents the plant’s profile interface. It wattage into electrical energy, we will get 5.8177 units. If the
contains a list of plants with a basic information and first 5 units is 4.96 Baht and the next 6 to 15 units is 0.7124
suggestion of how to grow each plant. These baht, thus the estimation of the total electricity charge per
suggestions include optimum temperature, soil month is around 26 Baht.
moisture content and types of fertilizer for the plant.
Users can press “PLANT IT” button to start to grow F. Cost Estimation
the selected plant. It also allows users to create a new For cost estimation, we used in this project consists of 11
plant profile. Each plant profile, users can take a tools; ESP8266, Arduino UNO, real-time clock (DS3231),
photo and note as well as the starting date of planting. temperature sensor (DS18B20), soil moisture sensor (YL-
Users can choose the level of soil conditions; Low, 69), ultrasonic (HC-SR04), 2 solenoid valves, 2 relay 12V
Medium, or High and define and at the threshold of DC, power supply, a prototype box, and stepdown. Thus, the
the chosen level for watering control.
total cost of IoT Backyard is estimated around 1800 Baht.
believe that our prototype can be applied for any homegrown ACKNOWLEDGEMENT
plants. In the future work, we plan to add more sensors for N- The authors would like to thank National Software Contest
P-K, pH, and fertilizer controller, as well as to add a number
(NSC2018) for reward funding this project number
of soil moisture sensors according to the plant bucket size.
Furthermore, data in the Firebase system will be further 20p33w0037.
analyzed to predict plant growth rates and find appropriate
water level according to each plant type and age.
REFERENCES
[1] D. Pramudwinai, “Sufficiency economy philosophy: Thailand’s path [6] Google Developer. (2018, June. 6). Adding Firebase to your C++
towards sustainable development goals,” The ministry of Foreign Project [Online]. Available:
affairs of Thailand, June 2017. https://firebase.google.com/docs/cpp/setup
[2] M. S. Gavali, B. J. Dhus, and A. B. Vitekar, “A smart irrigation system [7] Ionic Framework. (2018, June. 15) ionic framework docs [Online].
for agriculture based on wireless sensors,” International Journal of Available: https://ionicframework.com/docs/
Innovative Research in Science, Engineering and Technology, Volume [8] Rui. Santos. (2016, July. 14). Guide for Soil Moisture Sensor YL-69 or
6, Issue 5, May 2016. HL-69 with Arduino [Online]. Available:
[3] H.Gupta, V.Pareek, R.Mishra, and K. Lavanya, “Automated precision https://randomnerdtutorials.com/guide-for-soil-moisture-sensor-yl-
farming using internet of things,” International Research Journal of 69-or-hl-69-with-the-arduino/
Advanced Research in Computer Engineering and Technology, [9] Adafruit. (2017, Dec. 20) Plastic Water Solenoid Valve - 12V - 1/2"
Volume 6, Issue 5, May 2017. Nominal [Online]. Available: https://www.adafruit.com/product/997
[4] H.Kuruva and B.Sravani, “Remote plant watering and monitoring [10] Elecfreaks, “Ultrasonic Ranging Module HC-SR04,” Sept. 2017.
system based on IoT, ” International Journal For Technological [11] DFRobot, “Waterproof DS18B20 Digital Temperature Sensor,” Aug.
Research In Engineering, Volume 4, Issue 4, December 2016. 2017.
[5] M. Santra, S. Biswas, S. Bandhapadhyay, and K. Palit, “Smart wireless [12] Robotshop, “4-Channel 5V Relay Module,” Nov. 2014.
water level monitoring & pump controlling system,” International [13] Maxi, Integrated, “DS3231 Extremely Accurate,” Nov. 2015.
Journal of Advances in Scientific Research and Engineering (IJASRE),
Vol. 03(4), May 2017.
[Ref number] Author’s initials. Authors Surname, “Title of Datasheet,” Part datasheet, Publication date [Latest revision date].
[Ref number] Author’s initials. Authors Surname. (Year, Month. Day). Title of web page [Online]. Available: UR
2018 Seventh ICT International Student Project Conference (ICT-ISPC)