基于单片机控制的电子密码锁自动门系统的设计.doc
文本预览下载声明
基于单片机控制的电子密码锁自动门系统的设计
摘 要
随着人们生活水平的提高,如何实现家庭防盗这一问题也变尤突出,传统的机械锁由于其构造的简单,Design of Electric Password Lock Automatic System Based on MCU
ABSTRACT
With the development of the peoples living standard, how to achieve the family security is becoming important in particular. The traditional mechanical lock is unable to meet the peoples needs because of its simple structure, low security. Nowadays, with the continuous development of the science and technology,Electronic password anti-theft lock plays a more important role as the security guards.
This article is based on the economical and practical point of view, uses the United States Atmel Corporation AT89S51 microcontroller as a master chip and the data memory unit, it combines with the external matrix keyboard input, LCD digital display, alarm, unlock and so on circuits, dominates by the C programming language chip EEPROM of the control procedures and carries on the translation with Keil software, the password can be changed many times, the electronic the password control also has the alarming function.
This password lock circuit design has anti-test button input, intelligent control lock, unlock, alarm and change the password multiple functions. Password length can be changed, great security and high flexible than others, it is widely used.
Key Words:Password lock;MCU;Alarm;LCD Display;automatic
目 录
摘 要 I
ABSTRACT II
引 言 1
1 绪论 2
1.1 选题背景 2
2 系统方案论证 5
2.1 设计目标 5
2.2设计方案的选择 5
3 硬件系统设计 7
3.1系统芯片介绍 7
3.1.1单片机AT89S51功能介绍 7
3.1.2 存储芯片AT24C02介绍 10
3.1.3 I2C总线介绍 11
3.1.4 LCD1602显示器介绍 13
3.2 硬件电路设计 14
3.2.1 键盘输入电路 15
3.2.2 电源输入电路 16
3.2.3 掉电存储电路 16
3.2.4 复位电路 17
3.2.5 晶振电路 18
3.2.6 显示电路 18
3.2.7 报警电路 19
3.2.8 开锁电路 19
4 软件程序设计 22
4.1主程序流程图 22
4.2 按键软件设计 22
4.2.1 按键功能程序流程图 22
4.2.2 按键功能子程序 23
4.3 密码设置软件设计 24
4.3.1 密码设置程序流程图 24
4.3.2 密码设置子程序 25
4.4 开锁软件设计 26
4.4.1 开锁程序流程图 26
4.4.2 开锁功能子程序 27
5 调试与实现 29
5.1 硬件调试 29
5.2 软件调试 29
5.3 Proteus仿真 30
结论与展望 32
参考文献 34
附录A 密码锁电路原理图 35
附录B 一篇引用的外文文献及其译文 36
附录C 主要参考文献的题录及摘要 43
附录D 主
显示全部