1、 - 1 - 单单 片片 机机 课课 程程 设设 计计 题题 目目 基于单片机的红外报警控制系统基于单片机的红外报警控制系统 姓姓 名名 _ _ 学学 院院 专专 业业 学学 号号 指导教师指导教师 成成 绩绩 二一三年六月二十二日 - 2 - 摘要摘要 本系统是基于 AT89s52 单片机控制的红外线防盗报警器, 主要由红外线感应部分、 单 片机以及声光报警部分组成。可通过红外感应器的红外线被遮挡时控制报警系统报警,通 过单片机控制报警电路的运行,并能同时进行声光报警,用红外线收发管进行检测,安装 隐蔽,不易被发现;探测信号采用脉冲信号,节能且抗干扰。系统可以探测到一定范围内 的人的闯入,可
2、以应用在安防范围比较确定的情况下。采用这种方法设计的防盗报警器具 有成本廉价和探测效果好的优点,有着广阔的市场前景。 关键词:单片机;红外线防盗报警器;声光报警 ABSTRACT ABSTRACT The system is a infra-red anti-theft alarm controlled by single-chip AT89S52 , including infra-red part of the launch , part of the infrared receiver , microcontroller , as well as part of sound and li
3、ght alarm . The system will alarm when infrared ray has been blocked , through the single-chip microcomputer to control the operation of alarm circuit , and at the same time sound and light alarm , with infrared transceiver test tube , install hidden , can not easily be found ; detection signal usin
4、g pulse signal , energy-saving and anti-jamming . This system can detect a certain person within the scope of the intrusion, security can be applied to determine the scope of the case. Designed using this method of anti -theft alarm and detection in a cost-effectiveness of low-cost best advantages,
5、has broad market prospects. KEY WORDS : KEY WORDS : Single chip microcomputer;Infrared anti-theft alarm; Sound and light alarm 目录 1. 绪论 1 1.1 前言 . 1 - 3 - 1.2 设计任务与要求 1 1.3 传感器的选择 . 2 2. 热释电红外传感器概述 3 2.1 PIR 传感器简单介绍 3 2.2 PIR 的原理特性 . 3 2.3 PIR 结构特性 . 4 2.4 红外传感器 RE200B 的相关参数 6 3. 方案设计 7 3.1 系统概述 7 3
6、.2 总体设计 8 3.3 系统硬件选择 9 3.4 硬件电路实现 9 3.5 软件的程序实现 . 12 4. 程序设计及仿真 . 13 4.1 主程序 . 13 4.2 外部中断程序 . 15 5. 结论概述 . 13 5.1 主要论述 . 17 5.2 结束语 . 17 致谢 . 18 参考文献 18 附录一:红外报警系统后续测试及注意事项 附录二:附录二:系统程序清单 附录三:电路原理图 附录四:仿真图 - 4 - 第一章第一章 绪绪 论论 1.11.1 前前 言言 人们生活水平不断提高,对私有财产的保护意识在不断的增强,因而对防盗措 施提出了新的要求。 本设计就是为了满足预防抢劫、盗窃等意外事件的需要而设 计的果园防盗报警系统。 目前,葡萄已成为农民增收的主要经济作物,但每年葡萄成熟季节,由于多种因 素使得成熟的葡萄遭受损失或毁坏。为了防止葡萄受损或被盗,果农通常在葡萄园周 围铺上铁丝网,一来可