基于单片机控制的电子密码锁设计毕设论文.doc
文本预览下载声明
基于单片机控制的电子密码锁设计
目 录
摘要 I
关键词 I
Abstract II
Key words II
1 绪论 1
1.1 课题背景 1
1.2 课题的目的和意义 1
1.3 电子密码锁发展趋势 1
1.4 本设计完成的工作 2
2 总体方案设计 2
2.1 电源模块 3
2.2主控制器模块 3
3 硬件实现及单元电路设计 4
3.1 主控制模块 4
3.2 单片机的时钟电路与复位电路设计 4
3.3 单片机管脚说明 5
3.4 键盘电路设计 6
3.5 数码管显示电路设计 6
3.6 存储芯片电路设计 7
3.7 报警电路 7
3.8 密码锁电路 7
4 红外遥控电路设计 8
4.1 红外通信基本原理 8
4.2红外通信标准 9
4.3 红外线遥控原理 10
4.4 主要模块设计 10
5 系统软件设计方案 11
5.1 主程序流图 11
5.2 开锁软件设计 12
6 系统的安装与调试 15
6.1硬件的安装 15
6.2单片级密码锁的仿真 16
结论 16
致谢 17
参考文献 17
附录1 整机电路原理图 18
附录2 部分源程序 19
附录3:实物图 27
基于单片机控制的电子密码锁设计
摘要:本设计研究的对象是单片机密码锁,单片机密码锁由硬件和软件组成,硬件部分有电源输出电路、晶振电路、复位电路、键盘接口电路、开锁电路、报警电路、继电器、以及51单片机组成。通过设计电子密码锁,来控制继电器的开断,同时本设计也能对密码锁的密码进行修改,将修改后的密码保存在存储器中。通过这次设计,能够熟练运用单片机来控制其他的部件,加深对单片的的了解,巩固对密码锁知识的学习,同时也锻炼独立思考的能力和动手能力。
关键词:密码锁,报警 ,蜂鸣器,AT89C51,红外线遥控器
Design of electronic password lock based on single chip microcomputer
Abstract: The design of the study object is the microcontroller password lock, microcontroller password lock consists of hardware and software composition, hardware part a power output circuit, crystal circuit, reset circuit, keyboard interface circuit, unlock circuit, alarm circuit, relay and 51 single chip microcomputer. Through the design of electronic password lock, to control the relay disconnected, also the design can also modify the password lock password, the password will be modified saved in memory. Through this design, can skilled use of single-chip microcomputer to control the other parts, deepen the understanding of monolithic, consolidate the password lock knowledge learning, but also exercise the ability of independent thinking and hands-on Ability.
Key words: password lock, alarm, buzzer, AT89C51, infrared remote control
1 绪论
1.1 课题背景
传统的机械开锁有很多的不便,因为用机械锁钥匙体积大,且不方便携带。当钥匙丢失时,容易被他人盗取影响其保密性,所以说传统锁的安全性不高。农村的锁大部分都是机械锁,需要用到机械钥匙才能打开,但是钥匙很容易复制,且不同锁的钥匙有可能打开同一把锁,并且机械锁能撬开,综上所述本次设计电子锁。电子密码锁内部用单片机控制。
本设计是通过密码来控制
显示全部