Developing a Low-cost Smart Terrarium in the Context of Home Automation Applications
Developing a Low-cost Smart Terrarium in the Context of Home Automation Applications
Abstract – The concept of Internet-of-Things (IoT) requires industry is rapidly expanding with the market size
the connection of heterogeneous devices with the goal of projected to be around $114 billion by 2025 [3].
offering improved services for the users. One of the main Nowadays there are different home automation systems
directions in this domain is the development of Home already implemented. These systems help people to
Automation (HA) applications. This implies monitoring and control their houses easily and to secure them. Basically
controlling of different home appliances by taking into the user can control the lights, climate and the home
consideration IoT-specific communication technologies. Our security system by an application on mobile or tablet.
paper presents the development of a Smart Terrarium in Such kind of systems can be expensive. First, we should
the context of HA user-centric applications.
buy necessary equipment for manage the lights in the
house, for example the Philips Hue starter pack costs
I. INTRODUCTION about $200 and additional bulbs are $60 each. When we
are talking about the climate control the most used and
The “Smart City – Smart Home” paradigm is one of popular device is the Nest Learning Thermostat, its price
the central technological developments in the present being around $250 and a smart air conditioner is about
society. This trend is based on the concept of Internet-of- $280, the most popular is Aros Smart Air Conditioner. At
Things (IoT) in which different classical objects (called the security system the market offers Dropcam Pro
things) are communicating between themselves in order to Security Camera, which is one of the best-selling products
transmit data coming from a large number of sensors. The in the smart home security category, its price being about
computing power is partially realized onto all these $200. The total amount for such a system would be around
devices, therefore the edge computing approach coming 1000$. Therefore our aim is to build a low-cost solution
into place. for the ST.
The IoT-based smart home implementations have The rest of the paper is structured as follows: section II
become a noticeable area of research [1]. The state-of-the- will present previous work. Section III will discuss the
art scientific literature, but also industrial approaches proposed architecture and obtained results, while section
focus on two main directions: smart home applications IV will highlight conclusions and future work.
development and solving issues into the standards,
communication protocols, but also human-
communication interfaces [2]. II. PREVIOUS WORK
This paper is proposing a low-cost architecture in The problem of low-cost solutions for smart home
order to implement a Smart Terrarium (ST). Our project applications has been previously addressed into the
lies in the category of Home Automation (HA) scientific literature. In [4] is presented an architecture
applications, being part of the smart home paradigm. The based on STM32F407 microcontroller which is reducing
problems we are trying to address are as follow: the energy from a smart home with 40%. The core board
of this project is a Mikromedia 7 Board and this has been
· How can a user grow plants in an environment implemented in Timisoara, Romania. In [5], the user
that is not well suited for them because of bad interface of a home automation solution is offered via a
lighting or humidity? mobile applications. This project is using Google
assistance for voice command. The home appliance
· How can the user monitor the health of the plants devices are commanded by a Node MCU V3 ESP8266
with real time sensor data such as temperature, air board. Different types of testing techniques have been
humidity, soil humidity, soil Ph and so on? used in order to demonstrate the correct functioning of this
· How could a ST system ensure that the user’s solution. The low-cost scenario in home automation has
plants get the required amount of water? been addressed in [6] based on power line communication,
by using Cypress CY8CPLC10. This is an integrated
· How could a ST system ensure that the plants power line communication chip which embeds both a
remain healthy? PHY modem and a network protocol stack. A detailed
Home automation is a largely fragmented industry implementation of a smart home is presented in [6] by
with standards being under development. Even so, the presenting a scale model that represents a smart home. In
19
10th International Conference on Applied Information and Internet Technologies - AIIT 2020
October 16th, 2020, Zrenjanin, Serbia
________________________________________________________________________________________________
20
10th International Conference on Applied Information and Internet Technologies - AIIT 2020
October 16th, 2020, Zrenjanin, Serbia
________________________________________________________________________________________________
21
10th International Conference on Applied Information and Internet Technologies - AIIT 2020
October 16th, 2020, Zrenjanin, Serbia
________________________________________________________________________________________________
and passkey, so that the Smart Terrarium can in background process that will continuously check any
turn connect to the local area network. scheduled tasks against the current time and run them
when appropriate.
· Toggle Lights/Water On/Off: The toggle activity In order to execute the scheduled automated tasks, we
is the most basic activity that the application will be using the javascript setInterval() method which is
provides and it offers the user the ability to turn also supported by NodeJS. This function will accept a
delay and a callback as parameters and will execute the
either the lights or the water on or off by simply
callback every delay milliseconds. Thus we will create a
touching a button from within their mobile
function that will check the current time, compare it to any
application. In other words the mobile device
scheduled tasks time stored in Redis and execute the task
becomes a power switch for the terrarium lights or
at the appropriate time.
water.
· Schedule Lights/Water: The Schedule activity IV. OBTAINED RESULTS
provides full automation of the lights & water
systems of the terrarium. This setting will enable One of the main directions of this solution is to obtain
the setting of (daily) time ranges in which the a low-cost Smart Terrarium. This has been obtained by the
lights/water of the terrarium will turn on, and of price of the used components, which is approximately a
course turn themselves back off when the time total of 100$. The mobile application developed for the
range has finished. project is presented in Figure 6.
22
10th International Conference on Applied Information and Internet Technologies - AIIT 2020
October 16th, 2020, Zrenjanin, Serbia
________________________________________________________________________________________________
· 92.31% code coverage for all branches circuit and 2 contacts. COB LEDs are far more energy
efficient and provide a far better lumen per watt ratio, and
· 100% code coverage for all functions additionally the driverless versions allow us to connect the
· 100% code coverage for all lines. LED directly to 220AC power, without the need of an
intermediate transformer.
The goal of the unit test developed is to cover as much
of the code as possible - this way we can be certain when
deploying new features that all our present features are
still functioning correctly. We are aiming for an above REFERENCES
80% coverage of all our code. [1] K. Agarwal, A. Agarwal and G. Misra, “Review and Performance
Analysis on Wireless Smart Home and Home Automation using
IoT,” Proc. of The IEEE Third International conference on I-
V. CONCLUSION AND FUTURE WORK SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC),
The present article underlines a Smart Terrarium Palladam, India, 2019.
solution in the context of Home Automation applications. [2] S. Mehrotra, R. Dhande, “Smart cities and smart homes:
The Smart Terrarium project is an ongoing project, being From realization to reality,” Proc. of The International
Conference on Green Computing and Internet of Things
highly scalable as well as flexible, and can be turned into a (ICGCIoT), 2015.
smart grow box or expanded to a larger scale growing [3] Fortune Business Insights, Report ID: FBI100074, Home
environment. Automation Market Size Predictions and Regional Forecast 2018-
2025, [online], https://www.fortunebusinessinsights.com/industry-
The project is scalable and allows for a large number reports/home-automation-market-100074, accessed on
of expansions and optimizations from a hardware and 28/06/2020.
software point of view. A number of additional sensors [4] S. Matlak, R. Bogdan, Reducing Energy Consumption in Home
and components could be added to the terrarium in order Automation based on STM32F407 Microcontroller, 4th
to increase its versatility such as: Telecommunications Forum TELFOR, Belgrade, Serbia, 2016.
[5] Poonphon Suesaowaluk, Home Automation System Based Mobile
· A sensor for measuring soil humidity Application, Proc. of The IEEE 2nd World Symposium on
Artificial Intelligence (WSAI), Guangzhou, China, 2020.
· A sensor to measure soil acidity [6] M. Muttillo, V. Muttillo, L. Pomante, L. Pantoli, A Low Cost and
Flexible Power Line Communication Sensory System for Home
· A sensor to measure the quality of light received Automation, Proc. of IEEE International Workshop on Metrology
(lumen) for Industry 4.0 & IoT, Rome, Italy, 2020.
· A sensor to measure the amount of UV light [7] D.-I. Gota, A. Puscasiu, A. Fanca, L. Miclea, H. Valean, Smart
home automation system using Arduino microcontrollers, Proc. of
received The IEEE International Conference on Automation, Quality and
Testing, Robotics (AQTR), Cluj-Napoca, Romania, 2020.
· A video camera with which we could stream the
[8] Anand Vignesh, V. Vel, D. Purusothaman, V.
contents of our terrarium and have constant Vijayaraghavan, “Low-Cost Non-Intrusive Residential Energy
supervision. Monitoring System”, Proc. of The IEEE Conference on
Technologies for Sustainability (SusTech), 2014.
Additionally as far as the LED lighting goes a new
[9] K. Baraka, M. Ghobril, S. Malek, R. Kanj, A. Kayssi, “Low
type of LED has recently been developed that could have cost Arduino/Android-based Energy-Efficient Home Automation
a very positive impact on the project: the driverless COB System with Smart Task Scheduling”, Proc. of The Fifth
LED. COB, which stands for chip on board, is a circuit International Conference on Computational Intelligence,
which contains multiple diodes (9 or more) with only 1 Communication Systems and Networks (CICSyN), 2013.
23