1、 I 摘要摘要 本设计利用 GS 系列传感器,将置于测试环境中待测气体的浓度转换为 模拟电压,再通过 ADC0809 将模拟电压转换为数字信号,送入单片机 AT89C51 中进行处理。为了用户对气体浓度进行实时了解,将 AT89C51 外 接 3 片 74LS164 作为 3 位 LED 显示器的静态显示接口, 把单片机的 RXD 作 为数据输出线,TXD 作为移位时钟脉冲。74LS164 为 TTL 单向 8 位移位寄 存器,可实现串行输入,并行输出,通过 8 位移位寄存器 74LS164 可进行静 态显示。通过设置报警值,用单片机控制发光二极管和音乐 IC 同时报警。利 用单片机控制技术,
2、制作了程控一氧化碳报警器。该仪器对一氧化碳(CO) 进行实时监控,当一氧化碳的浓度超过允许值时,控制电路进行报警,并通 过外接排风扇与电磁阀对其进行程控,以防事故的发生。另外为了防止程序 陷入死循环, 还利用 x25045 芯片组成的看门狗电路在程序陷入死循环时让单 片机复位,而不用整个系统断电,从而保护了硬件电路。 由于所设计的数字气体报警器采用单片机 AT89C51,其价格便宜,性能 稳定,易于产品化。以 GS 气体传感器和 AT89C51 单片机为核心, 设计气 体泄漏报警器,该报警器设计方法简单易行,使用效果良好,下面给出了气 体泄漏报警器的总体设计原理,关键的硬件电路和所有的软件程序
3、设计。 关键词: 一氧化碳; 气体泄露报警器; AT89C51 单片机; GS 气体 传感器 II Abstract The design of the GS series of sensors, will be placed on the test environment measured the concentration of gas converted to analog voltage, and then through the ADC0809 will be converted to analog voltage digital signal, into the SCM AT89C
4、51 in the process. To users of gas concentrations in real-time understanding, AT89C51 will be linked three 74 LS164 externally as the three LED display static display interface, and the MCU RXD as the output data line, TXD as a shift clock pulse. 74LS164 TTL is a one-way 8-bit register displacement
5、which can be realized enter serial, parallel output, through the 8-bit shift register 74 LS164 can be static display. By setting the alarm level, the MCU control LED and music IC alarm at the same time.SCM control use of technology, produced a program-controlled carbon monoxide alarm. The instrument
6、 of carbon monoxide (CO) for real-time monitoring, when the concentration of carbon monoxide is more than allowed value, the control circuit for alarm, and through an external electromagnetic valve row fans and their program-controlled, to prevent accidents. In addition procedures to prevent a cycle of death, also used x25045 watchdog circuit chip composed of a death in the process so that when the MCU reset cycle, instead of the whole system off, thereby protecting the hardware circuit. As desi