【正文】
摘 要 電風(fēng)扇是夏天給人們降溫的非常好的家用電器 ,智能風(fēng)扇就是能根據(jù)溫度的改變,風(fēng)扇轉(zhuǎn)速隨之改變 ,現(xiàn)在的風(fēng)扇很難做到這一點(diǎn),只有人為的幾檔調(diào)速。夏 夜溫度下降后人們?nèi)菀滓蚴焖軟?, 當(dāng)溫度升高時(shí) , 它又不能根據(jù)溫度的變化改變轉(zhuǎn)速。 本設(shè)計(jì)智能風(fēng)扇采用單片機(jī) AT89C51 作為控制系統(tǒng)的核心 ,使用溫度傳感器 DS18B20 進(jìn)行當(dāng)前的溫度采集 , 利用 PWM 脈沖寬 23 度調(diào)制技術(shù)進(jìn)行實(shí)時(shí)調(diào)速 ,并通過 LED 數(shù)碼管顯示當(dāng)前溫度。 關(guān)鍵詞 : 單片機(jī);溫度傳感器;風(fēng)扇; PWM; Design of Smart Fan Based on Single Chip Microputer Abstract Fan is very good for people cooling appliances in the summer. Smart Fan is according to changes in temperature, and fan speed changes. Now the fan is difficult to do this, only a few artificial stall speed. The design of the fan control system uses AT89C51 microcontroller , the indoor temperature sensor DS18B20 temperature acquisition, use PWM pulse width modulation technology for realtime control, and displays the current temperature through the LED digital tube. Key Words: Microcontroller; Temperature Sensors; Fan; 第一章 緒 論 ................................................................................................................... 3 .................................................................................................................... 3 發(fā)展現(xiàn)狀與應(yīng)用領(lǐng)域 ......................................................................................... 3 本次設(shè)計(jì)的主要任務(wù)和內(nèi)容 ................................................................................ 3 第二章 方案論證 ............................................................................................................. 6 控制核心的選擇 .................................................................................................. 6 調(diào)速方式的選擇 .................................................................................................. 6 溫度傳感器的選擇 .............................................................................................. 7 顯示電路的選擇 .................................................................................................. 8 第三章 主要原件的介紹 ................................................................................................... 8 AT89C51簡(jiǎn)介 ...................................................................................................... 8 DS18B20簡(jiǎn)介 .................................................................................................... 10 ............................................................................................. 12 第四章 系統(tǒng)主要硬件電路設(shè)計(jì) ...................................................................................... 13 DS18B20的工作原理及其單片機(jī)的接口電路 ................................................... 14 風(fēng)扇 PWM調(diào)速原理及其單片機(jī)接口電路 ......................................................... 15 .......................................................................................... 16 數(shù)碼顯示電路 ................................................................................................... 17 .................................................................................................... 18 第五章 軟件設(shè)計(jì) ........................................................................................................... 19 程序設(shè)置 .......................................................................................................... 19 第六章 系統(tǒng)調(diào)試 ........................................................................................................... 20 軟件調(diào)試 .......................................................................................................... 21 按鍵顯示部分的調(diào)試 ............................................................................... 21 傳感器 DS18B20溫度采集部分調(diào)試 ......................................................... 22 電動(dòng)機(jī)調(diào)速電路部分調(diào)試 ........................................................................ 22 硬件調(diào)試 .......................................................................................................... 22 傳感器 DS18B20溫度采集部分調(diào)試 ......................................................... 22 電動(dòng)機(jī)調(diào)速電路部分調(diào)試 ......................................................................... 22 系統(tǒng)功能 .......................................................................................................... 23 系統(tǒng)實(shí)現(xiàn)的功能 ..................................................................................... 23 系統(tǒng)功能分析 .......................................................................................... 23 總 結(jié) ........................................................................................................................... 24 謝 辭 .................................................................................................................... 25 參考文獻(xiàn) ........................................................................................................................ 26 附錄 ..........................................................................