摘 要 随着经济和科学技术的快速进展,人们对生活质量的提高和生活环境的改善越来越重视. 天然气作为一种清洁型能源进入家庭得到广泛使用,为人们的生活带来了方便,减少了城市的污染,提高了生活质量和效率,但是同时,天然气也是潜在的“危险品”, 天然气在使用过程中, 若管道和阀门密封不好, 一旦泄漏出去极易爆炸,危及人们的生命财产安全。面对燃气泄漏而造成的种种事故威胁,我们需要一个解决办法。然而使用天燃气检测系统成为了一个重要的讨论课题。本毕业设计的题目是基于单片机的天然气泄漏检测系统设计。本设计主要是由一个MQ-4传感器采集气体浓度信号,系统建立浓度与电压关系,进行浓度电压转换,浓度显示,声光报警构成的报警装置。本系统由ADC0832 处理数据,MCU 采纳STC89C52 ,完成气体浓度信号的采集显示内容的传输、显示等功能. 本设计的可燃气体报警器由六个部分组成:传感器、数码管显示器、声光报警器、控制电路、A/D 转换和电源模块。软件上采纳C 语言编程, 结构简单运行稳定。该检测系统能够检测天然气浓度, 当检测天然气浓度低于设定报警阈值的时候,数码管显示器仅仅显示测得的可燃气体浓度;当检测天然气浓度超出设定报警阈值时给出声光报警,并伴有语音提醒。关键词:MQ-4 传感器;ADCO832;STC89C52 ;数码管;声光报警AbstractWith the rapid development of economy and the science technology , people pay more and more attention to the quality of life and the improvement of living environment 。 Natural gas are widely used in our daily life and brings convenience for people’s lives as a cleaner fuel , reduce the city’s pollution and improve the life quality and efficiency. but at the same time, natural gas is also potential dangerous, If not sealed pipes and valves, they leaked,easily caused by fire ,endangering people’s lives and property. Facing the gas leak all kinds of accidents caused by threats , we need a solution 。 And it is obviously very important to study on the inspection methods and sensors of all kinds of gases。 This graduation design is a gas leak detection alarm sys...