


摘 ?要: 本設計是由STC89C51單片機控制,采用DS18B20溫度傳感器、人體紅外傳感器模塊和數碼管設計而成的智能溫控風扇系統。該系統通過脈沖寬度調制,實現了風扇系統在有人的情況下依據當前溫度區間自動啟停以及調節風扇轉速等功能。該設計具有功耗低,實用性強等特點。
關鍵詞: STC89C51;智能控制;溫度控制;人體感應
中圖分類號: TP368.1 ? ?文獻標識碼: A ? ?DOI:10.3969/j.issn.1003-6970.2019.12.032
本文著錄格式:梁娟. 基于單片機的智能溫控風扇系統[J]. 軟件,2019,40(12):146149
An Intelligent Temperature Control Fan System Based on the Microcontroller
LIANG Juan
(East fujian agriculture and forestry university college of computer science Fuzhou 350715)
【Abstract】: This designs an intelligent temperature control fan system which is controlled by STC89C51 single-chip microcomputer, DS18B20 temperature sensor, human infrared sensor module and digital tube. This system through pulse width modulation, the functions of automatic starting and stopping of fan system according to the set temperature range and adjusting speed are realized. The design has the characteristics of low power consumption and strong practicability.
【Key words】: STC89C51; Intelligent control; Temperature control; Human induction
0 ?引言
現代生活中,電子技術的發展日新月異,因各種電子設備在工作時都會產生熱量,從而影響到電子機械的生產以及人們的日常生活,所以單片機的溫度控制等功能就顯得尤其重要。目前,基于單片機控制的系統種類繁多,在單片機的使用過程中,為達到精準控制判斷的效果,需要對溫度實時采樣的測量功能進行不斷改善。
本文設計的溫控風扇系統,主要采用型號為STC89C51的單片機作為控制器。在溫度采集模塊,選用了型號為DS18B20的集成溫度傳感器,并使用LED八段數碼管顯示溫度和風扇的檔位。首先將溫度傳感器采集的環境溫度發送給單片機系統,其次采用人體紅外傳感器探測環境周圍是否有人活動,從而實現風扇電機的自動啟動或停止,并且風扇電機的速度可以根據單片機所確定的溫度區間而自動
改變風速[1]。該設計主要是根據環境溫度在不同的溫度區間時,單片機輸出不同的PWM脈寬的方式來控制風扇電機的轉速,從而實現了智能溫控風扇的設計,為現代社會人們的生活和生產帶來了更多便利,符合當代節能減排的社會要求[2]。……