文档介绍:本科毕业论文
(20 届)
基于单片机的密码锁设计
所在学院
专业班级
电子信息工程
学生姓名
指导教师
完成日期
目录
前言 3
第一章系统方案论证 4
1主控部分的选择 4
2密码输入方式的选择 4
第二章系统总体设计和主要芯片介绍 5
1系统总体设计 5
2主要芯片介绍 5
第三章系统硬件构成 11
1系统整体电路图 11
2单片机最小系统原理图 11
3电源输入部分 11
4键盘输入部分 12
3. 5密码存储部分 13
3. 6 显示部分 13
7报警部分 14
第四章软件的设计与实现 15
1主程序流程图 15
2按键功能程序流程图 15
3密码设置流程图 16
4***流程图 17
第五章系统的调试与测试 18
1 proteus 软件简介 18
2 进入 Proteus ISIS 18
18
20
结论 24
参考文献 25
致谢 26
附录 27
附录1:原理图 27
附录2:部分源程序 28
摘要
本系统由单片机系统、矩阵键盘、LED显示和报警系统组成。系统能完成***、超次 锁定、报警、修改用户密码基本的密码锁的功能。除上述基本的密码锁功能外,还具有掉 电存储、声光提示等功能,依据实际的情况还可以添加遥控功能。本系统成本低廉,功能 实用。
关键词:AT89S51; AT24C02;电子密码锁;矩阵键盘。
Abstract
As people's living standards improve, the question how to achieve home security has become particularly prominent. In science and technology is developing continuously, electronic code lock as a security guard's role is increasingly important.
This article from the economical point of view, the system by the STC89C52 with low power CMOS based E2PROM AT24C02 as the master chip and the data memory unit, combined with the external keyboard, LCD display, alarm, unlock and other circuit modules. It performs the following functions: enter the password correctly under the premise of unlocking; wrong password case the alarm; password can be changed according to user needs. Master in C language control program and EEPROM AT24C02 chip to read and write process are combined and compiled with the Keil software, designed a number you can change the password, the password with an electronic alarm control system.
The lock has a reasonable design, simple, low cost, safe and practical, confidentiality, flexibility, and high, with some promotional value.
Key Words: Electric Password lock;Alarm; LCD Display.
刖吞
随着人们生活水平的提高和安全意识的加强,对安全的要求也就越来越高。锁自古以 来就是人们重要的安全工具,人们对它要求甚高,既要安全可靠的防盗,又要使用方便, 这也是制锁者长期以来研制的主题。随着电子技术的发展,各类电子产品应运而生,电子 密码锁就是其中之一。
随着电子锁的密码量变多,并且它容易被人记住,不需要随身携带金属钥匙,免除了 找不到钥匙时的忧伤,所以密码锁的应用越来越广泛。电子锁的种类繁多,例如数码锁, 指纹锁,磁卡锁,IC卡锁