版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上畢業(yè)設(shè)計(jì)(論文)外文資料翻譯 學(xué)生姓名: 朱德濤 學(xué) 號(hào): 所在學(xué)院: 電子與信息工程學(xué)院 專(zhuān) 業(yè): 電子信息工程 指導(dǎo)教師: 毛錢(qián)萍 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年第四屆國(guó)際計(jì)算機(jī)新科技與教育論文集基于單片機(jī)的紅外遙控電子鎖的設(shè)計(jì)薛章成 中國(guó)廈門(mén)大學(xué)自動(dòng)化院 xue
41、zhangcheng吳順祥 中國(guó)廈門(mén)大學(xué)自動(dòng)化院 wsx1009摘要目前,帶有報(bào)警功能的鍵盤(pán)電子鎖正在逐漸取代傳統(tǒng)機(jī)械鎖,它克服了傳統(tǒng)機(jī)械鎖保密性和可靠性差的缺點(diǎn)。鍵盤(pán)電子鎖在技術(shù)和性能方面都取得了巨大的進(jìn)步。本文介紹了一種基于芯片AT89S51開(kāi)發(fā)的遠(yuǎn)程遙控電子鎖。這種鎖有兩個(gè)輸入設(shè)備,一個(gè)是安裝在鎖上的4*3的矩陣鍵盤(pán),另一個(gè)是同樣帶有4*3的矩陣鍵盤(pán)的遠(yuǎn)程控制器。我們可以使用其中的任何一個(gè)開(kāi)鎖和修改我們?cè)O(shè)置的密碼。在本次設(shè)計(jì)中,我采用紅外線(xiàn)作為傳輸中介,因?yàn)榧t外線(xiàn)有著很強(qiáng)的抗干擾能力,能夠穩(wěn)定的傳輸信息。 關(guān)鍵詞-單片機(jī) 電子鎖 紅外遙控 LCD1602一 、簡(jiǎn)介 該設(shè)計(jì)是基于單片機(jī),使
42、用4*3的矩陣鍵盤(pán)和紅外遠(yuǎn)程控制器作為輸入,LCD1602可以顯示當(dāng)你操作步驟時(shí)的一些信息。該設(shè)計(jì)也可以實(shí)現(xiàn)密碼修改和報(bào)警。當(dāng)要求重設(shè)密碼時(shí),必須確保輸入的密碼是正確的,否則會(huì)發(fā)出聲音來(lái)提醒你密碼是錯(cuò)誤的。在此次設(shè)計(jì)中,我設(shè)定密碼為6位,就像銀行ATM機(jī)上的密碼一樣。如果你想開(kāi)鎖的話(huà)就必須輸入正確的密碼。二、設(shè)計(jì)框架該設(shè)計(jì)包括六個(gè)模塊:主控制器模塊,LCD1602模塊,4*3鍵盤(pán)模塊,紅外遙控模塊,報(bào)警模塊,模擬開(kāi)鎖模塊。主控制器模塊:一個(gè)低功耗,高性能CMOS的8位單片機(jī)。它使用的是ATMEL公司高密度,非易失性存儲(chǔ)技術(shù),與標(biāo)準(zhǔn)指令系統(tǒng)兼容的51單片機(jī)。一個(gè)8位通用中央處理單元和ISP Fl
43、ash存儲(chǔ)單元集成在這個(gè)芯片上。LCD模塊:LCD1602是一個(gè)字符液晶顯示模塊,是一種用來(lái)顯示字母,數(shù)字,符號(hào)等等的點(diǎn)陣LCD。考慮到經(jīng)濟(jì)和實(shí)際因素,采用LCD1602足以滿(mǎn)足字符顯示上的要求。4*3鍵盤(pán)模塊:由于單片機(jī)的I/O口是有限的,所以用矩陣鍵盤(pán)實(shí)現(xiàn)電路。這樣,我們可以在鍵盤(pán)上設(shè)計(jì)足夠多的按鈕而不用占用單片機(jī)過(guò)多的端口。紅外遙控模塊:該設(shè)計(jì)采用一種通用電視機(jī)遙控設(shè)備作為輸入設(shè)備,該設(shè)備可以提供一個(gè) 廣泛的紅外編碼格式,所以我們使用 編碼脈沖寬度調(diào)制的格式。報(bào)警模塊:該設(shè)計(jì)中,使用蜂鳴器報(bào)警。單片機(jī)通過(guò)P3.2口輸出一個(gè)驅(qū)動(dòng)的音頻揚(yáng)聲器方波脈沖。解鎖指令:在本設(shè)計(jì)中,我選擇使用LED
44、燈光來(lái)模擬開(kāi)鎖情況。當(dāng)我們輸入密碼后,LED燈亮代表鎖打開(kāi)。 報(bào)警電路LCD1602紅外遙控模塊 4*3鍵盤(pán)AT89S51模擬解鎖單片機(jī) 圖1. 設(shè)計(jì)框架A、 矩陣鍵盤(pán)設(shè)計(jì) 矩陣鍵盤(pán)工作原理:豎直線(xiàn)通過(guò)電阻接+5V電源,當(dāng)沒(méi)有按下按鍵時(shí),豎直線(xiàn)都處于高電平,否則將和按下按鍵所在的水平線(xiàn)處于同樣的狀態(tài)。開(kāi)始,水平線(xiàn)處于低電平。當(dāng)我們檢查豎直線(xiàn)的狀態(tài)有變化時(shí),說(shuō)明有按鍵被按下,此時(shí)我們記下P2.4口到P2.6口的狀態(tài),然后我們依次使P2.0口至P2.3口為高電平,同時(shí)檢查P2.4口至P2.6口變化情況,當(dāng)有變化,我們記下此時(shí)P2.0口至P2.3口的狀態(tài)。這樣,我們能知道哪個(gè)按鍵被按下,因?yàn)槲覀円呀?jīng)
45、記下了P2.0口至P2.6口的狀態(tài)。不同的鍵有不同編碼格式,鍵盤(pán)處理情況如下:首先確定是否有按鍵按下,然后確定哪個(gè)鍵被按下,再通過(guò)程序獲得鍵碼信息。所有鍵碼如下表: 表 1 鍵碼值 EE DE BE ED DD BD EB DB BB E7 D7 B7 圖2 4*3鍵盤(pán)電路B、 紅外遙控設(shè)計(jì)1)LC7461簡(jiǎn)介 目前,有很多芯片用來(lái)傳輸紅外線(xiàn),根據(jù)編碼格式被分為兩個(gè)主要類(lèi)別:和PPM。這里我們選擇了比較容易調(diào)制的,PWM系列的LC7461芯片。當(dāng)紅外遙控按鈕被按下時(shí),它會(huì)發(fā)送包含編碼格式信息的信號(hào)。該信號(hào)有如下特征:PWM脈寬0.56ms,間隔0.56ms,以1.12ms為一個(gè)周期,代表二進(jìn)制“0”。PWM脈寬0.56ms,間隔1.68ms,以2.24ms為一個(gè)周期,代表二進(jìn)制“1”。上面所提到的“0”和“1”由42位二進(jìn)制碼組成,包含在二次發(fā)射的38kHz的調(diào)制頻率中,用來(lái)提高效率并降低功耗,然后通過(guò)紅外二極管發(fā)射出去。 圖3 信號(hào)組成2) 紅外接收器 紅外接收器是包含接收,放大和整形一些列功能的集成元件,無(wú)需任何外部
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二年級(jí)下冊(cè)《買(mǎi)鮮花》課件版
- 2021屆浙江省寧波市九校高一上學(xué)期期末聯(lián)考數(shù)學(xué)試題(解析版)
- 人教版八年級(jí)上學(xué)期期中考試數(shù)學(xué)試卷-(含答案)
- 《風(fēng)險(xiǎn)投資方法》課件
- 2025年1月八省聯(lián)考高考綜合改革適應(yīng)性測(cè)試-高三化學(xué)(內(nèi)蒙古卷)
- 天津市和平區(qū)2023-2024學(xué)年高三上學(xué)期期末質(zhì)量調(diào)查英語(yǔ)試卷
- 醫(yī)藥行業(yè)前臺(tái)接待工作心得
- 家政服務(wù)保姆照顧技能培訓(xùn)總結(jié)
- 環(huán)保行業(yè)美工工作總結(jié)
- 貴州省安順市紫云縣2021-2022學(xué)年九年級(jí)上學(xué)期期末化學(xué)試題
- 智慧審計(jì)平臺(tái)項(xiàng)目匯報(bào)
- 湖北省天門(mén)市2022-2023學(xué)年三年級(jí)上學(xué)期語(yǔ)文期末試卷(含答案)
- 《建筑賦比興》一些筆記和摘錄(上)
- 【服裝企業(yè)比音勒芬服飾的財(cái)務(wù)問(wèn)題分析(基于杜邦分析)9700字論文】
- 電氣工程及其自動(dòng)化低壓電器中繼電器應(yīng)用
- 實(shí)驗(yàn)九(b)液體表面張力系數(shù)的測(cè)定(用毛細(xì)管法)
- 全球機(jī)場(chǎng)三字碼、四字碼
- 2023-2024學(xué)年重慶市兩江新區(qū)四上數(shù)學(xué)期末質(zhì)量檢測(cè)試題含答案
- 泌尿外科內(nèi)鏡診療技術(shù)質(zhì)量保障措施及應(yīng)急預(yù)案
- M7.5漿砌塊石擋土墻砌筑施工方法
- 2022年度黑龍江省重點(diǎn)新產(chǎn)品名單
評(píng)論
0/150
提交評(píng)論