资源描述:
《电子密码锁 毕业设计论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、毕业设计(论文)题目:电子密码锁英文题目:Electroniccipherlock学生姓名:*********班级:*******专业:************指导教师:********东华理工大学2二0一二年四月2摘要随着科技和人们的生活水平的提高,如何实现家庭防盗这一问题也变的尤其的突出,传统机械锁由于构造简单,被撬事件屡见不鲜;电子锁由于其保密性高,使用灵活性好,安全系数高,受到了广大用户的青睐。本次设计使用AT89S51实现一基于单片机的电子密码锁的设计,其主要具有如下功能:(1)密码通过键盘输入,若密码正确,则将锁打开。(2)报警、锁定键盘功能。密码输入错误数码显示器会出现错误
2、提示,若密码输入错误次数超过3次,蜂鸣器报警并且锁定键盘。电子密码锁的设计主要由三部分组成:4×4矩阵键盘接口电路、密码锁的控制电路、输出八段显示电路。另外系统还有LED提示灯,报警蜂鸣器等。密码锁设计的关键问题是实现密码的输入、清除、更改、开锁等功能:(1)密码输入功能:按下一个数字键,一个“-”就显示在最右边的数码管上,同时将先前输入的所有“-”向左移动一位。(2)密码清除功能:当按下清除键时,清除前面输入的所有值,并清除所有显示。(3)开锁功能:当按下开锁键,系统将输入与密码进行检查核对,如果正确锁打开,否则不打开。主要的设计实施过程:首先,选用单片机AT89S51,以及其他电子元
3、器件。第二步,使用DXP2004设计硬件电路原理图,并设计PCB图完成人工布线(后因PCB板损坏决定采用万能板焊接的方法)。第三步,使用KeiluVision3软件编写单片机的C语言程序、仿真、软件调试。第四部,使用PROTEUS软件进行模拟软、硬件调试。最后,联合软、硬件调试电路板,完成本次毕业设计。关键词:4×4矩阵键盘;AT89C51;密码锁;密码二次确认AbstractAlongwiththescienceandtechnologyandpeople'slivingstandardenhancement,howtorealizethefamilyguardagainsttheft
4、hasbecomeaparticularlyprominent,thetraditionalmechanicallockbecauseofsimplestructure,prizingeventsitisoftenseen.;electroniclockhighbecauseoftheirconfidentiality,theuseofflexibilitygood,highsafetyfactor,bythemajorityofusersofallages.ThedesignoftheuseofAT89S51toachieveabasedonsingle-chipelectronicc
5、odelockdesign,whichmainlyhasthefollowingfunctions:(1)thepasswordinputthroughthekeyboard,ifthepasswordiscorrect,thenopenthelock.(2)alarm,keyboardlockfunction.Passwordinputerrordigitaldisplaywillappearerror,ifthepasswordinputerrornumbermorethan3times,thebuzzeralarmandlockingthekeyboard.Designofthee
6、lectroniccodelockismainlycomposedofthreeparts:4x4matrixkeyboardinterfacecircuit,cipherlockcontrolcircuit,theoutputofeightsegmentdisplaycircuit.AnothersystemandLEDindicatinglamp,abuzzeralarm.Passwordlockdesignisthekeyproblemofrealizingthepasswordinput,clear,change,unlockfunction:(1)thepasswordinpu
7、tfunction:pressanumberkey,a"-"ondisplayintherightsideofthedigitaltube,whilethepreviousinputall"-"movetotheleftabit.(2)thepasswordclearfunction:whenyoupressthekey,removethefrontallvaluesofinput,andtoclearallofthedisplay