基于51单片机电子密码锁的课程设计_.doc
文本预览下载声明
基于单片机的电子密码锁设计
摘 要
随着人们生活水平的提高,如何实现家庭防盗这一问题也变得尤为突出。在科学技术不断发展的今天,电子密码防盗锁作为防盗卫士的作用显得日趋重要。
本文从经济实用的角度出发,系统由STC89C52与低功耗CMOS型E2PROM AT24C02作为主控芯片与数据存储器单元,结合外围的键盘输入、LCD显示、报警、开锁等电路模块。它能完成以下功能:正确输入密码前提下,开锁;错误输入密码情况下,报警;密码可以根据用户需要更改。用C语言编写的主控芯片控制程序与EEPROM AT24C02读写程序相结合,并用Keil软件进行编译,设计了一款可以多次更改密码,具有报警功能的电子密码控制系统。
本密码锁具有设计方法合理,简单易行,成本低,安全实用,保密性强,灵活性高等特点,具有一定的推广价值。
关键词:电子密码锁;报警;液晶显示
朗读
显示对应的拉丁字符的拼音
Design of Electric Password Lock Based on MCU
Abstract
As peoples 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 guards role is increasingly important. This article from the economical point of view, the system by the STC89C52 with low power CMOS based E 2 PROM 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
目 录
引言 1
第1章 绪论 2
1.1 电子密码锁的背景与研究意义 2
1.2 电子密码锁的现状及发展趋势 2
1.3 本章小结 4
第2章 系统整体方案设计 5
2.1 设计目标 5
2.2 主控部分的选择 5
2.3 密码输入方式的选择 5
2.4 本章小结 6
第3章 硬件系统设计 7
3.1系统芯片介绍 7
3.1.1单片机STC89C52功能介绍 7
3.1.2 LCD1602显示器介绍 8
3.1.3存储芯片AT24C02介绍 9
3.1.4 I2C总线介绍 9
3.2 硬件电路设计 11
3.2.1 复位电路 11
3.2.2 晶振电路 12
3.2.3存储电路 12
3.2.4 键盘输入电路 14
3.2.5 显示电路 14
3.2.6 电源输入电路 15
3.2.7 报警电路 15
3.2.8 开锁电路 16
3.3 本章小结 17
第4章 软件程序设计 18
4.1 主程序流程图 18
4
显示全部