基于单片机的多路报警器设计-副本
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
本科毕业设计
基于单片机的多路报警器设计
摘要
随着科学技术的日新月异,人类社会取得了很大的进步。在生活、工农业生产、气象、环保、国防、科研、航天等领域,经常都需要对环境中的温度、湿度、光照强度、气体等环境参数进行检测及控制。而且随着可燃可爆性气体种类和应用围的增加,贮气
仓库的气体泄漏、火灾爆炸事故日益增多。从安全、环保及经济等方面上考虑,研制一种实用的多路报警系统是非常必要的。
基于这个需求,本设计利用传感器对环境中的温湿度以及可燃气体进行检测,当这些参数不符合预定设置的参数值时,就会自动报警。系统选用MQ_2气体传感器对现场可燃性气体浓度进行检测,选用AM2301温湿度传感器对温度和空气湿度进行检测,采用功能和性价比较高的AVR ATmega16单片机作为中央处理单元,对环境参数进行采集处理并产生自动报警。
本设计可以检测空气中以烷类气体为主的多种可燃性气体的浓度,以及空气温湿度,当达到预先设定的上限或下限报警设定值时,发出声音报警信号,以提示操作人员采取安全对策或自动控制相关安全装置。该报警器可以实时、准确检测可燃性气体以及温湿度并且可以长时间可靠无误的报警,具有很广泛的应用前景和推广价值。
关键词:可燃气体温湿度单片机报警器
Multi-way Alarm Based on MCU
Zeng Xiaoling
(College of Engineering, South China Agricultural University, Guangzhou 510642, China)
Abstract: With the advances of science and technology, human society has made great progress. In life, industrial and agricultural production, weather, environmental protection, defense, research, aerospace and other fields, often wan to detect and control the environmental parameters such as temperature, humidity, light intensity, gas concentration. And with the increase of kind and range of combustible and explosive gas, the number of gas leak, fire and explosion in the air storage warehouse increasing. Be based on security, environmental and economic considerations, developed a practical multi-channel alarm system is necessary.
Base on this demand, this design uses a sensor to detect temperature, humidity and combustible gas, when these parameters do not meet the pre-determined parameter values, it will automatically alarm. Use MQ_2 gas sensor for combustible gas concentration detection, AM2301 temperature and air humidity sensor for temperature and air humidity testing, functionality and cost-effective AVR ATmega16 microcontroller as a central processing unit, to collecting and processing environmental parameters and alarm automatically.
The design can detect the concentrations of a variety of combustible gas such as n-hexane, as well as temperature and humidity, when they reaches the pre-set upper or lower limit alarm setting values, it will send out the sound alarm signal that prompts the operator to take safety measures or automatic control safety devices. The alarm system can accurately detect combustible gas in real time, as well as temperature and humidity, and can reliably and correctly work for a long time. It has a very broad application prospects and promotion value.
Key words:flammable gas temperature and humidity single-chip microcomputer alarm
目录
1 前言 (1)
1.1 课题研究的背景 (1)
1.2 课题研究的目的和意义 (2)
1.3 可燃气体、温湿度报警器国外现状 (3)
2 系统功能及方案设计 (4)
2.1 系统方案比较 (5)
2.2 系统整体方案设计 (5)
2.3 系统功能介绍 (6)
3 报警系统硬件设计 (7)
3.1 单片机原理 (7)
3.1.1 单片机原理概述 (7)
3.1.2 ATmega16单片机的介绍 (8)
3.2 电路系统设计 (9)
3.2.1 单片机最小系统 (9)
3.2.2 环境参数采集电路设计 (10)
3.2.3 报警部分电路设计 (12)
4 报警系统软件设计 (13)
4.1 编译器ICCAVR的介绍 (13)
4.2 系统软件设计 (13)
4.2.1 整体系统软件设计 (13)