【正文】
使用的話,就 必須更換那些調(diào)節(jié)機(jī)構(gòu)。 Keys 本科畢業(yè)設(shè)計(jì) 目 錄 1 智能風(fēng)扇總體設(shè)計(jì) .................................................. 1 引 言 .......................................................... 1 智能風(fēng)扇總體介紹 ............................................... 1 本章小結(jié) ....................................................... 2 2 驅(qū)動(dòng)與電路設(shè)計(jì) .................................................... 3 單片機(jī)簡要介紹 ................................................. 3 單片機(jī)內(nèi)部電路簡要介紹 ......................................... 4 P0 口內(nèi)部電路 .............................................. 4 P1 口內(nèi)部電路 .............................................. 6 P2 口內(nèi)部電路 .............................................. 6 P3 口內(nèi)部電路 .............................................. 7 時(shí)鐘電路與復(fù)位電路 ............................................. 8 顯示模塊電路設(shè)計(jì) ............................................... 9 電機(jī)驅(qū)動(dòng)模塊設(shè)計(jì) .............................................. 10 模擬調(diào)速電機(jī)設(shè)計(jì) .......................................... 10 模擬搖頭電機(jī)設(shè)計(jì) .......................................... 11 時(shí)間報(bào)警設(shè)計(jì) .................................................. 12 按鍵模塊 ...................................................... 12 本章小結(jié) ...................................................... 13 3 智能風(fēng)扇軟件設(shè)計(jì) ................................................. 14 軟件設(shè)計(jì)思路 ................................................. 14 程序前序 .................................................. 14 主程序流程圖 .............................................. 14 延時(shí)子程序 ................................................ 15 顯示子程序 ................................................ 15 按鍵子程序 ................................................ 17 PWM 子程序 ................................................ 19 定時(shí)器子程序 .............................................. 20 搖頭子程序 ................................................ 21 控制程序模塊 ................................................... 21 程序前序 .................................................. 22 主程序 .................................................... 22 延時(shí)程序 .................................................. 24 顯示程序 .................................................. 24 按鍵程序 .................................................. 27 PWM 子程序 ................................................ 28 定時(shí)子程序 ................................................ 31 搖頭程序 .................................................. 32 軟件調(diào)試 ...................................................... 33 本章小結(jié) ...................................................... 33 4 測試軟硬件性能 ................................................... 34 工作電源 ...................................................... 34 兩種狀態(tài)切換 .................................................. 34 PWM 脈寬設(shè)定 .................................................. 34 功能測試 ...................................................... 34 本章小結(jié) ...................................................... 35 5 設(shè)計(jì)總結(jié) ......................................................... 36 設(shè)計(jì)亮點(diǎn) ...................................................... 36 設(shè)計(jì)可改進(jìn)的方面 .............................................. 36 參考文獻(xiàn) ............................................................ 37 附錄 ................................................................ 38 致 謝 ............................................................... 48 大學(xué)畢業(yè)設(shè)計(jì) 1 智能風(fēng)扇總體設(shè)計(jì) 1 1 智能風(fēng)扇總體設(shè)計(jì) 引 言 隨著科技的發(fā)展與技術(shù)的進(jìn)步,今天我們的周圍多了許 多的智能控制用品,它們不僅功能強(qiáng)大、體積小、工作穩(wěn)定、精度高、操作簡單,價(jià)格低廉,更重要的是它們采用的新工藝、新材料,功耗更低,符合時(shí)代節(jié)約能源的理念。Smart。 two key functions are: key to achieve a speed choice。 and based on infrared technology to achieve control of the fan, which is mainly reflected in the more remote the remote control。 ambient temperature to control the fan speed, realtime automatic adjustment of wind speed, and can display the ambient temperature。 關(guān)鍵詞 : 單片機(jī)、智能、 PWM、按鍵。采用 4位數(shù)碼管來顯示剩余的工作時(shí)間;兩個(gè)按鍵功能是:按鍵 1實(shí)現(xiàn)風(fēng)速的選擇;按鍵 2實(shí)現(xiàn)工作時(shí)間的設(shè)定。 從目前應(yīng)用來看,以后 智能控制技術(shù) 將有更大的發(fā)展前景。 風(fēng)扇的智能控制技術(shù)主要體現(xiàn)在這幾方面 :利用按鍵來實(shí)現(xiàn)風(fēng)扇工作時(shí)間及風(fēng)速的控制 ;周圍溫度來控制風(fēng)扇的風(fēng)速,實(shí)現(xiàn)實(shí)時(shí)自動(dòng)調(diào)節(jié)風(fēng)速,且可顯示周圍的溫度;語音控制風(fēng)扇的工作與否,這樣可以節(jié)約能源;以及基于紅外技術(shù)來實(shí)現(xiàn)對(duì)風(fēng)扇的控制,它主要體現(xiàn)在較遠(yuǎn)距離的遙控控制;等等。摘 要 智能風(fēng)扇控制技術(shù),是目前在家電應(yīng)用方面比較前沿的技術(shù)。 電風(fēng)扇是一種比較普及的家電,它與 智能控制器 技術(shù)相結(jié)合,實(shí)現(xiàn)了 智能 控制,這 類 功能 優(yōu)化更新 對(duì)于 智能控制技術(shù)發(fā)展 特別有意義, 為我們的日常生活提供了更多 方便。新型傳感器的應(yīng)用來實(shí)現(xiàn)對(duì)風(fēng)扇的控 制有著重大作用。 此設(shè)計(jì)是以 AT98S52 單片機(jī)為控制器,以兩個(gè)按鍵為控制鍵(不包括復(fù)位鍵),來實(shí)現(xiàn)風(fēng)速和工作時(shí)間的調(diào)節(jié)。分別用兩個(gè)電機(jī)來分別模擬電風(fēng)扇電機(jī)和模擬風(fēng)扇搖頭機(jī)構(gòu)。 本科畢業(yè)設(shè)計(jì) Abstract Intelligent fan control technology is more cuttingedge applications in appliance technology. Electric fan is a relatively popular home appliances, which bined with the intelligent controller technology to realize intelligent control, optimization of these features updated intelligent control technology for the development of special meaning for our daily lives provides more convenience. Intelligent fan control technology is mainly reflected in these aspects: the use of buttons to achieve the working time and the fan speed control。 voice control the work of the fan or not, this can save energy。 and so on. The application of new sensors to achieve the control of the fan has a significant role. Applications from the current point of view, the future intelligent control technology will have greater prospects for development. This design is based on AT98S52 microcontroller as the controller, with two buttons to control the key (not including the reset button), to achieve the regulation of wind speed and working hours. 4bit digital tube used to display the remaining hours of work。 buttons to achieve two hours of work settings. Two motors were used to simulate electric fan motor respectively, and analog fans shaking their heads institutions. Key words: Microcontroller。PWM。 鑒于當(dāng)前生產(chǎn)、生活中的很多設(shè)備逐漸小型化、迷你化、集成化,而且產(chǎn)品的工