<figure><img src="image_1.png" /></figure>

HAL
open science

# Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

Xi Wang, Hui Gao

► To cite this version:

Xi Wang, Hui Gao. Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology. 5th Computer and Computing Technologies in Agriculture (CCTA), Oct 2011, Beijing, China. pp.155-160, 10.1007/978-3-642-27281-3_20. hal-01351805

HAL Id: hal-01351805

https://inria.hal.science/hal-01351805

Submitted on 4 Aug 2016

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# Agriculture Wireless Temperature and Humidity Sensor Network based on ZigBee Technology

Xi Wang¹, Hui Gao²

(1. Heilongjiang Bayi Agricultural Reclamation University, Daqing 163319, China; 2. Lanzhou Jiaotong University, Lanzhou 730070)

**Abstract.** Combining with agricultural production practice, we propose the agriculture wireless and humidity sensor network design, which is based on ZigBee technology. And we use the chip based on the CC2530 ZigBee protocol as the sensor nodes and coordinator nodes for data collection, transmission and display, aiming to realize the agricultural production automation and precision agriculture.

**Keywords:** agricultural production; temperature and humidity; wireless network; sensor

## 1 Introduction

At present, many aspects of production and life need extracting and processing temperature and humidity information of the surrounding environment. In the past, technology was to collect temperature and humidity information by the temperature and humidity sensors, and to transmit the data to the monitoring center by the RS-485 bus or field bus again, so you need to lay a lot of cables to collect and process temperature and humidity information. Traditional agriculture mainly uses isolated, no communication ability of mechanical equipment, and mainly relies on the person to monitor crop growth status. However, if ZigBee wireless sensor network technology is used, the agriculture will gradually shift to information and software-centric mode of production, and use more automation, networking, intelligent, and remote control equipment to farming. Sensors may collect the information such as soil moisture, nitrogen concentration, pH, precipitation, temperature, air humidity, air pressure and so on. The above-mentioned information and the locations of the collected information are passed to the central control equipment for decision-making and reference through the ZigBee network, so we can identify problems early and accurately for helping to maintain and increase crop yield. In many data-oriented wireless network transmissions, low cost and complexity wireless network are widely used.
## 2 ZigBee Technical Features

ZigBee technology is a short distance, low complexity, low power, low data rate, and low-cost, two-way wireless communication technology, employed mainly in the field of automatic control and remote control, can be embedded in a variety of devices to achieve their automation [1]. For the various existing wireless communication technology, ZigBee technology will be the lowest power consumption and cost technology.

Transfer rate of ZigBee data is low, ranging from 10KB/s to 250KB/s and focusing on low-transmission applications. Under low power standby mode, the two ordinary No.5 batteries can last 6 to 24 months. ZigBee data transfer rate is low, and its protocol is simple, so it greatly reduces the cost. Network capacity is large to accommodate 65,000 devices. Delay time is short, usually in the 15ms ~ 30ms. ZigBee provides data integrity checking and authentication capabilities, using AES-128 encryption algorithm. Flexible working band, the use of frequency band 2.4GHz, and frequency bands are unlicensed. Such good points as the reliable transmission and the use of collision avoidance strategies are included while the business that requires a fixed bandwidth is reserved specific time slots.

## 3 Overall system design concept

Based on ZigBee wireless technology, the temperature and humidity sensor network is composed of three parts: the transmitter, receiver and display system. Transmitter is constituted by a number of terminal nodes; each node consists of a temperature and humidity sensor and a ZigBee wireless RF module. Greenhouse temperature and humidity sensors collect information on temperature and humidity, then temperature and humidity data is transmitted to the ZigBee wireless RF modules. Correction of the temperature and humidity data is processed via a chip embedded in ZigBee wireless RF (radio frequency) module, and the data revised will be sent to the receiver through ZigBee wireless network. Receiver consists of a ZigBee RF module and an RS232 serial port module. Receiver module that is a network coordinator establishes a star structure of the network. The data of each node is received through ZigBee network and transmitted to the display system via RS232. This is the temperature and humidity collection and delivery process of a sending node of the system.
<figure><img src="image_3.png" /><figcaption>Fig.1. Overall system simulating scheme</figcaption></figure>

# 4 System hardware design

CC2530 meets low-cost and low power requirements of the 2.4GHz ISM band based on ZigBee. It includes a high-performance 2.4GHz DSSS (direct sequence spread spectrum) RF transceiver core and a 8051 controller. ZigBee RF front end, memory and microcontroller are integrated on a single chip. It has 128kB programmable flash memory and 8kB RAM, including ADC, timers, 32kHz crystal sleep mode timer, power-on reset circuit, power-down monitor circuit and 20 programmable I/O pins, enabling the node miniaturization [2]. CC2530 wireless single chip is characterized by very low power, standby current consumption of only 0.2µA. Under the run of 32 kHz crystal clock, the current consumption is less than 1µA.

The temperature and humidity sensor SHT11 integrates several circuits into a single chip, such as temperature and humidity detection, signal amplification conditioning, A/D conversion and digital communications interface. Humidity measuring range is 0 ~ 100% RH, temperature measurement range is -40°C ~ +123.8°C, humidity measuring accuracy is ± 3.0% RH, temperature measuring accuracy is ± 0.4°C, and the response time is less than 4s. For digital interfaces, SHT11 provides two-wire digital serial interface SCK and DATA; SCK is the serial clock line for communication between the microprocessors to achieve synchronization. DATA serve as the serial data line, and makes the data transmission between the microprocessors. The chip interface is simple, good at high transmission
reliability, and measurement precision can be adjusted by programming. After the
measurement and communication, low-power mode is automatically transferred.

**4.1 The hardware design of the transmitting node**

Transmitting node is the basic unit of the network composed of digital
temperature and humidity sensor SHT11 module, CC2530 processor module, antenna
module, power supply module. It is responsible for acquiring temperature and
humidity data and data preprocessing, and they will be transmitted to ZigBee
receiving end. Temperature and humidity sensor module is responsible for collecting
and detecting temperature and humidity data of region. Processor module makes
analog-digital conversion for the collected data signal, and then processes. The
processed data is issued by the antenna [3]. The power module mainly supplies power
for the processor. Transmitting hardware framework is shown in Fig. 2.

<figure><img src="image_4.png" /><figcaption>Fig.2. Transmitting hardware framework</figcaption></figure>

**4.2 The hardware design of the receiving node**

Receiver node is composed of a power supply module, a key module, a serial
module, a LCD module, LED lights, a CC2530 processor module and an antenna
module. The wireless temperature and humidity sensor network is not an
independent communication network, which needs transmitting the monitoring
temperature and humidity data to the host computer and displaying them. LED
indicator lights are used to display the receiving node network state information
(e.g. whether the network is built successfully); LCD module is an interface of the
user and sensor network to display the function menu, and the user selects them
by pressing buttons. CC2530 is a data-receiving mode. When data is received, RF receiving signals are amplified by the low noise amplifier before they are overturned into the frequency mixer. By mixing frequency, IF (intermediate frequency) signal is produced. In IF processing stage, before the signal into the demodulator is amplified and filtered, the data of demodulation is put into the shift register, and then into RFBUF. After the temperature and humidity data in RFBUF are removed by MCU, they will be put into the data buffer register SBUF of UART, and be transmitted to the host computer through RS232 serial module

## 5 System Software Design

The system using development environment is IAR7.51A while the using protocol stack is Z-STACK of TI. The system connecting the receiving end to PC via the serial port RS232 must know the network address of each sensor node, requiring that the network address is sent to the receiver after each sensor device joins the network. The receiver receiving the network address of the sensor establishes address table to store so that the user collects data of each sensor according to address table when collecting data [4]. Transmitter and receiver software flowchart is shown in Fig. 3.

<figure><img src="image_5.png" /><figcaption>Fig.3. Transmitter and receiver software flowchart</figcaption></figure>
# 6 Construction of wireless sensor networks based on ZigBee

The FFD (full functional device) must lead as the network coordinator to establish a network, then the other FFD or RFD join the network, but the RFD (reduce functional device) can only link to FFD. According to the device function in the network, programs are designed beforehand for the device. The coordinator function is to search by scanning and scanning 16 channels set the applicable optimum channel to start a network. The device can form a network (coordinator) in the free channel, or connect to an existed network. Router function is to search by scanning to find an active channel and connect it, then allow connecting other installations. The function of terminal devices is always trying to connect to an existed network. Those terminal devices search other devices that can provide complete search service in the network allowing any network device to initialize the service search [5], and can bind other devices that will provide full service, offering commands and control features for the specified set of conforming devices.

Central control center is connected to a number of the sending end through the network connection. Wireless information transmission between the receiver and transmitter is achieved via Zig Bee technology. The sender is responsible for detecting and processing data and sends it to the receiver. The control center gets the collected relevant information through the network. Multiple senders are distributed in the sensor network, so polling scan is put to the upload data from different ID sink nodes and data of sink nodes can be orderly, completely transmitted after being treated through MCU.

# 7 Conclusions

This paper proposes a wireless temperature and humidity sensor network system based on ZigBee technology, and networking ways are of flexibility, adaptability. Through the practical application in the laboratories and its surrounding offices, this system is proved to be very practical. In practical applications, terminal device number is determined by achieving goal demands. The system can be applied to agricultural production, as well as in more areas of production and life, solving monitor environmental temperature and humidity problems in the areas of high cost and inconvenience arrival of wired network cabling, abominable environment. ZigBee
networking ways typical of simple and low power consumption make the temperature and humidity information in real-time delivery reduce system costs, save energy, and conserve resources, and its low cost for the promotion in industry provides convenience. With ZigBee chips at lower prices, the new temperature and humidity monitoring system will also have a broad application prospect.

## References

1. Lei Zhai, Shengde Liu, Yianbin Hu. ZigBee Technology and Application. Beijing Aeronautics and Astronautics Press, 2007:313-347

2. Chipcon semiconductor. CC2530 Data Sheet 1.02. www.chipcon.com

3. Yanfei Liu, Cheng Wang, Chengbo Yu. Research on ZigBee wireless Sensors Network Based on ModBus Protocol. Information Technology and Applications May 2009, 487-491

4. Chipcon semiconductor. Chipcon IAR User Manual. www.chipcon.com

5. Jianhui Song. Wireless sensor network node design and implementation. Jilin University School of Instrument Science and Electrical Engineering