


摘? 要: 為了對室內溫度、濕度、毒氣濃度、PM2.5等環境參數實時監測與調控,設計一種基于STM32與Zigbee的室內環境調控系統。利用Zigbee自組網技術實現對室內溫度、濕度、毒氣濃度及PM2.5等信息采集,并通過協調器上傳至STM32網關,經處理后在LCD屏上顯示,同時可提供web站點用戶通過瀏覽器查看,另外,可根據實際情況下對終端設備下發操作的指令。從而為用戶對室內環境參數監測與調控提供了更好的解決方案。
關鍵詞: 室內環境調控;系統;信息上傳;STM32網關
中圖分類號: TP273+.5 ???文獻標識碼: A??? DOI:10.3969/j.issn.1003-6970.2020.07.042
本文著錄格式:余正軍. 基于STM32與ZigBee的室內環境調控系統設計[J]. 軟件,2020,41(07):206-209
Design of Indoor Environment Regulation System Based on STM32 and ZigBee
YU Zheng-jun
(Shantou Polytechnic, Shantou 515078)
【Abstract】: An indoor environment regulation system based on STM32 and Zigbee is designed to realize real-time monitoring and regulation of indoor temperature, humidity, toxic gas concentration, PM2.5 and other environmental parameters. Use Zigbee self-organizing network technology to collect indoor temperature, humidity, toxic gas concentration, PM2.5 and other information, which is uploaded to STM32 gateway through the coordinator and displayed on the LCD screen after processing. At the same time, it can provide web site users to view through the browser. 7In addition, it can issue operation instructions to the terminal equipment according to the actual situation.so as to provide a better way for users to monitor and regulation the indoor environmental parameters.
【Key words】: Indoor environment regulation; System; Information upload; STM32 gateway
0? 引言
隨著全面小康社會的實現,室內環境因素嚴重威脅人類的健康,然而藍牙、Zigbee、紅外線、WiFi等無線通信技術在環境監測系統中得到了廣泛應用。例如基于Zigbee技術和GPRS通信技術實現對室內環境參數的遠程傳輸與監測[1],基于Gainspan平臺利用wifi技術實現是對室內環境參數監測[2], 基于CC2530與CC3200的室內環境監測[3]。但上述系統只利用相關的無線技術將室內環境信息上傳至服務器存儲,并沒有對數據邊緣處理,也沒有對室內環境進行實時調控。
針對這一缺陷,結合他們的研究經驗,本文提出一種基于STM32與ZigBee的室內環境調控系統的設計,實現對室內環境信息實時監測與調控,并能將室內環境信息在stm32網關的LCD屏動態顯示,同時也能讓用戶在web站點上通過瀏覽器實時查看。
1 ?系統總體方案
系統的zigbee協調器和終端節點模組的MCU采用TI公司生產的CC2530F256。此芯片使用8051內核,建……