电子密码锁的设计与制作毕业论文

  • 格式:doc
  • 大小:1.12 MB
  • 文档页数:51

下载文档原格式

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

本科毕业设计

(2010届)

题目电子密码锁的设计

学院电子信息学院

专业电子信息工程

班级

学号

学生姓名

指导教师

完成日期

摘要

在日常的生活和工作中, 住宅与部门的安全防范、单位的文件档案、财务报表以及一些个人资料的保存多以加锁的办法来解决。若使用传统的机械式钥匙开锁,人们常需携带多把钥匙, 使用极不方便, 且钥匙丢失后安全性即大打折扣。随着科学技术的不断发展,人们对日常生活中的安全保险器件的要求越来越高。为满足人们对锁的使用要求,增加其安全性,用密码代替钥匙的密码锁应运而生。密码锁具有安全性高、成本低、功耗低、易操作等优点。鉴于目前的技术水平与市场的接收程度,电子密码锁成为了电子防盗产品的主流。

基于以上思路,本次设计使用ATMEL公司的AT89C51实现一基于单片机的电子密码锁的设计,其主要具有以下功能:设置密码功能、用户密码修改功能、超时报警功能、液晶1602显示功能、4×4矩阵键盘输入等基本密码锁功能,还具备掉电存储于AT24C02以及声光提示等保护功能。另外,此系统依据实际的情况还可以添加遥控功能。本系统成本低廉,功能实用,比较适合当代市场的要求。

关键词:AT24C02;AT89C51;电子密码锁;4×4矩阵键盘

ABSTRACT

In our daily life and work, the security of house, company departments, document files, financial forms, as well as some personal information always used the lock to protect them. If people use the traditional mechanical key to lock out the door, people often need to take more than one key with themselves, which is inconvenient. And if we lose the key by careless, the security looks very easy to break out. With the continuous development of science and technology, people’s demand to the equipment of insurance and safety of daily life become more and more high. In order to meeting to the require- ments of the use of locks and increasing their security, the code lock with the pass- word replaced the key came into being .The code Locks have some advantages, such as safe, low cost, low power consumption, easy operation and so on. Given the current level of technology and the receive degree of market, the electronic code lock become the mainstream of the electronic anti-theft products.

Based on the above ideas, this design used the AT89C51 made by ATMEL corpor- ation to produce a electronic code locks based on a single chip, which have the follow- ing main functions: establishment password function, user password revision function, overtime warning function, liquid crystal 1602 demonstration functions, 4×4 matrix keyboard input and so on basic electronic code lock function, but also has the power failure to save in protection functions and so on AT24C02 as well as acousto-optic prompt. Moreover, this system basis on actual situation may also be increased the remote control function. This system cost is inexpensive, the function is practical, satisfies completely request of suitable contemporary market.

Keywords: AT89C51; AT24C02; the electronic code lock; 4×4 Matrix keyboard

目录

摘要 (1)

ABSTRACT (2)

目录 (3)

1 引言 (5)

2 概述 (7)

2.1 背景 (7)

2.2 电子密码锁 (7)

2.3 电子密码锁的特点 (7)

2.4 电子密码锁的发展趋势 (8)

3 方案论证与比较 (9)

4 硬件设计 (11)

4.1 主控电路设计 (12)

4.1.1单片机AT89C51简介 (12)

4.1.2单片机的最小系统 (13)

4.1.2.1系统晶振电路的设计 (14)

4.1.2.2系统复位电路的设计 (14)

4.2 开锁驱动电路 (15)

4.3 4x4矩阵键盘 (16)

4.4 液晶显示电路的设计 (17)

4.4.1 液晶显示简介 (18)

4.4.2 1602字符型LCD简介 (19)

4.4.3 LCD与单片机的接口电路 (21)

4.5 电源电路设计 (22)

5 软件设计 (24)

5.1 软件编程环境的介绍——Keil 简介 (24)

5.2 软件的总体结构设计 (24)

5.2 程序流程图 (25)

5.3 系统程序介绍 (26)

5.3.1 4x4矩阵键盘 (26)

5.3.2 LCD显示程序设计 (27)

5.3.3 存储模块24C02的读写程序设计 (30)