基于单片机的家庭防火防盗系统设计

基于单片机的家庭防火防盗系统设计(论文11000字)
摘 要
随着人们生活便利性的提高,火灾发生的因素大大增多,同时人口的流动也导致火灾和盗窃事件与日俱增,因此家庭防火防盗系统渐渐成为人们生活中的不可或缺的组成部分。
本文首先介绍了家庭防火防盗系统的设计方案,并通过整体电路以及各个模块说明了家庭防火防盗系统的具体功能。本文设计系统以89C51单片机为核心,以DHT11温度传感器、MQ-2烟雾传感器及红外对管传感器作为主要检测元件,可以完成对温度,烟雾以及红外信号的检测,在LCD上显示出来,并且通过蜂鸣器进行声音报警。本文详细讨论了各个模块的组成、作用及工作原理,并对软件进行详细分析,完成功能设计。
测试表明,本设计的所有模块均达到设计的功能要求。
关键词:单片机;温度检测;烟雾检测;红外检测
Abstract
With the improvement of people's life convenience factors greatly increase the fire, while the floating population is also increasing the risk of fire and theft, fire alarm system so the family life gradually become an integral part.
This paper introduces the family fire alarm system design, and through the whole circuit and explain the specific functions of each module home fire alarm system. This design system 89C51 microcontroller core, with DHT11 temperature sensor, MQ-2 smoke sensors and infrared sensor tube as the primary sensing element, can be done to detect temperature, smoke and an infrared signal is displayed on the LCD, and by bees buzzer be audible alarm. This paper discusses the composition, role and operating principle of each module, and the software for detailed analysis and completion design. [资料来源:Doc163.com]
Tests showed that all modules of the design meet the functional requirements of the design.
Keywords: microcontroller; temperature detection; smoke detectors; infrared detector
[资料来源:Doc163.com]


目 录
摘 要 I
Abstract II
目 录 III
第一章 文献综述 1
1.1 防火系统的的背景 1
1.2 防火系统的历史、现状和发展 1
1.3 家庭防火防盗系统的意义 2
1.4论文的结构 2
第二章 系统方案设计 3
2.1 系统基本要求 3
2.2 方案选择 3
2.3 整体框图 3
2.4 元件选择 5
[资料来源:www.doc163.com]
2.4.1 温度传感器的选择 5
2.4.2 烟雾传感器的选择 5
2.4.3 红外传感器的选择 6
第三章 系统硬件电路的设计 7
3.1 硬件电路的总体设计 7
3.2 单片机最小系统 8
3.2.1 89C51单片机 8
3.2.2 单片机最小系统设计 10
3.3感应测量模块 12
3.3.1 感温测量模块各元件介绍 12
3.3.2 传感器模块的设计 15
3.4显示模块 17
3.4.1 显示模块元件介绍 17
3.4.2 显示模块的设计 18
3.5声音报警模块 19
3.5.1 蜂鸣器的介绍 19
3.5.2 声音报警模块的设计 19
3.6 按键模块的设计 20
第四章 系统软件设计 21
4.1 系统总体设计 21
4.2 主程序的设计 21
4.3 温度读取程序的设计 22
4.4 显示模块的程序设计 24
4.5 按键模块的程序设计 27
4.6报警处理子程序的设计 29
第五章 功能调试与展示 31
5.1软件调试 31
5.2 硬件焊接 32
5.3 硬件测试 33
5.4 功能展示 33
5.4.1 显示屏显示 33
5.4.2 温度传感器报警 34
5.4.3 烟雾传感器报警 34
5.4.4 热红外管报警 34
第六章 总 结 34
致 谢 36
参考文献 37
附 录 38
[资料来源:Doc163.com]
