You are on page 1of 4

2010 International Conference on Measuring Technology and Mechatronics Automation

Wireless Measurement and Control System for Environmental


Parameters in Greenhouse

Yang Shulian, Zhang Yu


Shandong University of Technology, Zibo, Shandong, 255049, China
yangsl21cn@163.com

Abstract – According to the environmental parameters


takes charge of collecting temperature, humility, carbon
monitoring requirements in greenhouse, a wireless dioxide and other parameters, and transmit these parameters
measurement and control system for temperature and humidity to centralized control unit by wireless sending modules; on
is developed. It overcomes the disadvantages of wired the other hand, it takes charge of carrying out the instructions
monitoring system, such as complicated wiring, and difficult sending by PC and then to adjust these parameters.
maintenance. The environmental parameters in every Centralized control unit not only summarizes the data
greenhouse were measured and controlled by microcontroller. collecting by every terminal and transmits these parameters
The hardware and software of the monitoring system are to PC, but also receives control instructions from PC and also
discussed in detail. The experimental results show that the sends it to every terminal to adjust the environment
developed monitoring system has the following features, such as
simple structure, high reliability, good extensibility and flexible
parameters of every terminal. The PC collects the
configuration. It can control and adjust automatically the environment parameters of every terminal, handles and
environmental parameters in every greenhouse, and has project displays it, which gives all kinds of control instruction
practicality and vendibility. according to these parameters. Serial communication circuit
achieves the level conversion between the microcontroller
and the PC in order to realize the communication between
Keywords –Greenhouse; temperature and humidity; Wireless
transmitting and receiving; measurement and control; nRF905 them.

I. INTRODUCTION
For the large rural distract, the greenhouse production Terminal 1
Terminal n
has become a way of being rich. The growth of crop in Terminal 2
greenhouse depends on temperature, humility and other
parameters in greenhouse. So it is important to real-timely
and properly measure and adjust the temperature, humility .
PC RS232C Centralized control unit
and other parameters in the greenhouse. With the continued .
expansion of production scale, the disadvantages of .
traditional wire monitoring system are more and more
prominent, such as complicated arrangement, difficult Terminal 3 Terminal 4
maintenance and so on. Then the wireless monitoring system
is developed, which based on wireless communication
technology, does not need cables, adds or reduces Figure 1. Block diagram of general system.
configuration at random, possess simple system construction.
Moreover, it is characterized by its low power consumption, III. DESIGN OF FUNCTION MODULE
simple net construction. Therefore, it proves to be simple and
of practical significance[1-3]. A. Centralized control unit
A greenhouse environment parameters monitoring
Centralized control unit consists of microcontroller and
system based on wireless communication technology has
radio frequency transceivers. Microcontroller as the control
been developed, which realizes the measurement, summary
center, not only controls the transmission and receiving of
and control of temperature, humility and the other
radio frequency signal; but also communicates with the PC.
parameters.
Considering energy-saving of the entire system, the
II. GENERAL SYSTEM microcontroller of STC12LE5410AD is selected which is
driven by power supply of 3.2V. It consists of the following
The diagram of monitoring system for environment
features: 8051 core, 8 channels and 10 bits ADC, 4 channels
parameters in greenhouse is shown in figure 1. It includes
PWM output, 521 Bytes of on board RAM, 10K program
every terminal, centralized control unit, PC and serial
memory, watchdog, integrated special reset circuit of
communication circuits. On the one hand, every terminal

978-0-7695-3962-1/10 $26.00 © 2010 IEEE 1099


DOI 10.1109/ICMTMA.2010.171

Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 12,2010 at 10:45:26 UTC from IEEE Xplore. Restrictions apply.
MAX810, two 16 bits timers/counters, 2 channels interrupt, 0%~100% RH, precision is ±2.0% RH; repeatability
full duplex UART, can be set as single clock machine cycle precision is ±0.1% RH; the output is digital signal.
(1T), and is 8 to12 times than the 51 family microcontroller in (2)The concentration sensor of CO2 is chosen as infrared
speed. CO2 sensor of C20 which produced by the British GSS
According to the systemic design principle in high Company. It’s main performance index are: measuring range
stabilization and low power consumption, the nRF905 is is 0~5000ppm; precision is 10ppm; response time is less than
practically selected. It is a single chip radio transceiver for the 4s; power supply is 3.3V DC; average power consumption is
433/868/915MHz ISM band. The transceiver consists of a less than 100mW; serial input and output are in TTL level or
fully integrated frequency synthesizer, receiver chain with analog voltage of 0~5V.
demodulator, a power amplifier, a crystal oscillator and, a The controlling members of greenhouse for
modulator. The ShockBurst™ feature automatically handles environment parameters consist of the controlling of heater,
preamble and CRC. You can easily configure the nRF905 exhaust fan and humidifier. With the temperature, humidity
through the SPI. Current consumption is very low, in transmit and co2 concentration are not suitable for the growth of crops,
only 9mA at an output power of -10dBm, and in receive mode the PC can send out instructions to control solid state relay,
12.5mA. Built-in power down modes makes power saving then the heater, exhaust fan and humidifier are turned on by
easily realizable. solid state relay; Otherwise these controllers are turned out .
With the increase of the number of greenhouse, and
C. Power supply unit
being greater the area of its cover, the transmission power of
nRF905 does not meet the actual demand, thus the circuit of The power supply consist of a lithium battery with
amplifying power based on the chip of PA2423L is designed capacity of 1200 mAh, intelligent battery monitoring IC of
to improve systemic output power and realize further DS2762, battery protection IC of R5426, battery charge
receiving and transmission distance. management IC of BQ2057, etc. It provides the necessary
energy and intelligent charging and short circuit protection
B. Measurement and control unit function for every terminal[4].
The block diagram of every measurement and control
D. Serial communication circuit unit
terminal is showed in figure 2. It mainly includes data
acquisition subsystems, control subsystems, wireless The serial communication circuit accomplishes the
communication subsystems and power supply subsystem. It communication between the PC and microcontroller. The
is mainly used to measure the temperature and humility system on the one hand collects the data which every terminal
indoors and outdoors and carbon dioxide concentration collected; on the other hand controls the action of ach
indoors, to control heaters, exhaust fans, humidifiers and terminal by the instruction of the PC. The connection diagram
transmit these data. of serial interface is showed in Figure 3. This serial
The microcontroller and radio frequency transceivers in communication circuit is designed based on RS232C serial
this section are selected as same as in the section A. The interface for data transmission. The conversion between
measurement and control module of environment parameters RS232 and TTL level by STC3232, because it is RS232C
is only explained as follows. duplex transmitter/receiver interface chip, which has level
multiplication circuit with spontaneously stepping up and
only needs a single power supply of +3.3V[5,6].

transceiver
TXD
microcontroller

TXD RXD
Temperature,
ADC

STC3232

humidity and
μC
PC

CO2 sensors Heater,


humidifier
and exhaust RXD TXD
fan

Figure 3. Diagram of the connection of serial interface.


Figure 2. Diagram of measurement and control unit.

The sensor is chosen in practical application in energy IV. SYSTEMIC SOFTWARE


consumption, measuring range and precision, cost and The systemic software includes data acquisition, data
volume, with the performance are shown as follows: receiving and transmission by wireless and action
(1)Temperature and humidity sensor is chosen as subprogram of every terminal, communication subprogram
SHT15. its performance index are: temperature measuring between PC and microcontroller, and data processing
range is -40℃~+123.8℃, the measuring precision is ±0.3℃ subprogram by PC. The program of microcontroller and PC
at 25 ℃ , response time is less than 8 s, average power are coded by C51 and Visual Basic Language, respectively.
consumption is 20 µW; humidity measuring range is

1100

Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 12,2010 at 10:45:26 UTC from IEEE Xplore. Restrictions apply.
The PC program consists of parameter setting Start
subprogram, data collection subprogram, data processing
subprogram, data management subprogram and control
instruction subprogram. Parameter setting subprogram μC initiation
mainly set all kinds of systemic parameters, such as the
working mode parameters of every terminal and the sampling Opening series interface
time. The data acquisition module achieves synchronously
the collection of multi-channel data, real-time display of
waveform, etc. Every monitoring parameter is displayed Sending instructions of acquisition data
dynamically by real-time graph and table. The data
processing module is mainly used to deal with the received Receiving terminal data
data package, such as digital filtering, numerical calculation,
scale conversion, logical judgment and so on. The data
management module is mainly used to manage the collecting Uploading data to PC
data, including storage, enquiry, printing, data analysis and
statistics, etc. The relational database of SQL Server 2000 is
used to store and manage the collecting data, graph and table Figure 5. flowchart of microcontroller subprogram
are used to show historical data inquiry information of every
monitoring parameter. Every control instruction module C. Terminal subprogram
sends all kinds of instruction based on the results of the Every terminal subprogram achieves measurement of
comparison of collected data and the standard value, and it all kinds of parameters and transmission of it, and the
will control the controller of every terminal. performance of all kinds of control instructions to adjust all
A. Main program kinds of parameters. The flowchart is followed as Figure 6.
The main program of the PC achieves data receiving, Start
analysis and storage of every terminal. For the data is beyond
the range of a pre-set, the main program sends control Initialization
instructions to control electrical apparatus of every terminal
on or off. The flow chart is followed as Figure4.
Data acquisition N
Start instruction ?

Y Control instruction
System initiation
Y
Collecting kinds of data
Humidifier instruction

Ventilator instruction
Opening RS232 series interface
Heater instruction
Transmitting data
Sending data acquisition instructions

Receiving data

N
Data beyond range?

Y
Sending control instruction Figure 6. flowchart of terminal subprogram

D. Systemic testing result


Figure 4. Flowchart of main program.
The experiment is done on the system at vegetable base
Shouguang, Shandong province. The test results for the
B. Microcontroller subprogram developed system at a moment are shown in table 1.There are
5 greenhouses are located in the circumference of a radius of
The microcontroller subprogram mainly achieves the
1km, every greenhouse can collect environmental
receiving of data from every terminal and transmission of
temperature, airy humidity, concentration of CO2 indoors.
instruction from PC, it is the connective ligament of every
terminal and the PC. The flowchart is followed as Figure 5.

1101

Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 12,2010 at 10:45:26 UTC from IEEE Xplore. Restrictions apply.
The data sampling interval of the system is of 20 minutes.
The acquisition data are sent to central control unit by every
terminal controller, and then also sent to the PC by the central
unit. The data can be stored, displayed, analyzed, inquired
and printed by the software of the PC.
TABLE 1. EXPERIMENTAL RESULTS OF THE SYSTEM.

Humidity Concentration
Greenhouse No. Temperature (℃)
(RH) of CO2 (ppm)
1 22.3 47% 1300
2 23.6 50% 1356
3 25.0 48% 1387
4 24.5 53% 1428
5 24.7 51% 1454
The test results showed that the lithium cell with
capacity of 1200mAh can only remain two days every
terminal when there is not low power consumption measure.
With taking the low power consumption measure that
controlling sampling interval and adopting dormancy, a
lithium cell after charging can remains more than half of a
year for every terminal.

V. CONCLUSION
The measurement and control system for environment
parameters in greenhouse based on wireless communication
technology is developed and initially experimented. The
experimental results indicate that the system has some
features as follows: (1) It is applied to agriculture vegetable
greenhouse can commendably overcome the disadvantage of
traditional measuring and controlling system in greenhouses.
(2) It can be kept long distance, real time monitoring for
parameter of greenhouse and the information can be obtained
of greenhouse at any time. (3) It has the advantages of not
needing cables, low power consumption, cheap cost, good
robustness, flexible extension, convenient installing over the
traditional measurement and control system.
REFERENCES
[1] Kang Weixin. Design of Charged Wireless Communication Interface
Based on Bluetooth Technique. Heilongjiang Institute of Technology,
2002,16(3):24-26.
[2] Tan Liang , Hu Ji. Design of the Wireless Multi - Point Temperature
Gathering System Based on nRF9E5, Journal of Hangzhou Dianzi
University, 2006,8(4):31-34.
[3] Zhu Weihua. Design of Wireless Data collection System Based on
Single RF Transceiver. Nanhua University, 2003,17(2):6-9.
[4] Zhang Baohua, Li Shining, Teng Wenxing, and etc. Development and
design of greenhouse testing and control system based on wireless
sensor networks. Microelectronics & computer,2008,25(5): 154-157.
[5] Zhang Weigang. Communication principle and technology. Xi’an:
Xidian university press,2002,pp.182-185.
[6] Li Wenzhong. Short-range wireless data communication entry and the
actual combat [M]. Bei hang University Press,2002, pp89-93.

1102

Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 12,2010 at 10:45:26 UTC from IEEE Xplore. Restrictions apply.

You might also like