1、 第1页 共 30 页 摘摘 要要 随着天然气和煤气的大量使用,每一座居民大楼都被天然气所“笼罩” 。天然 气的普及给公共生活带来了方便,减少了城市的污染,提高了生活质量和效率,但同 时天然气也是潜在的 “危险品” 一旦发生大面积泄漏, 处理不及时就可能引发大爆炸, 给居民的生命财产的安全带来巨大的威胁。 我们需要一个解决的办法, 使用天然气报 警器是对付天燃气这一无形杀手的重要手段之一。 本文以气敏传感器和单片机技术为核心设计的气体报警器,可实现声光报警功 能,是一种结构简单、性能稳定、使用方便价格低廉、智能化的气体报警器,具有一 定的使用价值。 其中选用 MQ-7 传感器实现对气体的检测,
2、具有灵敏度高、响应快、抗干扰能力 强等优,而且价格低廉使用寿命长。其与 LM358 连接,将气体信号转换为单片机可识 别的数字信号,经 AT89C51 单片机处理,并对处理后的数据进行分析,是否大于或等 于某个设定值(也就是报警线) ,如果大于则会自动启动报警电路发出报警声音,反 之则为正常状态。同时,该报警器还有温度检测功能。 关 键词关 键词:传感器 报警器 单片机 第2页 共 30 页 ABSTRACT With the wide use of natural gas and coal, each a residential towers were gas “enveloped”. Th
3、e popularity of natural gas brought convenient to public life, reduce the citys pollution and improve the life quality and efficiency . But at the same time , natural gas is also potential “dangerous”, once produce large leak , disposal not timely could trigger, it will be a big bang to peoples life
4、 and property safety. Facing all kinds of accidents caused by the gas leak , we need a solution. Use of natural gas alarm is one of important means deal with gas invisible killer. This papers using the gas sensors and single chip microcomputer as the core.Design can realize the gas alarm sound-light
5、 function ,It is a kind of simple structure, stable performance , easy to use , inexpensive and intelligent gas alarn and it also has certain practical value. Among them , the MQ-7 of gas detection sensor has a high sensitivity, fast response, strong anti-jamming capability etc, and the price is low
6、, service life long . LM358 connected with the gas signal, convent the gas singnal to the digital signal that microcontroller can identify and processing.Be processed and analysis by AT89C51, compare the result value whether is eaqul to or greater than the defaut value (that is ,the alarm limit),if it is greater than the default value, it will automatically start alarm circuit warming voice,conversety for normal state. At the same time ,the alarm has temperature testing function. Keyword