【正文】
在軟件的編程過程中,要一步就實現(xiàn)整個系統(tǒng)的功能是有困難的,只有逐步實現(xiàn)各個功能,然后進行組合,才能方便實現(xiàn)整個功能。多數(shù)光電管選用的是波長接近可見光的紅外線光波型。其工作指令如下程序: sfr WDTRST = 0xA6 _nop_()。定時器中斷有輸出時,打開內(nèi)部計數(shù)器來記錄紅外被遮擋的時間。共用 4個函數(shù)來完成。主程序的流程圖如圖 42所示。當遙控器的 B 鍵按下,則有正常工作狀態(tài)轉(zhuǎn)入待機工作狀態(tài)。為了降低對端口的使用量,這里使用動態(tài)顯示的方式。發(fā)光二極管的驅(qū)動電流為幾十毫安,本電路發(fā)光二極管的動態(tài)電流為: I=5V/500=10mA,大小適合發(fā)光二極管的驅(qū)動。 (1)溫度傳感器: 40 攝氏度以上為達到報警條件,以下為未達到報警條件; (2)紅外傳感器:紅外被遮擋 5 秒以上為達到報警條件,以下為未達到報警條件。當中間過程出現(xiàn)死機或者死循環(huán)時,可用按鈕進行復位。振蕩頻率主要由石英晶振的頻率決定,一般在 ~ 16MHz 之間,典型值為 12 MHz 和 MHz,在本設(shè)計中選用石英晶振的頻率為 12 MHz。每一個引腳可以推動 4 個 LSTL 負載。訪 問外部程序存儲器選通信號,低電平有效。當訪問外部存儲器時, ALE 信號負跳變來觸發(fā)外部的 8 位鎖存器 (如 74LS373),將端口 P0 的地址總線 (A0~A7)鎖存進入鎖存器中。 XTAL1: 接外部晶振的一個引腳。 ⑦電源關(guān)閉標識。如應用系統(tǒng)比較復雜,運算功能較強,處理粘度高,運算速度快,則采用 16 位單片微機。數(shù)據(jù)碼在無線報警網(wǎng)中主要的作用是區(qū)別不同的無線探頭,最多可以區(qū)分 16 個,有些主機出于成本和實用性的考慮,只用了其中的 8 個,表示 8 路報警通道。 PT2262 發(fā)射模塊的原理圖如 圖 33所示。對射型和反射板型光電傳感器是在光線遮住的時候,輸出接通 。 ( 3)術(shù)語 a、距離滯后:指的是測量板接近或者移去時開關(guān)偏移的距離。它的檢測距離可達幾米乃至幾十米。此外,光電傳感器的結(jié)構(gòu)元件中還有發(fā)射板和光導纖維。多數(shù)光電管選用的是波長接近可見光的紅外線光波型。 D、在 DS18B20 測溫程序設(shè)計中,向 DS18B20 發(fā)出溫度轉(zhuǎn)換命令后,程序總要等待DS18B20 的返回信號,一旦某個 DS18B20 接觸不好或斷線,當程序讀該 DS18B20 時,將沒 10 有 返回信號,程序進入死循環(huán)。 圖 32 DS18B20 的引腳排列圖 B、在 DS18B20 的有關(guān)資料中均未提及單總線上所掛 DS18B20 數(shù)量問題,容易使 人誤認為可以掛任意多個 DS18B20,在實際應用中并非如此。本次設(shè)計選用 9 位的 DS18B20,溫度值本應為 9位(其中,符號位占一位),但因符號位又被擴展成高 8位,故實際以 16 位補碼的形式讀出。以上特點使 DS18B20 非常適用于遠距離多點溫度檢測系統(tǒng)。物體不限于金屬,所有能反射光線的物體均可被檢測。靜態(tài)顯示就是數(shù)碼管的 8段輸入及其公共端電平 一直有效。有兩種類型,一種是共陽型,一種是共陰型。 1 2 3 4 5 6ABCD654321DCBAT i t l eN um be r R e v i s i onS i z eBD a t e : 13 N ov 20xx S he e t o f F i l e : F : \ B us i ne s s \產(chǎn)品 \報警器 1\ M yD e s i D r a w n B y:A BC DABCD溫 度紅 外報 警 電 路遙 控接 收 器遙 控 器S T C 89C 52控 制 電 路指 示 電 路顯 示 電 路 圖 21 報警器原理框圖 每個模塊簡單介紹 遙控器 遙控器是一種用來遠控機械的裝置。通過遙控器來完成報警器的打開與關(guān)閉,當遙控器處于打開狀態(tài)時再來判斷溫度值和紅外值。為了使報警器的功能更加 全面,現(xiàn)如今的報警器增加了區(qū)域管理、語音提醒、生物 2 識別技術(shù)、報警自動發(fā)彩信圖片、遠程控制等技術(shù)。 溫度是日常生活中所經(jīng)常遇到的一個變量,能測量溫度值的傳感器有很多種,對溫度的測量也是很多報警器必備的功能之一。對于不同場合的或者是不同信號的感知可以完成特定的報警工作。報警器開啟之后,同時監(jiān)測紅外信號和溫度信號,兩個信號中有一個達 到閾值則開始報警。特別是火災報警設(shè)備中,溫度信號是必不可少的一個值。本文通過對幾種報警器的功能以及實際情況分析,設(shè)計了一種安全、實用、方便控制的報警器。 本文首先闡述了報警器的研究狀況和發(fā)展現(xiàn)狀,以及不同類型報警器的優(yōu)點和當前的普及程度。對于具體的實 物或是環(huán)境,溫度往往是一個最直觀的數(shù)據(jù),通過對溫度值的監(jiān)測可以對現(xiàn)場情況做趨勢的研判,對后續(xù)的操作提供一定的依據(jù)。 關(guān)鍵字: 報警器;遙控;紅外;溫度 Remote Control Digital Display System Based on Single Chip Microputer ABSTRACT In recent years, alarm detects more and more signal types and requires more intelligence in order to meet the convenience of human life needs. Alarm can sense infrared signal, ultrasonic signal, gravity signal, vibration signal and remote control signals. This paper designs a safe, practical and convenient burglar alarm on the analysis of several mon alarm functions and the actual situation. This paper describes the research and development of the alarm, the advantages and the disadvantages of several different alarms and theirs popularity. The paper also analyzes the detection principles and the physical mechanisms of the popular alarms. And this paper chooses remote control signal, infrared signal and temperature signal as the detection signals. Infrared technology is a very mature technology and human eyes can not see infrared light. It can be used under different weather conditions with good concealment, and strong antiinterference ability. This kind of antitheft alarm system is widely used in homes, offices and other occasions. This design uses infrared signal as a detection signal. Temperature signal is most monly used in daily life and used in most warning systems. Particularly, temperature signal is an essential signal in the fire alarm device. Temperature signal is one of the most intuitive parameters in the specific environment. It can be monitored to judge the spot situation in order to provide the basis for subsequent operations. Remote control technology is highly attention with the development of the intelligent alarm. Remote control technology can control and monitor remote object. Remote control technology can not only control remote alarm equipment, but also monitor the basic situation of the terminal. It is used in alarm system because of the maturity of such technology. This antitheft alarm system selects the remote control signal, the infrared signal and the temperature signal as monitoring signals. Remote control signal is used to remotely control the alarm on and off. The infrared signal and the temperature signal were monitored at the same time after the opening of the alarm. The alarm was triggered when any of these signal reach its threshold. Keywords: alarm; remote control; infrared; temperature I 目 錄 第 1 章 緒 論 .............................................................. II 課題背景及研究意義 ................................................. 1 遙控數(shù)顯控制系統(tǒng)的發(fā)展概況 ......................................... 1 本課題研究的主要內(nèi)容 ............................................... 2 第 2 章 遙控數(shù)顯控制系統(tǒng)的總結(jié) ............................................... 3 原理介紹 ........................................................... 3 每個模塊簡單介紹 .................................................... 3 遙控器 ......................................................... 3 遙控接收器 ..................................................... 4 顯示電路 ....................................................... 4 溫度傳感器 ..................................................... 4 第 3 章 遙控數(shù)顯控制系統(tǒng)硬件設(shè)計 ............................................. 6 總硬件原理圖 ......................................................... 6 傳感器的選型和特點 ................................................. 6 溫度傳感器的特點 ............................................... 7 紅外對管傳感器的特點 ..