单片机的一氧化碳报警系统的设计与实现(附件)【字数:5892】

众所周知,一氧化碳是对人体有危害的气体。在冬季时,部分家庭会采用炉子来保证温度,然而煤在燃烧时,就会释放出一氧化碳气体。一氧化碳气体对人体有害,严重时可使人窒息致死。所以对于一氧化碳浓度的检测与预警是十分必要的,在此基础上本文设计一种基于单片机的一氧化碳报警器,为人们的安全提供保障。本设计是一款能够对一氧化碳的浓度进行监测并预警的一氧化碳报警器。本次设计内容如下首先通过调查文献并计算一氧化碳报警的不同阈值;其次在设计中,利用传感器采集一氧化碳的浓度,将这个实时的数据经由AD转换,进而设计代码将转换结果与阈值进行比较,最终将比较结果通过外电路的设计实现。本次设计使用的相关设备类型如下STC89C51单片机、MQ-7传感、ADC0809、LCD1602液晶屏幕。这款报警器的具体功能是在一氧化碳浓度大于标准浓度时,可启动排气扇将一氧化碳气体排出。在现实生活中具有较强的实用性。
目录
一、绪论 1
(一) 课题的选题背景 1
(二) 课题研究现状 1
(三)本论文主要研究内容 1
二、 系统总体设计 2
(一)系统总框图 2
(二)系统功能设计 2
三、硬件设计 3
(一) 单片机的选取 3
(二)传感器模块 4
(三) 按键电路 5
(四)液晶显示模块 6
(五) LCD1602液晶显示电路 7
(六) 声光报警模块 8
(七) 排风扇驱动模块 9
(八) 设计的总原理图 10
四、 系统软件设计 13
(一)总体设计思路 13
(二) LCD1602液晶显示程序流程图 14
(三)键盘扫描子程序 15
17
五、系统调试 17
(一)系统软件 17
(二)系统测试 18
总 结 20
致 谢21
Abstract
As we all know, carbon monoxide is a harmful gas to the human body. In wi *好棒文|www.hbsrm.com +Q: @351916072@ 
nter, some households use a stove to keep the temperature, but when coal is burned, carbon monoxide gas is released. Carbon monoxide gas is harmful to the human body and can cause death by suffocation in severe cases. So the detection and early warning of carbon monoxide concentration is very necessary. Based on this, a kind of carbon monoxide alarm based on single chip microcomputer is designed in this paper to provide protection for peoples safety.
This design is a carbon monoxide alarm which can monitor and warn the concentration of carbon monoxide. The contents of this design are as follows: firstly, through surveying the literature and calculating different thresholds for carbon monoxide alarms; secondly, in the design, using the sensor to detect the concentration of carbon monoxide, and converting the concentration results to AD conversion; and then designing the code to compare the conversion results with the threshold values, and finally The comparison result is realized through the design of the external circuit.
The types of related equipment used in this design are as follows: STC89C51 microcontroller, MQ7 sensor, ADC0809, LCD1602 LCD screen. The specific function of this alarm is that when the carbon monoxide concentration is higher than the standard concentration, the exhaust fan can be activated to discharge carbon monoxide gas.
Keywords Carbon monoxide sensor; single chip microcomputer; intelligent control; LCD display
一、绪论
(一) 课题的选题背景
在日常生活中,一氧化碳的身影随处可见。在天气寒冷时如若采取炉子取暖,煤会经过燃烧放出一氧化碳,倘若浓度过高,将对人产生危害,严重可致使人死亡。科学家验证,倘若长期处于高浓度的一氧化碳环境中,对大脑皮层有严重危害。基于上述,本文设计一款能自动检测一氧化碳的浓度,一旦超出阈值,会进行报警并启动排气扇,将一氧化碳气体排除的一氧化碳报警系统。
本文是基于51单片机设计的一款一氧化碳报警系统,其主要功能是能对室内的一氧化碳浓度进行检测并显示,一旦超出标准浓度,会进行告警并启动装置排出,进而保障用户的生命安全。
(二) 课题研究现状
在当今,CO传感器常采取三点定电位的电化学原电池传感器。这种类型的传感器具有检测精准、性价比高等其他特点而得到较为广泛的应用。通常,此类传感器依据方式可分为:电化学法;电气法(热导式与半导式)、色谱层析法、光学吸收法。对我国出产的CO产品进行分析研究,发现其敏感元件设计及原材料不佳,导致产品质量欠佳等问题。

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/dzdq/233.html

好棒文