




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上畢業(yè)設(shè)計(論文)外文資料翻譯 學(xué)生姓名: 朱德濤 學(xué) 號: 所在學(xué)院: 電子與信息工程學(xué)院 專 業(yè): 電子信息工程 指導(dǎo)教師: 毛錢萍 2014年 03 月 15 日Proceedings of 2009 4th International Conference on Computer Science & EducationThe Design of Electronic Locks Based on Infrared Remote-Control with MCUZhangCheng Xue ShunXiang WuDepartment of Automat
2、ion Department of AutomationXiamen University Xiamen UniversityXiamen, China Xiamen, China xuezhangcheng Abstract-At present, key-pad electronic lock with alarmingfuntion is to gradually replace the traditional mechanicallocks,overcoming the shortcomings of the traditional mechanicallocks which cont
3、ain few password and lack of reliabiIty, but keypadelectronic lock makes a great progress in terms of technologyand performance.This paper represents a type of remote-controlledelectronic lock developed with the chip of AT89S51.This type of lock have two input devices,one of them is a 4*3matrix keyb
4、oard mounted on the lock,the other one is a remotecontroller which also have 4*3 matix keyboard.we can use eitherof them to open the lock or change the password we have set. Inthe design,we adopt the infrared ray as the medium,because ofthe strong anti-interference ability, reliable transmission ofi
5、nformation. Index Terms-MCU Electronic locks Infrared Remote-control LCD1602 I. INTRODUCTION The design is based on single chip,makes use of 4 * 3keyboard and infrared remote controller as input,LCD1602could display the information of the steps when you areoperating.This designment could also realiz
6、e modifying thepassword and alarming. When a requirement to reset thepassword,it is necessary to make sure the password iscorrect,otherwise it will make noise to warn you the passwordis wrong.In this designment,1 limit the length of the passwordat six,Just like the ATM of bank.you must enter right p
7、asswordif you want to get through.II. THE FRAMEWORK OF THE DESIGNMENT The designment consists of six modules: the maincontroller module, LCD1602 module, 4*3 keyboard module,infrared remote control module, the alarm module, theunlocking simulation module. Main Controller Module: a low-power, high-per
8、formanceCMOS 8-bit single chip, the device used ATMEL's highdensity,non-volatile memory technology, compatible withstandard command system of MCS-51.An 8-bit commoncentral processing unit and ISP Flash memory cell areintegrated in this chip. LCD modules: LCD1602 is a character liquid crystaldisp
9、lay modules, is a type of dot-matrix LCD dedicating todisplay letters, numbers, symbols and so on.Consideringeconomy and practice in this regard,adopting LCDl602 isenough to meet the requirements of character displaying on the LCD. 4*3 keyboard module: Because of I/O port of MCU islimited, according
10、 to matrix keyboard to realize circuit.In thisway,we can design enough buttons on the keyboard but nottake up too many ports of the MCU. Infrared remote control module: the design used a universalTV remote controller as input device,the device can provide awide range of infrared encoding format, so
11、we make use of thecoding format of the pulse width modulation. Alarm modules: In this design, select the buzzer to sound awarning. The single-chip through the port P3.2 outputs a squarewave pulse-driven audio loudspeakers. Unlocking instructions: In this design,1 choose to use LEDlights to simulate
12、the situation of the lock.when we enterpassword,LED lights will flash on behalf of the unlocking issuccessful. Unlocking simulation Alarm circuit AT89S51 Single chipLCD 1602Infrared remote control module4*3 keyboard Figure 1.The framework of the designment A. The design of Matrix keyboard Matrix key
13、board working principle: vertical lines throughthe resistance connected +5V power.when no keys are presseddown,the vertical lines is in high level situation,otherwise ,thesituation is the same with the horizontal line's which is crossedon the button.Originally ,the horizonal lines are in low-lev
14、el,when we check the varying situation of the vertical Iines,thatmeans button is pressed down,at this time we save the situationof port p2.4-p2.6,then we program to make the port p2.0-p2.3in high level situation line by line,at the meantime checking thevarying of the situation of the port p2.4-p2.6,
15、when itchanges,we save the situation of the port p2.0-p2.3.In thisway,we have known which button had been pressdown,because we have recorded situation of the portp2.0p2.6.Different keys have different coding format, thekeyboard processing tasks are:Firstly, to determine whether ornot press the butto
16、n,then check which button havepressed,through the programming,get the formation of keycoding.All of the key code shown in the following table: TABLE 1. THE VALUE OF KEY CODING EE DE BE ED DD BD EB DB BB E7 D7 B7 Figure 2. The 4 3 keyboard circuitB. The design of infrared remote control1) The introdu
17、ction of the LC7461 At present,there are lots of chips dedicating to transmit theinfrared ray, in terms of the encoding format that can bedivided into two major categories: PWM and PPM. Here wehave adopted a relatively easy to modulate,the PWM's, LC7461chip. When the infrared controller'butt
18、on is pressed,it will sendout some signal which contains the information about thecoding format.The signal has the following characteristics: thePWM pulse width last for 0.56ms, interval 0.56ms as a periodof 1.12ms representing the binary "0" the PWM pulse widthlast for 0.56ms,interval 1.6
19、8 ms as a period of 2.24msrepresenting the binary "1" .The above-mentioned "0" and "1"composed of 42 bits binary code, as contained in the 38kHzfrequency modulation for the second launch in order toenhance efficiency and reduce lower power consumption, andthen through t
20、he infrared diode to send out. “0” “1” 0.56 ms 0.56ms 1.125ms 2.25ms Figure 3. The formation of the signal.2) The infrared receiversInfrared receiver is an integrated circuit including a set offuntions of receiving,amplification and shaping, without anyexternal components,takes all the work compatib
21、le with TTLlevel,it is suitable for a variety of infrared remote control andinfrared signal transferring.Infrared receiver transmits thedemodulated signal to the single-chip AT89S51 by the way ofinterruption. NOTE: When there is no infrared signal,the outputport is in high-level,so the signal we rec
22、eived is contrary to thesignal sent out before.3) The decoding of the infrared signal When we receive a signal containing a synchronizedbeginning of 9ms low-level and 4.5ms high-Level,it makes usprepare to decode the data.The key of decoding is how toidentify "0" and "1". Accordi
23、ng to the formation of the signalwe can find that the definition of "0" and" 1" starts with 0.56mslow-level, the only difference between them is the width of thehigh-level, "0" bit is 0.56 ms," 1" bit is 1.68 ms,so we delay0.9ms to compare the current level fo
24、r identifying the bit,theflow chart as follows: End Turn to the relating procedureaccording to the data code Output the data codeIs the anti-code data contrary to the data code?Obtain the anti-code dataObtain the data code Access the decoding procedureDelay 4.5ms to prepare getting the dataDelay 9ms
25、 to check the level is high or not?Waiting interruption function initially N Y N YFigure 4. The flow chart of decoding4) The working process of the infrared remote-conroller IR transmit / receive control circuits are achievedby the AT89S51microcontroller with simple circuit,selectable output control
26、 method and very practical The specific work process is as follows: Launch: First, sent back the data from the serialtransmit port P3.1 to the P1.1 port for internalmodem, sent out from the P1.2 port, and then firedout through the infrared emitting diodes, firingdistance is about 10m. Receipt: The i
27、nfrared receiver head matched withthe launch is used. , sent out the data launched to theserial port 3.0, and then the system will confirmwhether the send data are consistent with the receivedata, yes will unlock, no will give up.C. The design of main circuit According to the design of the analysis,
28、 the hardwarecircuitry of single-chip electronic locks as shown in the Figurebelow. P0port connect LCDl602 8-bit data bus,at the sametime, P0port is connected to the 8-bit ports of anode-sharingdigital tube,the port of P0.1strobes LED. P2 port access 4 * 3 matrix keyboard circuit, while P2.5, P2.6 a
29、nd P2.7 respectivelyconnect the RS, RW, E-port of the LCD1602. Buzzer alarmprompted by the P3.2 output. Figure 5. The design of main circuitIII. RESULT Accrding to the design ,the operation is shown as thefigures below: Figure 6. a unlocking interface When we want to reset the password,firstly,the s
30、ystemchecks out the password is correct or not,if the password isright,we could get in the next step,otherwise the system makeswarning. Figure 7. Interface of checking the password Figure 8. Interface of reset passwordIV. COCLUSION In this paper, an infrared remote control electroniclocks was design
31、ed and implemented, the maintechnical indicators are: the lock opening, passwordstorage, the effective protection of user's password,auto-alarm if the wrong password, unlock thekeyboard of the machine, remote unlocking and otherfunctions. Because of infrared remote control used inthis lock syste
32、m, there are many advantages:Infrared launching device use infrared light-emittingdiodes miniature remote control transmitter is easy and inexpensive; use digital signal coded modulation to improve anti-interferencewhen signal are transmitted, less misoperation , low power consumpti-on, including ot
33、her advantages, such as fast response infrared transmission, high transmission efficiency, stable and reliableoperation .Based on these advantages, this lock canbe widely used in civil doors and warehouse doors. In the information age,in my opinion,the design could playan important part in our daily
34、 life and will supplant thetranditon traditional mechanical lock later on.Though there issome points needed to improve, I also make further research onit to improve the funtion. ACKNOWLEDGMENT The authors of this paper would like to thank theanonymous reviewers of this paper for their carefully read
35、ingof the manuscript as well as their many helpfully suggestionsand corrections. This project is supported by the PlanningProject of the National Eleventh-Five Science and Technology(2007BAK34- B04) and the Chinese National Natural ScienceFund () and the Program of 985 InnovationEngineering on Infor
36、mation in Xiamen University (2004-2007).REFERENCES1Guangfei. Microcontroller C Programming examples guide. M. Beijing: Beijing University of Aeronautics and Astronautics Press.2 Zhou Jing. PROTEUS based on the single-chip system and circuit design and simulation. M. Beijing : Beijing University of A
37、eron- autics and Astronautics Press.3 Han Zhijun. Single-chip design applications - Getting Started guide and design examples. M. Machinery Industry Press.4 Fu Jiacai. SCM technology works in practice . M. Chemical Industry press.5 Peng Wei, Huang Ke, Lei Daozhong . Typical single-chip system design
38、 example. M. Beijing: Press of Electronics Industry. 2006: 299-323.6 Ding Yuanjie . Principle and Application of single-chip computer. M. Beijing: China Machine Press .2005:45-51.7 C51 Compiler User'S Guide.M . Keil Elektronik GmbH .And keil Software .Inc.2000.8 Atmcl Corporation. 8-bit Microcon
39、troller With4K Bytes In-System Programmable Flash.M.AtmeICorporation .2001.9 MCS-5l family of single chip microcomputers user's mnual.M.198110 Fenzl Heinz, Kliner Alois. ELECTRONIC LOCK SYSTEM: CONVENIENT AND SAFE. Journal article. 1987, 22(4):150-153.11 Yongxiong Pan, He Sha, Xiangyang Liu. Pra
40、ctical teaching materials of electronic circuit CAD. M. Xian: Xian electronic science and technology university publishing company.2001.12 Ur Rehman, Ejaz. Simple electronic lock uses single-transistor circuit. Journal article. 2003, 51(11):67.2009年第四屆國際計算機新科技與教育論文集基于單片機的紅外遙控電子鎖的設(shè)計薛章成 中國廈門大學(xué)自動化院 xue
41、zhangcheng吳順祥 中國廈門大學(xué)自動化院 wsx1009摘要目前,帶有報警功能的鍵盤電子鎖正在逐漸取代傳統(tǒng)機械鎖,它克服了傳統(tǒng)機械鎖保密性和可靠性差的缺點。鍵盤電子鎖在技術(shù)和性能方面都取得了巨大的進步。本文介紹了一種基于芯片AT89S51開發(fā)的遠程遙控電子鎖。這種鎖有兩個輸入設(shè)備,一個是安裝在鎖上的4*3的矩陣鍵盤,另一個是同樣帶有4*3的矩陣鍵盤的遠程控制器。我們可以使用其中的任何一個開鎖和修改我們設(shè)置的密碼。在本次設(shè)計中,我采用紅外線作為傳輸中介,因為紅外線有著很強的抗干擾能力,能夠穩(wěn)定的傳輸信息。 關(guān)鍵詞-單片機 電子鎖 紅外遙控 LCD1602一 、簡介 該設(shè)計是基于單片機,使
42、用4*3的矩陣鍵盤和紅外遠程控制器作為輸入,LCD1602可以顯示當你操作步驟時的一些信息。該設(shè)計也可以實現(xiàn)密碼修改和報警。當要求重設(shè)密碼時,必須確保輸入的密碼是正確的,否則會發(fā)出聲音來提醒你密碼是錯誤的。在此次設(shè)計中,我設(shè)定密碼為6位,就像銀行ATM機上的密碼一樣。如果你想開鎖的話就必須輸入正確的密碼。二、設(shè)計框架該設(shè)計包括六個模塊:主控制器模塊,LCD1602模塊,4*3鍵盤模塊,紅外遙控模塊,報警模塊,模擬開鎖模塊。主控制器模塊:一個低功耗,高性能CMOS的8位單片機。它使用的是ATMEL公司高密度,非易失性存儲技術(shù),與標準指令系統(tǒng)兼容的51單片機。一個8位通用中央處理單元和ISP Fl
43、ash存儲單元集成在這個芯片上。LCD模塊:LCD1602是一個字符液晶顯示模塊,是一種用來顯示字母,數(shù)字,符號等等的點陣LCD。考慮到經(jīng)濟和實際因素,采用LCD1602足以滿足字符顯示上的要求。4*3鍵盤模塊:由于單片機的I/O口是有限的,所以用矩陣鍵盤實現(xiàn)電路。這樣,我們可以在鍵盤上設(shè)計足夠多的按鈕而不用占用單片機過多的端口。紅外遙控模塊:該設(shè)計采用一種通用電視機遙控設(shè)備作為輸入設(shè)備,該設(shè)備可以提供一個 廣泛的紅外編碼格式,所以我們使用 編碼脈沖寬度調(diào)制的格式。報警模塊:該設(shè)計中,使用蜂鳴器報警。單片機通過P3.2口輸出一個驅(qū)動的音頻揚聲器方波脈沖。解鎖指令:在本設(shè)計中,我選擇使用LED
44、燈光來模擬開鎖情況。當我們輸入密碼后,LED燈亮代表鎖打開。 報警電路LCD1602紅外遙控模塊 4*3鍵盤AT89S51模擬解鎖單片機 圖1. 設(shè)計框架A、 矩陣鍵盤設(shè)計 矩陣鍵盤工作原理:豎直線通過電阻接+5V電源,當沒有按下按鍵時,豎直線都處于高電平,否則將和按下按鍵所在的水平線處于同樣的狀態(tài)。開始,水平線處于低電平。當我們檢查豎直線的狀態(tài)有變化時,說明有按鍵被按下,此時我們記下P2.4口到P2.6口的狀態(tài),然后我們依次使P2.0口至P2.3口為高電平,同時檢查P2.4口至P2.6口變化情況,當有變化,我們記下此時P2.0口至P2.3口的狀態(tài)。這樣,我們能知道哪個按鍵被按下,因為我們已經(jīng)
45、記下了P2.0口至P2.6口的狀態(tài)。不同的鍵有不同編碼格式,鍵盤處理情況如下:首先確定是否有按鍵按下,然后確定哪個鍵被按下,再通過程序獲得鍵碼信息。所有鍵碼如下表: 表 1 鍵碼值 EE DE BE ED DD BD EB DB BB E7 D7 B7 圖2 4*3鍵盤電路B、 紅外遙控設(shè)計1)LC7461簡介 目前,有很多芯片用來傳輸紅外線,根據(jù)編碼格式被分為兩個主要類別:和PPM。這里我們選擇了比較容易調(diào)制的,PWM系列的LC7461芯片。當紅外遙控按鈕被按下時,它會發(fā)送包含編碼格式信息的信號。該信號有如下特征:PWM脈寬0.56ms,間隔0.56ms,以1.12ms為一個周期,代表二進制“0”。PWM脈寬0.56ms,間隔1.68ms,以2.24ms為一個周期,代表二進制“1”。上面所提到的“0”和“1”由42位二進制碼組成,包含在二次發(fā)射的38kHz的調(diào)制頻率中,用來提高效率并降低功耗,然后通過紅外二極管發(fā)射出去。 圖3 信號組成2) 紅外接收器 紅外接收器是包含接收,放大和整形一些列功能的集成元件,無需任何外部
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 小學(xué)生生活小達人課件
- 尊重生命班會課件
- 26 必修2 素養(yǎng)加強課4 基因在染色體上位置的判斷與探究
- 05 必修1 第一單元 第5講 細胞器之間的分工合作
- pbl教學(xué)課件模板
- 2025年長沙市中考數(shù)學(xué)試卷真題(含標準答案)
- 部門承包經(jīng)營品牌建設(shè)與維護合同
- 大數(shù)據(jù)產(chǎn)業(yè)園廠房場地租賃合同樣本
- 成都市環(huán)城生態(tài)區(qū)農(nóng)用地租賃合作開發(fā)合同
- 茶葉市場推廣與茶園使用權(quán)租賃合同
- 2022-2023學(xué)年北京市東城區(qū)高二(下)期末化學(xué)試卷(含解析)
- 三年級下冊道德與法治課件-第二單元《我在這里長大》教材解讀-人教(新版)
- 防溺水老師培訓(xùn)課件
- 鐵路行車組織(高職)全套教學(xué)課件
- 如何預(yù)防錯混料
- 全新版大學(xué)進階英語綜合教程2綜合訓(xùn)練第二單元(含答案)
- 安全責(zé)任家校共育
- (外標兩點法對數(shù)方程)桔梗含量為例
- 道路運輸防汛應(yīng)急演練方案范文
- 道路管線施工地鐵保護施工方案
- 體格檢查技術(shù)操作考核評分標準(胸部)
評論
0/150
提交評論