【正文】
度之間時(shí)打開(kāi)風(fēng)扇弱風(fēng)檔,當(dāng)溫度升高超過(guò)所設(shè)定的溫度時(shí)自動(dòng)切換到大風(fēng)檔,當(dāng)溫度小于所設(shè)定的溫度時(shí)自動(dòng)關(guān)閉風(fēng)扇,控制狀態(tài)隨外界溫度而定。s fan, now widely used on laptops smart CPU fan, etc. Design based on single chip microputer temperature control fan system, this paper USES the single chip microputer as controller design for a temperature control fan system, have sensitive temperature sensor and display function, system AT89C52 single chip microputer as control platform to control the fan speed. High and low temperature can be set by the user, the measured temperature value between high and low temperature when open the fan weak wind, when the temperature exceeds the set temperature automatically switch to the wind, when the temperature is less than the set temperature automatically shut down the fan, control state varies with temperature. Set high and low temperature values stored in internal temperature 2 sensor DS18B20 E2ROM, still can keep the power lost when the last value, stable performance and control accuracy. Key words: single chip, DS18B20, the temperature control, fan, AT89C52 single chip 目錄 前言 ....................................................................... 3 第一章 溫控電風(fēng)扇的簡(jiǎn)介與基本系統(tǒng) .......................................... 4 .................................................... 4 ................................................ 5 第二章 溫控電風(fēng)扇的方案論證 ................................................ 6 .................................................... 6 ...................................................... 7 .................................................. 7 ...................................................... 7 3 第三章 溫控電風(fēng)扇的硬件設(shè)計(jì) ................................................ 8 .................................................... 8 DS18B20 單線數(shù)字溫度傳感器簡(jiǎn)介 ................................ 8 AT89C52 單片機(jī)簡(jiǎn)介 ............................................ 9 八段 LED 數(shù)碼管 .............................................. 11 ..................................................... 11 電源電路 ..................................................... 11 數(shù)碼管顯示電路 ............................................... 12 聲響、溫度采集、溫度設(shè)定以及復(fù)位電路 ......................... 12 溫控自動(dòng)電路 ................................................. 13 ................................................. 14 第四章 溫控電風(fēng)扇的軟件設(shè)計(jì) ............................................... 16 ......................................... 16 ......................................... 17 程序設(shè)計(jì)原理 ................................................. 17 主要程序 ..................................................... 18 第五章 系統(tǒng)調(diào)試 ........................................................... 19 軟件調(diào)試 .......................................................... 19 按鈕 顯示部分 的調(diào)試 ........................................... 19 DS18B20溫度采集部分調(diào)試 ................................ 16 電動(dòng)機(jī)調(diào)速電路部分調(diào)試 ....................................... 20 硬件調(diào)試 .......................................................... 16 按鈕 顯示部分的調(diào)試 ........................................... 20 傳感器 DS18B20溫度采集部分調(diào)試 ............................... 20 電動(dòng)機(jī)調(diào)速電路部分調(diào)試 ....................................... 21 系統(tǒng) 性能 .......................................................... 21 系統(tǒng)實(shí)現(xiàn)的 性能 ............................................... 21 系統(tǒng) 性能 分析 ................................................. 21 結(jié)論 ...................................................................... 18 參考文獻(xiàn) .................................................................. 19 4 致謝 ...................................................................... 20 附錄 1..................................................................... 21 附錄 2.....................................