基于单片机红外遥控密码锁设计-硬件论文.doc
文本预览下载声明
摘要
针对传统机械锁的各种缺点和重要部门安全性的要求,提出一种基于红外遥控的密码锁设计方案,通过此方案设计的密码锁电路可以满足安全性要求,也能适应特殊环境的使用需求。本文介绍的一种由8052编程实现的控制电路,具有按键指示,控制开锁,控制报警,遥控开锁等功能。红外遥控密码锁的应用研究主要应用了红外线编码及解码技术,并通过单片机实现密码的设置、修改及识别功能。设计电路主要有红外线编码电路、红外线解码电路和键盘及显示电路组成。具有保密性强,灵活性高,适用范围广,特别适合家庭,车库,工厂等场所。
关键词:红外线 密码锁 8052单片机
Abstract
Each kind of shortcoming which and Integral part security request locks in view of the traditional machinery ,proposed that one kind based on infrared remote control’s combination lock design proposal, may satisfy the secure request through this project design’s combination lock electric circuit, can also adapt the special environment use demand .This article introduced that one kind the control circuit which realizes by the 8052 programming, has the pressed key to instruct, control unblanking, control warning, functions and so on remote control unblanking, the infrared remote control combination lock’s applied research has mainly applied the infrared code and the decoding technology, and realizes the password establishment, the revision and the recognition function through the monolithic integrated circuit. The designa circuit mainly by the infrared encode circuit, the infrared decoding unblanking electric circuit and the keyboard and demonstration electricity the road is composed. Has secret, the flexibility is high , the applicable scope is broad, especially qualify family, garage, places and so on factory.
Key word : infrared monolithic; combination lock; 8052
目 录
摘要 I
Abstract II
1 绪论 1
1.1课题背景 1
1.2红外线的基本知识 1
1.3密码锁的发展趋势及特点 1
2 方案设计 3
2.1方案选择 3
2.2方案论证 4
3 红外密码锁的总体设计 6
3.1系统的总体设计 6
3.1.1遥控发射 6
3.1.2主机接收 6
3.1.3红外发射信号的编码 7
3.1.4接收信号的解码 8
3.2密码锁的主要功能 9
4 红外密码锁的硬件部分 10
4.1芯片的介绍 10
4.1.1 AT89C51的介绍 10
4.1.2 74LS164的介绍 14
4.2红外发射与接收装置 15
4.2.1发射装置 15
4.2.2接收装置 16
4.3各模块器件的功能 17
4.3.1 3×4矩阵键盘 17
4.3.2 74LS164芯片 18
4.3.3数码管 19
4.3.4发光二极管LED 20
4.3.5电磁继电器 21
4.3.6报警器 22
4.3.7单片机的硬件抗干扰 22
5 系统的软件设计 24
5.1软件设计 24
5.1.1红外接收解码软件设计 24
5.1.2按键控制软件设计 25
5.2遥控发射部分程序设计 26
5.3
显示全部