【正文】
出去,所要發(fā)射的句柄必須加上載波才能使信號(hào)的傳送距離加長,一般的遙控器有效距離為 7 米。電源部分乃直接取自交流電 220V,且在成本上的考量與縮小體積上的考慮,使用電容降壓式的設(shè)計(jì),所提供的 DC5V 給微控制器及 DC24V 給繼電器,圖 為整體系統(tǒng)架構(gòu)圖。 2 / 34 研究動(dòng)機(jī) 在現(xiàn)代化家庭中,遙控開關(guān)應(yīng)用在各類電器產(chǎn)品中,已相當(dāng)?shù)钠毡?,舉凡電視機(jī)冷氣機(jī)、音響 、數(shù)位影音光盤機(jī)等等 ,幾乎是一般家庭的基本配備,且都具備有遙控的功能,這些伴隨而來的遙控器 ,除了控制指定的電器產(chǎn)品外,似乎也只能擺在角落一方 ,聽候主人作單調(diào)的操弄。紅外線 LED 之逆向電壓最大值為 3~6V,使用時(shí)需多加注意。關(guān)鍵詞: 紅外線;單片機(jī);89C51;繼電器;遙控器I / 34Abstract Most of the household appliances in the market are equipped with infrared remote control. People accustom to turn on and off appliances with this device. People have their living rooms littered with remote controls. However, each remote control can only manipulate a single appliance that they are designated for. We have designed a special infrared receiver in this research which can receive the control codes in order to turn on and off a control relay. In this system that we designed, analyse signals emit from infrared remote and decode by SCM. The controller also provides two AC overload sockets with 1500W output control. In order for user to easily learn how to manipulate this system, we separated this system into two parts: a power supply module and a microputer controlling receiver module. An wire links both modules together. After an infrared receiver detects an ining signal, through 89C51, we can manipulate the current flows to either one of the sockets. Key words: infrared ,SCM ,89C51 ,relay ,remoteII / 34目 錄第一章 緒論 ...................................................1 背景簡介 .................................................1 紅外線遙控器動(dòng)作原理 .....................................2 研究動(dòng)機(jī) .................................................3第二章 系統(tǒng)架構(gòu)與硬件 .........................................4 整體系統(tǒng)構(gòu)架 .............................................4 電源供應(yīng)模組 .............................................5 89C51 解碼控制模組 ........................................6 紅外線收發(fā)接收模組 .......................................8 紅外線發(fā)射模組 .......................................8 紅外線接收模組 .......................................9 遙控格式與編碼方式 .......................................10 紅外線遙控器編碼信號(hào)測量 ................................11 波形圖 ...............................................12 啟始位元 ........................................12 短碼位元 .........................................13 長碼位元 .........................................14 PT2221 電源鍵波形量測信號(hào)說明 ........................15第三章 系統(tǒng)軟件架構(gòu) ..........................................17