




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、精选优质文档-倾情为你奉上毕业设计(论文)外文资料翻译 学生姓名: 朱德涛 学 号: 所在学院: 电子与信息工程学院 专 业: 电子信息工程 指导教师: 毛钱萍 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年第四届国际计算机新科技与教育论文集基于单片机的红外遥控电子锁的设计薛章成 中国厦门大学自动化院 xue
41、zhangcheng吴顺祥 中国厦门大学自动化院 wsx1009摘要目前,带有报警功能的键盘电子锁正在逐渐取代传统机械锁,它克服了传统机械锁保密性和可靠性差的缺点。键盘电子锁在技术和性能方面都取得了巨大的进步。本文介绍了一种基于芯片AT89S51开发的远程遥控电子锁。这种锁有两个输入设备,一个是安装在锁上的4*3的矩阵键盘,另一个是同样带有4*3的矩阵键盘的远程控制器。我们可以使用其中的任何一个开锁和修改我们设置的密码。在本次设计中,我采用红外线作为传输中介,因为红外线有着很强的抗干扰能力,能够稳定的传输信息。 关键词-单片机 电子锁 红外遥控 LCD1602一 、简介 该设计是基于单片机,使
42、用4*3的矩阵键盘和红外远程控制器作为输入,LCD1602可以显示当你操作步骤时的一些信息。该设计也可以实现密码修改和报警。当要求重设密码时,必须确保输入的密码是正确的,否则会发出声音来提醒你密码是错误的。在此次设计中,我设定密码为6位,就像银行ATM机上的密码一样。如果你想开锁的话就必须输入正确的密码。二、设计框架该设计包括六个模块:主控制器模块,LCD1602模块,4*3键盘模块,红外遥控模块,报警模块,模拟开锁模块。主控制器模块:一个低功耗,高性能CMOS的8位单片机。它使用的是ATMEL公司高密度,非易失性存储技术,与标准指令系统兼容的51单片机。一个8位通用中央处理单元和ISP Fl
43、ash存储单元集成在这个芯片上。LCD模块:LCD1602是一个字符液晶显示模块,是一种用来显示字母,数字,符号等等的点阵LCD。考虑到经济和实际因素,采用LCD1602足以满足字符显示上的要求。4*3键盘模块:由于单片机的I/O口是有限的,所以用矩阵键盘实现电路。这样,我们可以在键盘上设计足够多的按钮而不用占用单片机过多的端口。红外遥控模块:该设计采用一种通用电视机遥控设备作为输入设备,该设备可以提供一个 广泛的红外编码格式,所以我们使用 编码脉冲宽度调制的格式。报警模块:该设计中,使用蜂鸣器报警。单片机通过P3.2口输出一个驱动的音频扬声器方波脉冲。解锁指令:在本设计中,我选择使用LED
44、灯光来模拟开锁情况。当我们输入密码后,LED灯亮代表锁打开。 报警电路LCD1602红外遥控模块 4*3键盘AT89S51模拟解锁单片机 图1. 设计框架A、 矩阵键盘设计 矩阵键盘工作原理:竖直线通过电阻接+5V电源,当没有按下按键时,竖直线都处于高电平,否则将和按下按键所在的水平线处于同样的状态。开始,水平线处于低电平。当我们检查竖直线的状态有变化时,说明有按键被按下,此时我们记下P2.4口到P2.6口的状态,然后我们依次使P2.0口至P2.3口为高电平,同时检查P2.4口至P2.6口变化情况,当有变化,我们记下此时P2.0口至P2.3口的状态。这样,我们能知道哪个按键被按下,因为我们已经
45、记下了P2.0口至P2.6口的状态。不同的键有不同编码格式,键盘处理情况如下:首先确定是否有按键按下,然后确定哪个键被按下,再通过程序获得键码信息。所有键码如下表: 表 1 键码值 EE DE BE ED DD BD EB DB BB E7 D7 B7 图2 4*3键盘电路B、 红外遥控设计1)LC7461简介 目前,有很多芯片用来传输红外线,根据编码格式被分为两个主要类别:和PPM。这里我们选择了比较容易调制的,PWM系列的LC7461芯片。当红外遥控按钮被按下时,它会发送包含编码格式信息的信号。该信号有如下特征:PWM脉宽0.56ms,间隔0.56ms,以1.12ms为一个周期,代表二进制“0”。PWM脉宽0.56ms,间隔1.68ms,以2.24ms为一个周期,代表二进制“1”。上面所提到的“0”和“1”由42位二进制码组成,包含在二次发射的38kHz的调制频率中,用来提高效率并降低功耗,然后通过红外二极管发射出去。 图3 信号组成2) 红外接收器 红外接收器是包含接收,放大和整形一些列功能的集成元件,无需任何外部
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度卫生院聘用合同范本-医疗卫生机构工作人员服务协议
- 二零二五年度交通事故车辆理赔及自行处理协议书
- 2025年度环保技术研发合作终止协议书
- 2025年度金融租赁业务合作框架协议
- 2025年度新能源车辆研发工程师解聘终止劳动合同证明文件
- 2025年度药店营业员医药行业数字化转型聘用合同
- 二零二五年度教育机构教师聘用合同
- 内蒙古赤峰市2025届高三下学期3·20模拟考试英语试卷(含答案)
- 二零二五年度房屋拆除与拆除工程保险合同
- 二零二五年度旅游险理赔权益转让协议模板
- 2022年江苏财会职业学院单招职业技能考试笔试试题及答案解析
- 《中国医学大辞典》
- 植物生理教案
- 《前厅服务与管理》课程标准(中职)
- 异常停机记录分析表
- 遥感原理与应用:第三章 平台及传感器
- 公司压力容器明细台账
- 广西河池市隆友锌银铅锑矿区
- GB_T 41377-2022菊粉质量要求(高清-最新)
- VFS5210-4DB-06 SMC电磁阀
- 电厂锅炉本体保温施工方案完整
评论
0/150
提交评论