龍光利
摘 要: 針對傳統環境溫濕度檢測系統傳輸距離短、高功耗、布線雜亂的現狀,設計一種基于ZigBee的無線溫濕度監控系統,它由終端傳感器模塊和協調器模塊組成。無線終端傳感器模塊的主要功能是采集溫度和濕度信息,協調器模塊建立并維護ZigBee網絡,ZigBee網絡經終端模塊和協調器模塊將數據上傳到上位機,達到實時監測的效果。實驗表明,終端模塊可以正常采集溫度和濕度,協調器模塊可無線接收數據并通過串口通信,在上位機上能正確顯示溫濕度信息。
關鍵詞: 溫度監控; 濕度監控; ZigBee; 終端傳感器模塊; 協調器模塊; 信息采集
中圖分類號: TN948.64?34; TN919.72 文獻標識碼: A 文章編號: 1004?373X(2018)12?0036?04
Abstract: In view of the status quos of short transmission distance, high power consumption, and disordered wiring existing in the traditional environment temperature and humidity detection system, a wireless temperature and humidity monitoring system based on ZigBee is designed. The system is composed of the terminal sensor module and coordinator module. The main function of the wireless terminal sensor module is to collect temperature and humidity information. The coordinator module is used to establish and maintain ZigBee network, which uploads data to the host computer via the terminal module and coordinator module, so as to achieve real?time monitoring. The experimental results show that the terminal module can collect temperature and humidity information normally, the coordinator module can wirelessly receive data and communicate via the serial port, and the temperature and humidity information can be displayed correctly on the host computer.
Keywords: temperature monitoring; humidity monitoring; ZigBee; terminal sensor module; coordinator module; information acquisition
0 引 言
近年來,隨著農業規?;凸I自動化的發展,溫濕度監測系統越來越多地應用于糧食儲存[1]、農業生產中的種植大棚 [2]、工業生產中的環境控制、生物化學制藥[3]等領域中,建立監測溫濕度網絡是十分重要的技術環節。溫濕度監測系統采用有線監測設備,布線比較雜亂,檢修維護困難,靈活性不高。無線溫濕度監測系統結合了傳感器和無線通信技術,不需要鋪設線路,周圍環境影響小,擴展用途容易, 維護檢修比較方便。低速率和短距離的ZigBee無線通信技術容易推廣應用,工作頻段比較靈活,成本和功耗比較小,運行比較可靠,同時具有自恢復能力和自組網功能。
1 硬件設計
基于ZigBee的無線溫濕度監控系統原理框圖如圖1所示,系統由溫濕度傳感器、單片機、終端模塊、協調器模塊、PC上位機等組成?!?br>