1、 题目:可燃气体检测与报警系统设计 摘 要 摘 要: 本设计主要是由一个 MQ-5 传感器采集气体浓度信号,系统建立浓度与电压关系,进行浓度电压转换,电压浓度转换,浓度显示,声光报警构成的报警装置。本系统由 ADC0809CCN 处理数据, MCU 采用 STC89C52 单片机,完成气体浓度信号的采集显示内容的传输、显示等功能。本设计的可燃气体警报器由六个部分组成:传感器、 LED 显示器、声光报警器、控制电路、 A/D 转换和电源模块。对采集的数字信号进行处理和判断,运用一定的算法计算出待检测气体成分及浓度并送到 LED 显示器显 示出来。当检测气体浓度低于设定报警阀值的时候, LED 显
2、示器仅仅显示测得的可燃气体浓度;当检测气体浓度超出设定报警阀值时给出声光报警。 关键词 : 传感器 , ADCO8O9CCN , 单片机 , LED 显示器 , 声光报警 Abstract: This design is mainly a MQ-5 from the gas concentration sensor signal acquisition system to establish the concentration and voltage relationship for the concentration of voltage conversion, voltage conver
3、sion concentration, concentration display, sound and light alarm warning devices posed. The system consists of ADC0809CCN processing data, MCU using STC89C52 SCM, the completion of the acquisition of gas concentration display signal transmission, display and other functions. The design of the combus
4、tible gas alarm consists of six components: sensor, LED display, sound and light alarm, control circuit, A / D conversion and power module. On the acquisition of digital signal processing and judgments, the use of certain algorithms to calculate the composition and concentration of gas to be detecte
5、d and sent to the LED display is displayed. When the test gas concentration less than the threshold set alarm time, LED display shows only the measured concentration of combustible gas; When gas concentrations exceed the detection threshold when the alarm set to sound and light alarm. Keywords: Sens
6、or , ADCO8O9CCN , Single ChipMicrocomputer , LEDdisplay, Sound and light alarm 第 2 页 目录 1 前 言 . 3 2 方案论证与比较 . 4 2.1 方案一 . 4 2.2 方案二 . 4 2.3 方案三 . 4 2.4 方案论证与比较 . 4 3 单元模块设计 . 5 3.1 电源模块 . 5 3.2 通信部分 . 6 3.3 LED 显示及驱动 . 7 3.4 A/D 采集与单片机最小系统 . 8 3.5 总体功能设计 . 9 4 软件设计 . 10 4.1 单片机程序流程图 . 10 4.2 程序设计 .
7、11 4.3 A/D、单片机数据传输设计 . 11 5 系统调试 . 12 5.1 测试仪器 . 12 5.2 测试方法 . 12 5.2.1 电源测试 . 12 5.2.2 传感器工作测试 . 12 5.2.3 A/D 采集与单片机最小系统电路的调试 . 12 6 系统功能、指标参数 . 13 6.1 概述 . 13 6.2 参数指标 . 13 6.3 模块工作原 理 . 13 6.3.1 气体传感器工作原理 . 13 6.3.2 ADC0809 工作原理 . 14 6.3.3 单片机部分 . 15 6.4 气体结果测量计算 . 15 7 结论 . 16 8 总结与体会 . 17 9 参考文献 . 18 附录 一 : 相关设计图 . 19 附录 二 : 相关设计程序 . 23