【正文】
本科畢業(yè) 設(shè)計(jì) ( 2021屆) 題 目 基于 MCS51 系列 單片機(jī)的紅外遙控 電路設(shè)計(jì) 學(xué) 院 電子信息學(xué)院 專(zhuān) 業(yè) 班 級(jí) 學(xué) 號(hào) 學(xué)生姓名 指導(dǎo)教師 完成日期 杭州電子科技大學(xué)本科畢業(yè)設(shè)計(jì) 摘 要 由于單片機(jī)具有集成度高、體積小、可靠性高、價(jià)格便宜等優(yōu)點(diǎn),其在機(jī)電一體化、工業(yè)控制、儀器儀表和家用電器等領(lǐng)域得到了廣泛應(yīng)用。 當(dāng)前單片機(jī)對(duì)家用電器控制呈現(xiàn)出 外形 簡(jiǎn)單化、 功能 多樣化、 產(chǎn)品 智能化 的發(fā)展趨向。紅外遙控技術(shù) 具有 使用方便、功耗低、抗干擾能力強(qiáng) 、價(jià)格便宜 的特點(diǎn), 因此它 的應(yīng)用前景 十分廣闊 。 本課題以延伸紅外無(wú)線(xiàn)遙控技術(shù)為目的,提出了一種紅外遙控器集中控制的方案,核心是設(shè)計(jì)出一個(gè)紅外多路遙控發(fā)射 /接收系統(tǒng)。本設(shè)計(jì)以紅外線(xiàn)作為傳遞信息的載體,可對(duì) 4 個(gè)受控對(duì)象的工作狀態(tài)進(jìn)行短距離無(wú)線(xiàn)控制,適用于 遙控 工業(yè)、醫(yī)療、家用電器等設(shè)備的 開(kāi)閉狀態(tài) 。并含有設(shè)備計(jì)數(shù)模塊,可對(duì)處于工作狀態(tài)的設(shè)備進(jìn)行計(jì)數(shù),并顯示出來(lái)。 課題的重點(diǎn)在于通過(guò)軟件實(shí)現(xiàn)二進(jìn)制數(shù)據(jù)的編碼 與解碼工作,然后通過(guò)紅外收發(fā)頭進(jìn)行數(shù)據(jù)傳輸。 關(guān)鍵詞: 單片機(jī) 紅外遙控 多路 LED 光耦隔離 鍵盤(pán)控制 杭州電子科技大學(xué)本科畢業(yè)設(shè)計(jì) ABSTRACT As high integration,small size, high reliability and low price of the single chip .It has been widely applied on electrical integration, industrial control, instrumentation and household appliances. SCM(Single Chip Micyoco) control of household appliances develops towards simplified form, functional diversification, and intelligent currently. Infrared remote control technology has characteristics of easy to use, low power consumption, antiinterference ability and cheap, so its prospects are bright. The topics to extend the infrared wireless remote control technology for the purpose, a centralized control infrared remote control program, the core is to design a wireless infrared remote control multiple transmit / receive system. The design of an infrared transmission of information as a carrier of controlled object can work 8 state shortrange wireless control for industrial, medical, home appliances and other equipment on or off remotely. It contains counting module equipment, and can count the equipment in working condition , and displays. The focus of the task is achieving work of Binary data encoding and decoding by software, and then we had data transmitted with infrared transceiver. Key words: Single Chip Micyoco; Infrared Remote Control; Multipath; LED Optocoupler isolation; Keyboard control 杭州電子科技大學(xué)本科畢業(yè)設(shè)計(jì) 目 錄 1 引言 ............................................................................................................................. 1 2 概述 ............................................................................................................................. 2 基于單片機(jī)的紅外遙控系統(tǒng)概述 ................................................................... 2 本設(shè)計(jì)方案思路 ............................................................................................... 3 研發(fā)方向和技術(shù)關(guān)鍵 ....................................................................................... 3 主要技術(shù)指標(biāo) ................................................................................................... 3 3 總體設(shè)計(jì) ..................................................................................................................... 4 紅外遙控發(fā)射部分 ........................................................................................... 4 紅外遙控接收部分 ........................................................................................... 5 紅外編碼標(biāo)準(zhǔn) ................................................................................................... 5 4 硬件設(shè)計(jì) ..................................................................................................................... 9 主控芯片 AT89S51 ........................................................................................... 9 紅外遙控發(fā)射電路 ......................................................................................... 13 紅外遙控接收電路 ......................................................................................... 14 電源電路 ......................................................................................................... 18 5 軟件設(shè)計(jì) ................................................................................................................... 20 總體方案 ......................................................................................................... 20 編碼發(fā)射程序設(shè)計(jì) ......................................................................................... 20 6 仿真與制作 ............................................................................................................... 26 系統(tǒng)仿真 ......................................................................................................... 26 硬件電路制作與軟件下載 ............................................................................. 27 功能測(cè)試 ........................................................................................................... 28 7 結(jié)論 ........................................................................................................................... 29 致謝 ................................................................................................................................. 30 參考文獻(xiàn) ......................................................................................................................... 31 附錄 1 ........................................................................................................................... 32 附錄 2 ........................................................................................................................... 33 附錄 3 ........................................................................................................................... 34 附錄 4 ........................................................................................................................... 38 杭州電子科技大學(xué)本科畢業(yè)設(shè)計(jì) 1 1 引言 近年來(lái)隨著計(jì)算機(jī)在社會(huì) 各 領(lǐng)域的滲透 , 單片機(jī)的應(yīng)用正在不斷地走向深入,同時(shí) 也 帶動(dòng)傳統(tǒng) 的 控制 、 檢測(cè) 等 工作 日 益更新。傳統(tǒng)的遙控器大多采用 無(wú)線(xiàn)電遙控技 術(shù), 隨著科技的進(jìn)步,紅外線(xiàn)遙控技術(shù)的 進(jìn)一步 成熟,紅外 遙控 也 逐步 成為了一種被廣泛應(yīng) 用的通信和遙控手段。為了方便實(shí)用,傳統(tǒng)的家庭電器逐漸采用紅外線(xiàn)遙控。工業(yè)設(shè)備中,在高壓、輻射、有毒氣體、粉塵等 有害 環(huán)境下,采用紅外線(xiàn)遙控不僅完全可靠而且能有效地隔離電氣干擾。 紅外遙控的特點(diǎn)是不影響周邊環(huán)境、不干擾其它電器設(shè)備。由于其無(wú)法穿透墻壁,故不同房間的家用電器可 使用通用的遙控器而不會(huì)產(chǎn)生相互干擾;電路調(diào)試簡(jiǎn)單,只要按給定電路連接無(wú)誤,一般不需任何調(diào)試即可投入工作;編解碼容易,可進(jìn)行多路遙控。 紅外遙控雖然被廣泛應(yīng)用,但各產(chǎn)商的遙控器不能相互兼容。當(dāng)今市場(chǎng)