资源描述:
《基于-单片机的电子密码锁设计.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、基于单片机的电子密码锁设计摘要:锁,是指加在门、箱子、抽屉等物体上的封缄器,要用专用的钥匙才能打开。自古以来锁都是人们财产安全乃至生命安全的一种重要保障。伴随着人类历史的发展和人们对自身财产安全和人生安全的重视,各种各样的多功能的锁具也相继出现,人们使用的锁具也由传统的机械式锁逐渐发展为安全性能更好,功能更多的电子密码锁。在现代社会,电子密码锁已是一个被大家所熟识的名词。相信很多人的小区大门上的锁都用的是电子密码锁。本文中将要介绍的电子密码锁是一种通过判断密码输入是否正确来控制电路或是芯片的工作状态,进而控制锁的打开和闭合,从而完成开锁、闭锁任务的电
2、子锁装置。本设计是基于AT89C51单片机为控制核心的密码锁设计方案。在本次基于单片机的电子密码锁设计中,将采用AT89C51单片机作为控制核心,配合相应的电路和软件程序,实现密码的输入和修改、信息的显示、键盘的锁定、系统报警、开锁和闭锁等功能。在设计中,利用识别密码是否正确来开锁或报警,通过串行存储器AT24C02来实现密码的修改和存储。本文设计的密码锁具有安全性高、功耗低、操作简单等优点。关键词:单片机;密码锁;电子锁;矩阵键盘;掉电存储TheDesignOfElectronicCodeLockBasedOnSingleChipMicrocomp
3、uterAbstract:Assealeddevice,thelockaddedtosuchobjectslikedoor,box,draweretc,canbeopenedwithspecifiedkey.Sincetheancienttime,lockisakindofsecurity,guaranteeingpeople’spropertysafetyevenlifesafety.Withthedevelopmentofhumanhistoryandmoreattentionpaidtopropertysafetyandlifesafety,v
4、ariousmulti-functionallockscanbeseenintheworld.Traditionalmechanicallockspeopleuseinlifearegraduallyreplacedbyelectroniccombinationlockcharacterizedwithbettersafetyperformanceandmorefunctions.Inthemodernsociety,electroniccombinationlockisanounfamiliartoeveryone.Usually,thedooro
5、fcommunityisequippedwithelectroniccombinationlock.Thispaperwillintroduceanelectroniccombinationlock.Thislockcontrolstheelectriccircuitsandtheperformanceofchipsbyidentifyingpassword.Thus,theopennessandclosenessofthelockcanbecontrolled,andthetaskofelectroniclockdevicecanbecomplet
6、ed.Thisdesignisaboutcombinationlock,basedontheAT89C51single-chipmicrocomputerasthecoreofcontrollinggoals.ThisdesigninwhichtheAT89C51single-chipmicrocomputerasthecoreofthecontrollinggoalscooperatedwithrelevantcircuitsandsoftwareprogramscanachievesuchfunctionslikepasswordinputand
7、modification,informationdisplay,keyboardlocking,warningsystem,andtheopennessandclosenessofthelocketc.Inthisdesign,theopennessoflockandalarmingareaccordingtoidentifyingthepassword,andpasswordrevisionandstorageisachievedbythefunctionoftheAT24C02serialstorage.Electroniccombination
8、lockdescribedinthispaperischaracterizedwithhighsecurit