Professional Documents
Culture Documents
(Papa y Arduino) Design and Realization of Low Cost Control For Greenhouse Environment With Remote Control PDF
(Papa y Arduino) Design and Realization of Low Cost Control For Greenhouse Environment With Remote Control PDF
Programmable
Proceedings of Devices
the 13thand
IFACEmbedded Systems
Conference on
Proceedings of Devices
May 13-15, 2015.
Programmable the 13thand
Cracow,IFAC Conference
Poland
Embedded on online at www.sciencedirect.com
Available
Systems
Programmable Devices and Embedded Systems
May 13-15, 2015. Cracow, Poland
May 13-15, 2015. Cracow, Poland
ScienceDirect
IFAC-PapersOnLine 48-4 (2015) 368–373
Design and Realization of Low Cost Control for Greenhouse Environment with
Design
Design and
and Realization
Realization of
of Low
Low Cost
Cost Control
Control
Remote for
for Greenhouse
Control Greenhouse Environment
Environment with
with
Remote Control
Remote Control
Lukas Bajer*, Ondrej Krejcar*
Lukas Bajer*, Ondrej Krejcar*
Lukas Bajer*, Ondrej Krejcar*
*Center for Basic and Applied Research, Faculty of Informatics and Management, University of Hradec Kralove,
*Center
*Center for
for Basic and
and Applied
Hradec
Basic Research,
Kralove,
Applied Faculty
Czech Republic
Research, of
of Informatics
Faculty (e-mail: and
and Management,
{lukas.bajer;
Informatics University
University of
of Hradec
ondrej.krejcar}@uhk.cz).
Management, Hradec Kralove,
Kralove,
Hradec Kralove, Czech Republic (e-mail: {lukas.bajer; ondrej.krejcar}@uhk.cz).
Hradec Kralove, Czech Republic (e-mail: {lukas.bajer; ondrej.krejcar}@uhk.cz).
Abstract: This project describes the design and implementation of control unit coordinating sensors of
Abstract:
Abstract: This
This project
various physical describes
quantities
project the
the design
and actuators.
describes and
and implementation
designBeside of
of control
the data collection
implementation fromunit
control coordinating
sensor
unit units, thesensors
coordinating problem
sensors of
of
various
consists physical
of their quantities
local and and
remote actuators. Beside
visualization. The the data
selected collection
concept is from
createdsensor
by
various physical quantities and actuators. Beside the data collection from sensor units, the problem the units,
Arduinothe problem
platform,
consists
which usesof their local and
expansion remote
modules forvisualization. The and
data acquisition selected concept is
visualization to created
control by
thethe Arduino
solution. Theplatform,
chosen
consists of their local and remote visualization. The selected concept is created by the Arduino platform,
which
solutionuses
is expansionfor
sufficient modules
home for data acquisition
automation and is and visualization
useful for a wide to control
range of the solution.
potential The chosen
customers. The
which uses expansion modules for data acquisition and visualization to control the solution. The chosen
solution
concept is concretized
is sufficient for home
into an automationgreenhouse
intelligent and is useful for a widewhere
environment, rangecomplete
of potential customers.
control is The
designed
solution is sufficient for home automation and is useful for a wide range of potential customers. The
concept
over the is concretized Such
into an intelligent greenhouse environment, where complete control while
is designed
concept isenvironment.
concretized into an solution optimizes
intelligent the quality
greenhouse of treatment
environment, whereof crops or flowers
complete it can
control is designed
over
also the environment.
bring financial Such on
savings solution optimizes
subsequent the quality
operation of theofsystem,
treatmentas of crops orResults
expected. flowersofwhile
the it can
control
over the environment. Such solution optimizes the quality of treatment of crops or flowers while it can
also
also bring
concept
bringwerefinancial
tested savings
financial with the on
savings subsequent
good
on operation
results during
subsequent a trialof
operation the
theofsystem,
ofrun as
as expected.
expected.inResults
a real greenhouse,
system, which of
Results thethe
of control
quality
the controlof
concept were
the designed
concept tested
were solution with
tested with the
wasthe good
verified.results during
Specific
good results a trial
procedures
during run of a real
andofdesign
a trial run greenhouse,
a real solutions
greenhouse, in which
areinalso the
listed
which quality
thewithin of
qualitythis
of
the designed
paper
the solution
to highlight
designed was
was verified.
verified. Specific
the solution.
solution Specific procedures
procedures and and design
design solutions
solutions are
are also
also listed
listed within
within this
this
paper to highlight the solution.
© 2015, IFAC
paper to
Keywords: (International
highlight
Arduino, the Federation
solution.
automation, of actuator,
sensor, Automaticvisualization,
Control) Hosting by Elsevier Ltd. All rights reserved.
greenhouse
Keywords: Arduino, automation, sensor, actuator, visualization,
Keywords: Arduino, automation, sensor, actuator, visualization, greenhouse
greenhouse
controls (button, potentiometer, PIR sensor)
1. INTRODUCTION
1. INTRODUCTION controlsto(button,
Ability
controls (button,
potentiometer,
store and work with the
potentiometer,
PIR
PIR
sensor) data
measured
sensor)
1. INTRODUCTION Ability to store and work with the measured data
microSD
Monitoring of intelligent environments where a large number Ability to store and work with the measured data
Monitoring
of measured of variables,
intelligent environments
static values where as wella large number
as dynamic microSD
Monitoring of intelligent environments where a large number microSD 2. SYSTEM DESIGN
of measured
processes with variables,
different static values
dynamics is a as well as task
complicated dynamic
Pies
of measured variables, static values as well as dynamic 2. SYSTEM DESIGN
processes
et al. withand
(2013) different
Pies etdynamics
al. is a Each
(2014).
processes with different dynamics is a complicated task Pies
complicated
variable task
has Pies
the Arduino is ideal 2.for SYSTEM
similarDESIGNtypes of non-industrial
et
et al.
ability
al. (2013) (2013)
to detuneand
and thePies et al.
Piescharacter (2014).
et al. (2014). Each
of the Each variable
measured system
variable has the
has and
the Arduino
automation is(Fuentes
ideal for et similar
al.. 2014) types
and of non-industrial
(Agudo et all. 2014).
ability to detune the character of the measured system and Arduino is ideal for similar types of non-industrial
therebytoput
ability the system
detune in a constant
the character regulatory system
of the measured processand or automation
Primarily (Fuentes
its modularity et al..and
2014) and (Agudofacilitates
sophistication et all. 2014).
the
thereby put the systemstate in a constant automation (Fuentes et al.. 2014) and (Agudo et all. 2014).
even
thereby non-controllable
put the system in a(Luo et all.regulatory
constant regulatory
process
2012), (Olvera
process
or
et al.
or Primarily
design and itsimplementation
modularity and of sophistication
the final facilitates
solution. The the
entire
even non-controllable state (Luo etetall. 2012), (Olvera et al. Primarily its modularity and sophistication facilitates the
2011), (Lee et all. 2011) and David
even non-controllable state (Luo et all. 2012), (Olvera et al. al. (2013). design
solution and
of implementation
greenhouse of the can
automation finaltherefore
solution.beThe entire
expressed
2011), (Lee et all. 2011) and David et al. (2013). design and implementation of the final solution. The entire
2011), (Lee etsystem
all. 2011) and include
David ettheal.following:
(2013). solution
solution of
of greenhouse
clearly with block diagram
greenhouse automation
of thecan
automation canHWtherefore
therefore be
be expressed
communication
expressedof
The resulting should clearly with block diagram of the HW communication
The resulting system should include the following: Arduinowith
clearly andblock its surroundings,
diagram of theasHW shown in figure of
communication 1.
of
The resulting system should
Visualization include
of values and the
systemfollowing:
state Arduino
Description
Arduino and
andof its surroundings,
itsindividual as
as shown
parts with
surroundings, in
in figure
figure 1.
their corresponding
shown 1.
WebVisualization of
interface–remotevalues and
accesssystem state Description
communications of individual parts with the
follows to understand their
ideacorresponding
of proposed
Visualization of values and system state Description of individual parts with their corresponding
Local
Web interface–remote
preview with access
the option of scrolling through communications
solution. follows to understand the idea of proposed
Web interface–remote access communications follows to understand the idea of proposed
Local
screenspreview
Local preview withwith thethe option
option of of scrolling
scrolling through
through
solution.
solution.
Sensorics
screens
screens 2.1 Arduino MEGA 2560
Sensorics
Central measured variables
Sensorics 2.1 Arduino MEGA 2560
2.1 Arduino MEGA 2560
temperature
Central
Central measured
measured variables
variables Arduino is a control unit and the heart of the entire
temperature Arduino
automation. is a control unit and
and the heart of the entire
humidity
temperature Arduino is All a controlcomputing
unit and communication
the heart of the processes
entire
humidity automation.
except ethernet All computing
Allarecomputing
handled byandand communication
its microcontroller.
communication Arduino processesis
atmospheric
humidity pressure automation. processes
atmospheric
real-time pressure
clock except ethernet
also adapted forare handled
aremodular by
by its
its microcontroller.
handledexpansion and thereforeArduinois also is
isa
atmospheric pressure except ethernet microcontroller. Arduino
External real-time measured
clock
real-time clock variables also
base adapted
also for further
adapted for modular
forshield expansion
expansion and
extensions.
modular and therefore
therefore is is also
also aa
External air measured variables
temperature base for further shield extensions.
External measured variables base for further
Arduino requiresshield extensions.
a supply voltage of 7-12V (or 5V in case of
air temperature
air air humidity
temperature Arduino
programmingrequires via a USB)
supply for
voltage
it toof
ofrun
7-12V (or 5V USB
properly. in case of
also
soil air humidity
moisture
air humidity
Arduino requires a supply voltage
programming
serves as a means via forUSB)
transmitting
7-12V
for it toinformation
(or 5V in case
run properly. to USB
the
of
also
terminal
light soil moisture
measurement
soil moisture
programming via USB) for it to run properly. USB also
serves
via UARTas a communication
means for transmitting Horalekinformation
et al. (2010). to the terminal
serves as a means for transmitting information to the terminal
Actuators light measurement
light measurement via UART communication Horalek et al. (2010).
Actuators via UART communication Horalek et al.
Since the Arduino MEGA is the main unit, it collects data (2010).
audio signalization
Actuators
audio signalization
ventilation Since the
from the
Since Arduino
thesensors
Arduino andMEGA
controlsis
MEGA the
isthe main
main unit,
theactuators. unit, it
it collects
collects data
data
audio signalization
ventilation air circulation and heating
from the sensors and controls the
from the sensors and controls the actuators. actuators.
ventilation
air circulation and heating
air circulation and heating
2405-8963 © 2015,
Copyright IFAC 2015 368Hosting by Elsevier Ltd. All rights reserved.
IFAC (International Federation of Automatic Control)
Peer review©under
Copyright IFAC responsibility
2015 of International Federation of Automatic
368Control.
Copyright © IFAC 2015
10.1016/j.ifacol.2015.07.062 368
PDeS 2015
May 13-15, 2015. Cracow, Poland Lukas Bajer et al. / IFAC-PapersOnLine 48-4 (2015) 368–373 369
369
PDeS 2015
370
May 13-15, 2015. Cracow, Poland Lukas Bajer et al. / IFAC-PapersOnLine 48-4 (2015) 368–373
3.1 Sensors will be also influenced by the values of internal and external
humidity David et al. (2012) and Machacek et al. (2012).
3.3 Irrigation
370
PDeS 2015
May 13-15, 2015. Cracow, Poland Lukas Bajer et al. / IFAC-PapersOnLine 48-4 (2015) 368–373 371
The solution, which records the past states of the system, can
be continuous saving of the measured values and actuator
states onto a microSD card. Storing information on the
memory card can be realized in several formats:
• Text document (.TXT)
• Document spreadsheet (.CSV)
To provide easier data handling and possibility to create
graphs and statistics, CSV format was chosen. Support of the
memory card operations is realized using a standard SD.h
library, which is already implemented in the basic installation
of the Arduino development environment Bodnarova et al.
(2013).
Visualization should be a part of any automation structure, This example shows LCD in the process of displaying some
because once the sensors measure some data, which the basic values like time, temperature, humidity and
actuators have to act upon, control over the current state of atmospheric pressure.
the system is necessary Stankus et al. (2010). To keep control
only on the uploaded program could lead to an uncertainty
whether the system is performing all the tasks. Although the
main idea of automation is to perform operations without
371
PDeS 2015
372
May 13-15, 2015. Cracow, Poland Lukas Bajer et al. / IFAC-PapersOnLine 48-4 (2015) 368–373
372
PDeS 2015
May 13-15, 2015. Cracow, Poland Lukas Bajer et al. / IFAC-PapersOnLine 48-4 (2015) 368–373 373
Fuentes, M., Vivar, M., Burgos, J. M., Aguilera, J., Vacas, J. Iwasaki, Y., Aizawa, M., Yoshida, C., Takaichi, M.,
A., Design of an accurate, low-cost autonomous data Developing a new energy-saving, photosynthesis-
logger for PV system monitoring using Arduino (TM) promoting environmental control system for greenhouse
that complies with IEC standards, Solar Energy production based on a heat pump with a heat storage
Materials and Solar Cells, Vol. 130, pp. 529-543, Nov system, Journal of Agricultural Meteorology, Vol. 69,
2014 Issue: 2, pp. 81-92, 2013
Hajovsky R., Pies M.: Complex Measuring System for Lee, KO., Suh, BY., Bae, Y., Yang, JY., Jeong, YY., Nakaji,
Longtime Monitoring and Visualization of Temperature K., Development of an Integrated Greenhouse
and Toxic Gases Concentration, Elektronika ir Monitoring and Control System at Province Level,
Elektrotechnika, Vol. 122, Issue 6, pp. 129-132, 2012 Journal of the Faculty of Agriculture Kyushu University,
Horalek, J., Sobeslav, V., Datanetworking Aspects of Power Vol. 56, Issue 2, pp. 379-387, Sep 2011
Substation Automation. Communication and Luan, XL., Shi, Y., Liu, F., Unscented Kalman Filtering for
management in technological innovation and academic Greenhouse Climate Control Systems with Missing
globalization. Athens: World scientific and engineering Measurement, International Journal of Innovative
academy and society, 2010, s. 147-153. Computing Information and Control, Vol. 8, Issue 3B,
Krawiec, J., Penhaker, M., Krejcar, O., Novak, V., Bridzik, pp. 2173-2180, Mar 2012
R., Web System for Electrophysiological Data Luo, H., Yang, PL., Li, YK., Xu, FP., An Intelligent
Management, Proceedings of 2010 Second International Controlling System for Greenhouse Environment Based
Conference on Computer Engineering and Applications on the Architecture of the Internet of Things, Sensor
ICCEA 2010, 19. – 21. March 2010, Bali Island, Letters, Vol. 10, Issue 1-2, pp. 514-522, DOI
Indonesia, Volume 1 2010, pp. 404-407. DOI: 10.1166/sl.2012.1850, Jan-Feb 2012
10.1109/ICCEA.2010.85 Olvera-Olvera, CA., Duarte-Correa, D., Ramirez-Rodriguez,
Krejcar, O., Spicka, I., Frischer, R., Implementation of Full- SR., Alaniz-Lumbreras, PD., Lara-Herrera, A., Gomez-
Featured PID Regulator in Microcontrollers, Elektronika Melendez, D., Aguilera-Soto, JI., Araiza-Esquivel, MA.,
ir Elektrotechnika, 2011, Issue: 7, Pages: 77-82, ISSN: Villa-Hernandez, JJ., Gonzalez-Ramirez, E., Herrera-
1392-1215 Ruiz, G., Development of a remote sensing and control
Krejcar, O., Frischer, R., Batteryless Powering of Remote system for greenhouse application, African Journal of
Sensors with Reversed Peltier Power Source for Agricultural Research, Vol. 6, Issue 21, pp. 4947-4953,
Ubiquitous Environments, International Journal of Oct 5 2011
Distributed Sensor Networks, 2013 Pies M., Hajovsky R., Ozana S.: Autonomous Monitoring
Krejcar, O., Frischer, R., Smart intelligent control of current System for Measurement of Parameters of Heat
source for high power LED diodes, Microelectronics Collection Technology at Thermal Active Mining
Journal, 2013, Volume: 44, Issue: 4, Pages: 307-314, Dumps, Elektronika it Elektrotechnika, vol. 19, Issue
ISSN: 0026-2692, eISSN: 1879-2391 10, pp 62-65, 2013
Krejcar, O., Janckulik, D., Motalova, L., Kufel, J., Mobile Pies M., Hajovsky R., Latocha M., Ozana S.: Radio
Monitoring Stations and Web Visualization of Telemetry Unit for Online Monitoring System at Mining
Biotelemetric System - Guardian II. The First Dumps, In Applied Mechanics and Materials, vol. 548-
International ICST Conference on Communications 549, pp. 736-743, 2014
Infrastructure, Systems and Applications in Europe, Stankus. M., Penhaker. M., Kijonka. J., Grygarek. P., Design
EuropeComm 2009, August 11-13, 2009 London, UK. and Application of Mobile Embedded Systems for Home
Lecture Notes of the Institute for Computer Sciences, Care Applications, Proceedings of 2010 Second
Social-Informatics and Telecommunications International Conference on Computer Engineering and
Engineering, LNICST Vol. 16. pp. 284-291. DOI Application,s ICCEA 2010, 19. – 21. March 2010, Bali
10.1007/978-3-642-11284-3_29 Island, Indonesia, 2010 p. 412-416. DOI:
Krejcar, O., Benefits of building information system with 10.1109/ICCEA.2010.86
wireless connected mobile device - PDPT Framework. In Tutsch, M., Machacek, Z., Krejcar, O., Konarik, P.,
1st IEEE International Conference on Portable Development Methods for Low Cost Industrial Control
Information Devices, IEEE Portable 2007, March 25-29, by WinPAC Controller and Measurement Cards in
2007, Orlando, USA. pp. 251-254. ISBN 1-4244-1039- Matlab Simulink, Proceedings of Second International
8, DOI 10.1109/PORTABLE.2007.57 Conference on Computer Engineering and Applications,
Machacek, Z., Pies, M., Ozana, S., Simulation of MIT Rule- ICCEA 2010, 19. – 21. March 2010, Bali Island,
based Adaptive Controller of a Power Plant Superheater. Indonesia, Volume 2, 2010 pp. 444-448, DOI
Advances in Intelligent and Soft Computing. 2012, 10.1109/ICCEA.2010.235
Vol.133, p.473-479. ISSN: 1867-5662. Vozda, M., Sekora, M., Penhaker, M., Precise Temperature
Ma, JC., Li, L., Liu, X., Fu, ZT., Zhang, LX., A Fuzzy Stabilizing System of Liquids for the Purpose
Comprehensive Evaluation of the Applicability of Biomedical Applications” Journal Electronics and
Intelligent Greenhouse Control Systems, Sensor Letters, Electrical Engineering, vol.18, Iss 10., pp. 29 – 32,
Vol. 11, Issue: 6-7, pp. 1396-1402, DOI 2012.
10.1166/sl.2013.2893, Jun-Jul 2013
373