【正文】
I 摘 要 目前,電風(fēng)扇的使用十分廣泛,面對龐大的市場需求,我們需要提高電風(fēng)扇的市場競爭力,使之不僅功能多樣、安全可靠,而且操作簡便;而單片機因其高可靠性和高性價比,在智能化家用電器、儀器儀表等諸多領(lǐng)域得到了極為廣泛的應(yīng)用。因此,基于單片機技術(shù)設(shè)計一款電風(fēng)扇遙控開關(guān)是大有必要的,不僅方便而且智能化。 本設(shè)計是基于 STC89C52 單片機控制的智能電風(fēng)扇遙控開關(guān),巧妙地利用紅外線遙控技術(shù)、單片機控制技術(shù)、液晶顯示電路, 具有一定的 遙控距離 、4 級調(diào)速 、停止、定時等功能,同時 LCD12864 液晶顯示遙控開關(guān)狀態(tài)、 LED 顯示接收端即電風(fēng)扇狀態(tài)。 關(guān)鍵詞: STC89C52; LCD12864;遙控開關(guān) ; 電風(fēng)扇 I Abstract Currently, the use of electric fans is very extensive. In the face of the huge market demand, we need to improve the market petitiveness of the fans, so that they are not only versatile、 safe、 reliable, but also easy to operate。 yet the microcontroller because of its high reliability and costeffective, has been very widely used in intelligent household appliances、 instruments and many other areas. Therefore, we design a remote fan switch based on MCU technology is very necessary, it’s not only convenient but also intelligent. The design of smart fan remote control switch based on the STC89C52 microcontrollercontrolled, clever uses of infrared remote control technology、 MCU control technology、 liquid crystal display circuit, has a certain distance of the remote control、 4 speed、 stop、 timing etc. At the same time, the LCD12864 displays the status of the remote control switch, and the LED displays the receiving end that the status of the fan. Keywords: STC89C52。 LCD12864。 remote control switch。 fans II 目 錄 摘 要 ...........................................................................................................................I Abstract ..........................................................................................................................I 第 1 章 概述 .............................................................................................................. 1 電風(fēng)扇遙控開關(guān)背景及意義 ........................................................................ 1 電風(fēng)扇遙控開關(guān)國內(nèi)外現(xiàn)狀 ........................................................................ 2 本文研究的主要內(nèi)容 .................................................................................... 2 第 2 章 系統(tǒng)體系結(jié)構(gòu) .............................................................................................. 1 設(shè)計方案 ........................................................................................................ 1 系統(tǒng)整體框圖設(shè)計 ........................................................................................ 1 第 3 章 系統(tǒng)硬件設(shè)計 .............................................................................................. 1 最小系統(tǒng)模塊 ................................................................................................ 1 按鍵模塊 ........................................................................................................ 2 紅外遙控發(fā)射模塊 ........................................................................................ 3 LCD12864 液晶顯示模塊 ............................................................................. 4 紅外遙控接收模塊 ........................................................................................ 5 定時模塊 ........................................................................................................ 6 指示燈模塊 .................................................................................................... 7 直流電機模塊 ................................................................................................ 8 電源模塊 ........................................................................................................ 9 第 4 章 系統(tǒng)軟件設(shè)計 .............................................................................................. 1 紅外發(fā)射及接收的工作原理 ........................................................................ 1 紅外發(fā)射工作原理 ...................................................................... 1 紅外接收工作原理 ...................................................................... 2 紅外發(fā)射及接收程序流程圖 ........................................................................ 2 紅外發(fā)射程序流程圖 .................................................................. 2 紅外接收程序流程圖 .................................................................. 3 第 5 章 系統(tǒng)調(diào)試 ...................................................................................................... 1 系統(tǒng)調(diào)試結(jié)果 ................................................................................................ 1 調(diào)試過程總體分析 ........................................................................................ 4 第 6 章 總結(jié)與展望 .................................................................................................. 1 參考文獻 ........................................................................................................................ 1 附 錄 ............................................................................................................................ 1 致 謝 ............................................................................................................................ 9 1 第 1章 概述 電風(fēng)扇遙控開關(guān)背景及意義 作為一種老牌的電器,電風(fēng)扇具有價格便宜、擺放方便、使用靈活等特點。雖然現(xiàn)在空調(diào)在城市中已經(jīng)相當(dāng)普遍,并有替代電風(fēng)扇的趨勢,但由于使用空調(diào)時空氣不暢通,容易得空調(diào)病,而且價格相對較高; 冷風(fēng)機能增加空氣濕度,但使用久了,家里電器會受潮,同時也會使關(guān)節(jié)受到傷害;蒲扇和紙扇價格低廉,但不是自動的;而電風(fēng)扇不但價格低廉,而且是自動的,吹出的又是舒 適的自然風(fēng),目前使用極為廣泛,作為成熟的家電行業(yè)的一員,尤其在中小城市以及鄉(xiāng)村仍占有市場的大部分份額。 市場的需求促使了電風(fēng)扇的發(fā)展,隨著“智能化”的興起,人們生活水平的提高,對物質(zhì)有了進一步的要求,特別是電子產(chǎn)品,人們對其有了新的要求,希望他們有著節(jié)能、方便以及智能等特點。而先前的產(chǎn)品還存在一些問題,比如電風(fēng)扇開關(guān)無法移動,不能隨時隨地對其進行控制,這給人們帶來諸多不便,已經(jīng)不能再滿足人們的需求,那么就要迫切要求新功能的問世。因此,電風(fēng)扇開關(guān)的智能化必須得以解決,設(shè)計一款電風(fēng)扇遙控開關(guān)添加了一些人性化設(shè)計 ,將大大提高電風(fēng)扇的市場競爭力。 電風(fēng)扇