摘 要
本论文从硬件和
软件两方面对
系统进行了详细的
设计。介绍了核心芯片的选型,外围电路的连接,芯片与芯片之间的连接电路,
程序设计方法和相应的软件。系统电源用7805、7809芯片输出5V、9V电压,通过稳压模块给系统供电。整个设计采用模块化思想,主机采用AT89C51实现控制,由热释电传感器和振动位移传感器对住宅的模拟信号(人体发出的红外信号、引起的振动信号等)进行自动监测,当检测到异常情况,产生数字信号输入单片机,单片机根据输入信号,输出给蜂鸣器报警,做出反应处理。复位电路采用低功耗,四引脚的IMP812监控芯片。系统硬件电路简单、安装方便、操作简单,并且具有成本低的优点,可适用于各种类型的住宅和人群。
关键词:传感器; 单片机; 报警系统
ABSTRACT
This paper from both hardware and software on the system carried out a detailed design. It introduced the Selection of the core chip, the external circuit connections, chip and the connection between the circuit chip, program design methods and the corresponding software. 7805,7809 chip system power output by 5 V, 9V voltage regulator module to the system through the power supply. The whole design is modular thinking, host AT89C51 used to achieve control, by the pyroelectric sensor and vibration displacement sensors for residential analog signal (the human issued by the infrared signal from the vibration signals, and so on) for automatic monitoring, When detected abnormal circumstances, producing a digital signal input SCM, the MCU according to the input signal and output to the buzzer alarm, to respond to treatment. Reset circuit using low-power, four-pin IMP812 monitoring chip.
System hardware circuit simple, easy to install, simple operation, and has the advantage of low cost, applicable to all types of residential and the crowd.
Key
words: sensor; MCU; alarm system
目 录
摘要 I
ABSTRACT II
1 绪论 1
1.1 序言 1
1.1.1 防盗报警系统的构成 2
1.1.2 防盗报警器的分类 2
1.1.3 防盗报警系统在国内外的发展 3
1.1.4 防盗报警器的发展前景与趋势 5
1.2 设计要求与研究内容 5
1.2.1 设计要求 5
1.2.2 研究内容 6
2 系统
方案设计 7
2.1 系统的功能要求 7
2.2 总体的设计方案 7
2.3 系统的相关技术 8
2.3.1 传感器技术 8
2.3.2 单片机技术 10
3 报警器硬件设计 15
3.1 电源电路设计 15
3.2 主机电路设计 15
3.2.1 时钟电路 16
3.2.2 复位及复位电路 17
3.2.3 键盘电路 20
3.3 数码显示电路的设计 22
3.3.1 数码管的
工作原理 22
3.3.2 本系统的数码管显示电路 24
3.4 蜂鸣器电路 25
3.5 用户端探测器设计 26
3.5.1 热释电红外探测器电路设计 26
3.5.2 振动位移传感器电路设计 27
4 报警器软件设计 29
4.1 程序语言设计 29
4.1.1 程序语言的分类 29
4.1.2 单片机汇编语言程序设计的基本步骤 31
4.1.3 汇编语言程序设计方法 31
4.2 报警系统的程序设计 31
4.2.1 主程序设计 31
4.2.2 扫键程序设计 33
5 总结与展望 35
5.1 结论 35
5.2 展望 35
致谢 37
参考文献 38
附录Ⅰ:电路原理图 39
附录Ⅱ:汇编程序 40
1 绪论
1.1 序言
随着社会
经济的飞速发展和人民生活水平的不断提高,人们对其住宅的要求也越来越高,表现在不仅希望拥有舒适、温馨的住所,而且对安全性、智能性等方面也提出了更高的要求。相反地,经济的快速增长也带来了相当大的负面社会效应,城乡、区域