








摘 要:為合理有效地控制臥室空調,達到節能減排,改善睡眠環境的目的,該文設計一款基于STM32的空調智能控制系統。系統以STM32F103C8T6為主控器,通過溫度傳感器、濕度傳感器、二氧化碳傳感器采集臥室內外的環境參數,并與主控器設定的參數比較,根據控制策略,輸出紅外遙控指令控制空調和風扇的關停及直接控制開窗器的開啟,達到令人舒適的空調關停,該系統還可通過WIFI模塊實現手機對系統參數的顯示設定。調試運行結果表明,在室外溫度低于空調制冷溫度時,系統能協調控制空調、風扇、開窗器的關開,實現讓人舒適的平緩過渡空調關停控制,具有很好的節能及換氣效果。
關鍵詞:STM32;空調控制;WIFI;物聯網;人體舒適度
中圖分類號:TP273 文獻標志碼:A 文章編號:2095-2945(2024)23-0120-05
Abstract: In order to reasonably and effectively control bedroom air conditioning, achieve energy saving and emission reduction, and improve sleep environment, an intelligent air conditioning control system based on STM32 is designed in this paper. The system takes STM32F103C8T6 as the main controller, collects the environmental parameters inside and outside the bedroom through temperature sensor, humidity sensor and carbon dioxide sensor, and compares them with the parameters set by the main controller. According to the control strategy, the system outputs infrared remote control instructions to control the shutdown of the air conditioner and fan and directly control the opening of the window opener to achieve a comfortable air conditioning shutdown. The system can also realize the display and setting of the system parameters by the mobile phone through the WIFI module. The debugging and operation results show that when the outdoor temperature is lower than the air conditioning refrigeration temperature, the system can coordinate and control the turn-off of the air conditioner, fan and window opener, and realize the comfortable smooth transition air conditioning shutdown control, which has a good effect of energy saving and air exchange.
Keywords: STM32; air conditioning control; WIFI; Internet of things; human comfort
隨著空調的大力普及,現如今幾乎挨家挨戶的臥室都安裝有空調,中學、大學的學生宿舍也都安裝了空調,在酷熱的天氣給人們帶來整夜的涼爽。然而,空調在給人們消暑納涼改善睡眠環境的同時,卻也帶來了大量的電能消耗及長時間封閉臥室導致的空氣質量下降[1],尤其是學校里多人同寢的學生宿舍。部分地區或大部分地區的某些季節存在早晚溫差較大的問題,即環境溫度在白天的時候很高,在凌晨至清晨的時候又降到較低,然而人們在睡前溫度還沒有降下來,如果睡覺時打開空調,一般會打開一整晚,這就會存在后半夜氣溫下降時還開著空調的情況。所以針對以上存在的問題,本文設計了一款基于STM32芯片的臥室空調智能控制系統,在早晚溫差較大的時候或室內空氣質量較差時,能自動實現空調的關停過程或換氣,為臥室空調的節能減排應用及空氣質量改善提供低價可行的方案。……