Application based on practical granary temperature and humidity measuring system(4)
source: 21IC Author: Wang Mingming, Wang Zhilin, Yuan Hao, pan Hui time: 2012-03-08
4 software design for
system software mainly includes data acquisition program and data transceiver program in two parts, which includes initialization program, launch program and receiving program.
initialization procedure is set on the microcontroller, RF chip, SPI interface; transmitting program will establish a data packet through the MCU SPI interface to the wireless module output; the receiving program completes the data receiving and processing. Data acquisition subroutine is mainly responsible for according to the temperature and humidity data real-time acquisition of granary wireless command, the software flow as shown in figure 7.
data transceiver program is mainly responsible for collecting and transmitting information node to the data, and receives the returned data, comprehensive to the upper node to transmit, software process is shown in figure 8.
the paper with low cost, low power consumption as the goal, uses the ZigBee technology and the CC2500 chip, the design of MSP430F449
Granary temperature and humidity measuring system based on single chip, simple structure, low cost, and easy to expand, the system can meet the demand of long time of granary temperature and humidity monitoring, has high reliability and stability, has good application value in practice.