基于单片机控制的电子密码锁设计

基于单片机控制的电子密码锁设计

基于单片机控制的电子密码锁设计

  • 适用:本科,大专,自考
  • 更新时间2024年
  • 原价: ¥314
  • 活动价: ¥200 (活动截止日期:2024-04-29)
  • (到期后自动恢复原价)
基于单片机控制的电子密码锁设计

基于单片机控制的电子密码锁设计
摘 要:
本设计主要采用的是单片机外围电路相结合的电子密码锁,如果用户需要打开锁,那必须先通过键盘输入正确的密码方能打开锁,输入错误将会有错误提示,以提高安全性用户只有三次输入密码的机会。否则将会触发报警。不过可以用户可以修改自己的密码,但只有把门打开才能更改密码。更改密码之前须先输入新密码两次,这是为了为了防止错误操作。用户的密码必须由6~12位数字组成,键盘是由0~9位数组成,键盘上还有清除、确认、修改、返回、关闭、开启组成。这样大大简便了用户的操作,而且简单明了,老少皆宜操作。而且密码具有自动加密的功能,用户输完的数字在主操作页面显示的是*******,这样用户就不用担心密码泄露的问题,用户就可以放心在柜内存放物品。
用户如果输入超时,6s后程序将会自动回到主页面,这样同样是为了保障顾客使用的安全,如果输入错误三次,用户可以求助于专业人员进行解锁,解锁将返回初始化,既密码将会清除。单片机技术在智能检测和控制领域中非常流行,具有很大的潜力。该设计基于单片机的液晶显示电子密码锁的设计与实现。系统采用美国爱特梅尔公司的AT89S52单片机作为系统的核心,LCD1602液晶显示器作为输出设备,显示系统信息,4×4矩阵键盘作为输入设备,CMOS串行E2PROM AT24C02存储器作为数据存储器,用蜂鸣器和继电器电路构成的硬件系统,采用C语言编写系统软件。本系统设计的液晶显示,密码修改方便,具有报警、锁定等功能,使用简单方便,符合住宅、办公用锁的需求,具有一定的实用价值。
关键词:单片机、液晶显示器、报警。                                                                                     

 


Design of electronic password lock based on           single chip microcomputer
Abstract:Combining microcontroller peripheral circuit of electronic password lock is mainly used in the design, users if needed to open the lock, it must be first through the keyboard input the correct password to open the lock, the input error there will be an error, the password input wrong three times. Will alarm to improve security. Can but you can modify their own password settings, only open the door to change the password. You must enter a new password two times before changing the password. This is to prevent the error operation. User password must be composed of 6~12 digits, the keyboard is composed of 0~9 digits, but there are clear, confirm, modify, return, close, open the composition. This greatly convenient user operation, and simple operation, good for both young and old. And password has the function of automatic encryption and user input end of the digital display on the main page is *******, so users don't have to worry about password disclosure, users can rest assured in the cabinet of memory items.
   User if the input timeout, 6S program will automatically return to home page, this also is in order to guarantee the customer use of security, if you enter the wrong three times, users can turn to professionals to unlock, unlock would return to the plant. SCM technology in the field of intelligent detection and control is very popular, has great potential. This paper introduces the design and implementation of a liquid crystal display electronic password lock based on single chip microcomputer. System uses American ATMEL Corporation AT89S52 microcontroller as the core of the system, the LCD1602 LCD display as output device, display system information, 4 * 4 matrix keyboard as an input device, CMOS serial E2PROM AT24C02 memory as the data memory, with the buzzer and relay circuit composed of hardware system by C language writing the software system. The system design of the liquid crystal display, the password change is convenient, with alarm, lock and other functions, the use of simple and convenient, in accordance with residential, office lock needs, has a certain practical value.
Keywords: single chip microcomputer, LCD display, alarm.

目 录

引 言
第1章  总体设计方案 
1.1 系统结构 ................................................................................................. 5
1.2 系统组成 ................................................................................................. 6
第2章  硬件系统设计
2.1 设计原理 ..................................................................................................7 
2.2 电路总体构成 ..........................................................................................8
2.3电源部分 ...................................................................................................9
2.31直流稳压电源电路 ...........................................................................9
2.32密码锁电源电路 ...............................................................................9
2.4 键盘输入 ..................................................................................................10
2.5密码存储部分 ...........................................................................................12
2.5.1 AT24C02...........................................................................................12
2.5.2密码存储电路 .................................................................................13
2.6复位部分 ...................................................................................................14
2.6.1 复位电路的介绍 ............................................................................14
2.7晶振部分 ...................................................................................................15
2.7.1晶振电路..........................................................................................15
2.8显示部分 ...................................................................................................16
2.8.1 LCD1602显示器 .............................................................................16
 2.8.2显示电路..........................................................................................18
2.9报警部分.......................................................................................……….19
2.10 开锁部分 ................................................................................................20
第3章  软件系统设计 
3.1主程序模块 .............................................................................................. 22
3.2 键盘扫描模块 ..........................................................................................23
3.3 密码修改模块 ......................................................................................... 23
3.4 密码比较判断模块 ................................................................................. 24
控制程序的调试
第5章  总结与体会.
参考文献
毕业设计附表

参考文献
  [1] 《51单片机C语言应用开发技术大全》 龙脉工作室 刘坤、宋戈、赵红波、张宪栋 编著,人民邮电出版社 
  [2] 《51单片机应用设计与仿真——基于Keil与Proteus》 丁明亮、唐前辉 主编,北京航空航天大学出版社
  [3]电子CAD—Protel 99SE/缪晓中主编.—北京:化学工业出版社,2009.1
  [4]单片机应用技术(C语言版)/单正娅,芮长颖主编.-西安:西安电子科技大学出版社.2015.2
  [5]C语言程序设计/谭浩强著.-3版.—北京:清华大学出版社。2014
  [6]AutoCAD2010基础与实例教程/陈平,张双侠,伊立平主编。—北京:机械工业出版社,2011.1
  [7]王静霞,杨宏丽,刘俐,单片机应用技术:C语言版.北京:电子工业出版社,2009
  [8]马忠梅,单片机C语言应用程序设计.北京:北京航天大学出版社,2001
  [9]黄翠翠.MSC-51单片机原理及应用.北京:北京大学出版社,2013
  [10]任正云.C语言程序设计.北京:中国水利出版社,2009
  [11]谭浩强编著.C语言程序设计(第二版)学习辅导,北京;清华大学出版社,2009
  [1]李全利。单片机原理及应用技术.北京:高等教育出版社,2013.

 

 


http://www.bysj360.com/cat.asp?id=27
http://www.bysj360.com/cat.asp?id=28
http://www.bysj360.com/cat.asp?id=22

  • 关键词 单片机 控制 电子 密码锁
  • 上一篇:(写作电子/单片机/plc毕业设计)IC卡用户电费支付器设计
  • 下一篇:基于单片机多路温湿度监测系统
  • 暂无购买记录

    暂时没有评论

    真实

    多重认证,精挑细选的优质资源 优质老师。

    安全

    诚实交易,诚信为本。

    保密

    所有交易信息,都为您保密。

    专业

    10年专业经验,10年来帮助无数学子。