智能楼宇防盗报警器系统的设计
【摘要】 随着微电子和网络技术的飞速发展,人们对居住环境的安全、方便、舒展、提出了越来越多的要求,家庭智能安全防范系统已经成为智能小区建设中不可缺少的一项,针对这一现象我设计了单片机防盗报警系统。
本文设计了一种简单实用的防盗报警系统装置。该系统利用单片机防盗报警系统,可以实现对64点进行自动巡回监测,一旦出现盗情,能立即报警并指示被盗地点。硬件电路设计由多点检测电路、中央处理单元、声光报警电路和数码显示电路组成。本论文应用的硬件为AT89C51单片机,红外线传感器RK2000,由继电器和三极管组成的声报警电路和发光二极管组成的光报警电路,数字显示电路由共阴极数码管和译码器74LS48组成。
它的主要工作原理是采用AT89C51单片机为主控制器,信号采集由红外线传感器RK2000经光电耦合器隔离掉干扰信号,把报警信息传给控制器,经判断、核对,将结果送给报警电路,发出声光报警声信号并显示出事地点。
【关键字】红外线传感器 AT89C51单片机 报警器
The intelligence several—storied building guards against theft to report to the police the machine system research
【Abstract】Whit the network technically and micro-electronics development, people put forward the more and more high request to the safety, convenience, comfort for the living environment, the family intelligence alarming circuit to have become the small area intelligence developments indispensability of an item. Aim at this phenomenon I designed the single-chip microcomputer guards against thief to the police system.
This paper designed a kind of simple guard against thief and report to the police the system device practically. The system make use of the single-chip microcomputer guards against thief to report to the police system, can realize to cruises back to monitor automatically to 64 proceeding, once appear to stealing, it can report to the police immediately and instructions to the rob location. Hardware circuit design is made up of examine the alarming circuit, central handle the unit, sound and light report to the police alarming circuit and show with the figures that the alarming circuit. This text used AT89C51 single-chip microcomputer, the infrared ray sensor is RK2000, report to the police the alarming circuit constitute by give out light diode, arithmetic figure manifestation alarming circuit form totally cathode figures arithmetic figure manifestation alarming circuit from totally cathode figures tube with translate the code machine 74LS48 constitute.
Its main work principle is to adopts the AT89C51 single chip microcomputer as a main controller, the signal collects to be spread by infrared ray sensor RK2000 was given and get an electric shock by light the match the machine insulate to drop the interference signal, it take signal to the police information controller, through the judgment, check figures, give the result.
【Keyword】Infrared Ray Sensor AT89C51 Single-chip Microcomputer Alarming Circuit
目 录
前 言………………………………………………………………………………………………………………… 3
第一章 概 论……………………………………………………………………………………………………… 4
1.1选题背景………………………………………………………………………………………………….. 4
1.2本文研究的主要内容………………………………………………………………………………… 5
第二章 方案论证………………………………………………………………………………………………….. 5
2.1 总体方案…………………………………………………………………………………………………. 5
2.2电路设计方案比较……………………………………………………………………………………. 5
第三章 统硬件设计………………………………………………………………………………………………. 9
3.1 AT89C51简介…………………………………………………………………………………………… 9
AT89C51单片机的外部结构…………………………………………………………………………………… 9
Port2………………………………………………………………………………………………………………….. 13
3.2多点检测电路设计………………………………………………………………………………….. 14
3.3光报警电路设计……………………………………………………………………………………… 18
3.4声报警电路设计……………………………………………………………………………………… 21
3.5数码显示电路设计………………………………………………………………………………….. 21
3.6电源设计………………………………………………………………………………………………… 25
第四章 系统软件设计…………………………………………………………………………………………. 27
4.1防盗报警系统的工作流程……………………………………………………………………….. 27
4.2 主程序…………………………………………………………………………………………………… 28
4.3 读数字程序……………………………………………………………………………………………. 29
4.4 核对子程序……………………………………………………………………………………………. 29
4.5 查找报警点子程序…………………………………………………………………………………. 30
4.6 显示及报警子程序…………………………………………………………………………………. 33
第五章 抗干扰设计…………………………………………………………………………………………… 34
5.1 内嵌抗干扰软件…………………………………………………………………………………….. 34
5.2 输入输出干扰的抑制……………………………………………………………………………… 36
结 束 语………………………………………………………………………………………………….. 37
致 谢………………………………………………………………………………………………………………. 38
参 考 文 献………………………………………………………………………………………………….. 39