Beruflich Dokumente
Kultur Dokumente
Abstract—The characteristics and the design factors of wireless The system can acquire the characteristic signals of the
sensor network node are talked in this article. According to the environment, and transmit or receive external RF signal
design factors of wireless sensor network, this article will through the CC2430. The microcontroller controls the data
mainly point out the design of wireless sensor nodes based a reception, processing, storage, packing the calculated
Cortex-M3 Microcontroller STM32F103RE chip. And the simplify data and send the data to the sink node through the
wireless communication module is designed with a CC2430 network.
chip. Our wireless sensor node has good performance in our
test. B. Hardware Connection between Microcontroller and
CC2430
Keywords- Wireless sensor network; Design of sensor node;
The communication and control between the
STM32F103RE; CC2430.
microcontroller and the CC2430 use a standard SPI bus[2,4].
SPI(Serial Peripheral Interface)is a four-wire synchronous
I. INTRODUCTION serial interface designed by Motorola, because of the
The wireless sensor network is a collection of powerful hardware, its software code is relatively simple,
information collection, information transmission, allows the microcontroller to have more time to deal with
information processing in an integrated intelligent other things. Generally less pin package such as FLASH,
information systems by cheap micro sensor nodes deployed EEPROM, ADC, clock chip have a SPI interface. SPI is a
in the sensing area. It is a formation of a Ad-Hoc network synchronous, full-duplex, fast communication interface bus,
through wireless communication, with a low-power, low- and only four pins on the chip, and provides a convenient
cost, distributed, self-organization, rapid deployent, anti- connection mechanism to save the chip pins, and also saves
strong survivability[1]. PCB layout area. STM32 series microcontroller also supports
With the rapid development of wireless sensor network SPI interface, its function is very powerful, and is also very
in various areas, a lot of design of sensor nodes in different easy to implement, the microcontroller can achieve the
functions and performance had been shown. This article will control of CC2430 by six lines, as shown in Figure.3. In
show a method to design a wireless sensor node based on order to facilitate the communication and control between
STM32F103RE microcontroller and CC2430 radio the microcontroller and CC2430 chip, a auxiliary line is
frequency chip. added between the two chips, when necessary, to establish
some of the necessary communication between the
II. SYSTEM HARDWARE DESIGN microcontroller and CC2430 chip.
microcontroller. As can be seen, the entire microcontroller B. CC2430 Transmitting and Receiving Ends Software
software design mainly includes the following sections: Design
• Initialize basic Peripherals: This part initialize the In this paper, the Z-Stack2006 ZigBee protocol stack
microcontroller minimum system, including provided free by TI is chosen as the CC2430 development
initialization of the system clock, the peripheral platform, greatly simplifying the application development
clock initialization, interrupts initialization, serial
process. The design only needs to add CC2430 and
communication initialization, timer initialize. These
basic initialization have a lot mature program to refer. microcontroller SPI communication control part on the basis
• Initialize peripherals: This part is the initialization of of the Z-Stack, and the CC2430 software design can be
some peripheral devices, including Flash, sensors, achieved[3].
CC2430 RF chip etc. Initialization of the peripheral In order to increase the capacity of the ZigBee wireless
devices, including the I / O port initialization, clock sensor network as well as to solve an important energy
initialization, SPI communication initialization. As supply problems in sensor networks. The design uses a
mentioned above, CC2430 is a 51-core, supporting operating mode wake-up based on demand. This model can
ZigBee protocol, wireless RF chip. So for the significantly save the power consumption of the sensor
microcontroller, CC2430 initialization relates only to nodes, reducing the probability of collisions when the
the initialization of the interconnected SPI interface. information reported to extend the life of the network.
• Timer interrupt function processing: The design uses Figure.5 shows a flowchart of a program for CC2430
a timer fixed periodic interrupt to read the sensor transmitting and receiving ends. The CC2430 chip's
data. In the interrupt function the data is processed program includes the following sections:
and saved, then transferred between the CC2430
chip.
a、Transmitting end
b、Receiving end
Fig.5 The program flowchart of CC2430 chip
[2] J Li FuJun, Jiang Xuedong. MSP430 microcontroller more between [4] Yan Liang, Hao Hu, Yimin Lu. DLED display module with C8051F
the SPI master-slave communication [J], microcontroller and MCU Interface Design [J], Microcontroller and Embedded Systems,
embedded system applications, 2007 (9) :-22. 2006(1).
[3] Dehui Sun, Guanfei Gong, Yang Yang, CC2430-based system design [5] Bingwu Ning, Junmin Liu, the design of Zigbee network node which
for wireless sensor networks,Modern electronic technology, is based on CC2430, Electronic technology application,the end of
2010.(Chinese). 2008 ,Phase 3.(Chinese)