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

  • 格式:doc
  • 大小:7.45 MB
  • 文档页数:61

下载文档原格式

  / 61
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

编号:

毕业论文(设计)

题目基于单片机的电子密码锁设计

院(系)计算机与信息工程学院

专业电子科学与技术

学生姓名

成绩

指导教师(职称)

2013年6月

诚信声明

本人郑重声明:所呈交的毕业设计(论文)是我个人在导师指导下,由我本人独立完成。有关观点、方法、数据和文献等的引用已在文中指出,并与参考文献相对应。据我查证,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表和撰写的研究成果,也不包含为获得其他教育机构的学位或证书而使用过的材料。

我承诺,论文中的所有内容均真实、可信。如在文中涉及到抄袭或剽窃行为,本人愿承担由此而造成的一切后果及责任。

毕业论文(设计)作者签名:

签名日期:年月日

摘要

随着科技和人们的生活水平的提高,如何实现家庭防盗这一问题也变的尤其的突出,传统机械锁由于构造简单,被撬事件屡见不鲜;电子锁由于其保密性

高,使用灵活性好,安全系数高,受到了广大用户的青睐。

本设计以单片机AT89C51作为密码锁监控装置的检测和控制核心,分为主机控制和从机执行机构(本设计重点介绍主机设计),实现钥匙信息在主机上的初步认证注册、密码信息的加密、钥匙丢失报废等功能。根据51单片机之间的串行通信原理,这便于对密码信息的随机加密和保护。而且采用键盘输入的电子密码锁具有较高的优势。采用数字信号编码和二次调制方式,不仅可以实现多路信息的控制,提高信号传输的抗干扰性,减少错误动作,而且功率消耗低;反应速度快、传输效率高、工作稳定可靠等。软件设计采用自上而下的模块化设计思想,以使系统朝着分布式、小型化方向发展,增强系统的可扩展性和运行的稳定性。测试结果表明,本设计基本达到了预期的目标。

关键词:单片机;密码锁;单片机设计;电子锁

Abstract

Along with the exaltation of social science and the living level of people, how carry out the family to guard against theft, this problem also change particularly outstanding.Because of the simple construct of traditional machine lock,the affairs of theft is hackneyed.the electronics lock is safer because of its confidentiality, using the vivid good, the safe coefficient is high, being subjected to the large customer close.

It can carry out the key information to register in the main on board initial attestation, the password information encrypt etc. Go to correspond by letter the principle according to the string between 51 machines, this is easy to encrypt and protect to the passwords information random. Adopt the numerical signal codes,not only can carry out many controls of the road information, raise the anti- interference that signal deliver, reduce the mistake action,but also the power consume is low, Respond quickly,the efficiency deliver is high, work stable credibility etc. The software design adoption the design thought from top to bottom, to make the system toward wear distribute type,turn to the direction development of small, strengthen the system and can expand the stability and circulate.Test the result enunciation, various functions of this system are already all request of this design.

keyword:singlechip;cryptogram lock;singlechip design; electronics lock

目录

第一章绪论 (1)

1.1 课题背景 (1)

1.2 课题设计目标 (1)

第二章系统方案论证 (2)

2.1 主控部分的选择 (2)

2.2 密码输入方式的选择 (2)

第三章系统总体设计和主要芯片介绍 (3)

3.1 系统总体设计 (3)

3.2 主要芯片介绍 (4)

3.2.1 STC89C52 (4)

3.2.2存储芯片AT24C02 (7)

3.2.3显示电路(LCD1602) (8)

第四章系统硬件构成 (11)

4.1 系统整体电路图 (11)

4.2 单片机最小系统原理图 (12)

4.3 电源输入部分 (12)

4.4 键盘输入部分 (13)

4.5 密码存储部分 (13)

4.6 显示部分 (14)

4.7 报警部分 (15)

4.8 元器件采购 (15)

4.9 电路焊接 (16)

4.9.1.焊接所需工具 (16)