基于单片机红外遥控电子密码锁毕业论文 下载本文

内容发布更新时间 : 2024/11/16 22:43:54星期一 下面是文章的全部内容请认真阅读。

智能红外遥控门的设计

摘 要

在科学技术不断发展的今天,随着人们生活水平的提高,如何实现家庭防盗变得越来越重要。传统机械锁构造简单,携带钥匙易丢;智能门禁控制系统作为一种新的防盗工具具有保密性高,使用灵活性好,稳定性高等优点。

本设计以单片机STC89C52作为智能电子密码锁的核心处理单元,简化了硬件电路的设计,节约了生产成本。其通过芯片程序控制电路的工作方式。通过键盘输入密码,当检测到3次输入密码错误时会通过报警电路发出报警实现提示作用。电子锁就是生活中所用的机械装置,在本次设计中用LED灯和电机代替。灯亮且电机转时表示开锁。软件设计采用自上而下的模块化设计思想,以使系统朝着小型化方向发展,增强系统运行的稳定性。测试最终结果表明,本设计可以达到市场要求。

关键词 STC89C52/电子锁/红外遥控

I

Electronic cipher lock of Intelligence

ABSTRACT

Alone with the constantly development of science and technology today ,the promotion of quality of life ,it becomes more and more important to how to bring about the family to guard against theft .Because of the simple construct of traditional machine lock, and the key is easy to lock . As a new tool to guard against theft, Access Control System of Intelligence is provided of its safer confidentiality, and using the vivid good, the high of safe coefficient.

The design takes STC89C52 as its processing unit of heart, simplifying the design of hardware circuit, saving cost. It controls operation mode of circuit by program of chip, and import cipher by the keyboard. When checking 3 times false cipher, it can bring about prompt to give an alarm. Electronic lock is simple machine in everyday life, which is replaced by LED light in the design. When giving out light, meaning that the lock is open. The software design adoption the design thought from top to bottom, to make the system toward development of small, strengthen the stability of system. Test result indicated that the design can achieve the demand of market.

Keyword STC89C52/ Electronics lock/

II

目 录

中文摘要 ????????????????????????I 英文摘要 ????????????????????????Ⅱ 1 绪论 ?????????????????????????3 1.1 课题背景及意义 ??????????????????3 1.2 智能红外遥控门的发展趋势 ?????????????4 2 系统总体方案设计 ???????????????????5 2.1 智能红外遥控门的设计要求 ?????????????5 2.2 总体设计方案选定 ?????????????????6 3 硬件设计 ???????????????????????6 3.1 单片机简介 ?????????????????????6

3.1.1 主要特征 ????????????????????6 3.1.2 引脚介绍 ????????????????????7 3.1.3 液晶显示1602介绍 ?????????????????9

3.2 硬件电路设计 ???????????????????11 3.2.1 最小系统设计 ??????????????????12

3.2.2 红外遥控介绍 ???????????????????13 3.2.3 遥控发射器及编码 ?????????????????13 3.2.4 遥控接收及其解码 ?????????????????13

3.2.5 显示电路设计 ??????????????????14 4 软件设计 ??????????????????????15

1