《基于单片机的燃气检测装置.》由会员分享,可在线阅读,更多相关《基于单片机的燃气检测装置.(42页珍藏版)》请在金锄头文库上搜索。
1、湖北理工学院毕业设计(论文)摘 要 燃气检测在社会中应用的很广泛,适用于冶金、石油、化工、家庭、商场、加油站等各种场所。有效快速以及准确地对易燃气体进行监测预报已备受社会的关注。但在现实生活中有些场合的环境复杂导致线路敷设较困难,给气体的检测带来了一定的难度,增加了事故的发生可能。为此,本文设计了一种基于 AT89S52 单片机的燃气检测装置,有效的解决了这个难题。本文通过分析传感器采集信号的原理,采用性能可靠的气敏电阻传感器TGS813,与串行 A/D 转换器 TLC2543相结合,由此来实现对气体信号的采集;由于在测量过程中传感器容易受环境温度的影响,因此为了减小误差, 用DS18B20做
2、辅助器件,对测量数据温度进行补偿,由此提高了测量精度;测量过程中采用无线收发芯片 nRF905,以实现对数据的开路传输;除此之外,电路通过显示模块来对数据进行显示,当发现气体的浓度发生超标的时侯,则立即会发出报警的信号;在本次论文中设计了一个燃气检测装置,这种装置能有效的提升气体浓度检测的相对精度,使其可靠性增强,也在各种复杂环境的下能安装应用。一旦浓度达到设定的范围则会立刻报警。关键词: AT89S52;TGS813;DS18B20;nRF905; Abstract Gas detection application in society is very wide, suitable for
3、 metallurgy, petroleum, chemical, home, shopping malls, petrol stations and other places. To monitor the quality of flammable gas efficiently and accurately forecast has been the social focus. But there are some occasions in real life environment leads to complex circuit equipped more difficult, bro
4、ught certain difficulty to the detection of the gas, increase the occurrence of the accident. To this end, this paper designed a kind of gas detection device based on AT89S52 single chip microcomputer, effectively solved the problem. In this article, through analyzing the principle of sensors to col
5、lect signals, the reliable performance of air resistor sensor TGS813, combined with A serial A/D converter TLC2543, thus to realize the gas signal acquisition; Because in the process of measuring sensor is easily affected by environmental temperature, therefore, in order to reduce error made auxilia
6、ry device DS18B20, to compensate temperature measurement data, and thus improve the measurement accuracy; Used in the process of measuring the wireless transceiver chip nRF9.Keyword:AT89S52;TGS813;DS18B20;nRF905;目 录1.绪论.11.1 课题背景.11.2 气体检测技术的发展现状.11.3 短距离无线通信技术的发展现状.41.4 本课题的研究意义及研究内容.62. 系统方案设计.72.
7、1 系统功能.72.2 系统设计方案.72.3 本章小结.83.硬件系统设计.103.1 单片机电路.113.2 传感器信号采集电路.12 3.2.1气敏电阻传感器TGS813. 13 3.2.2信号采集及调理电路.133.3 A/D转换电路.13 3.3.1 TLC2543芯片. 13 3.3.2 A/D转换电路设计. 143.4温度补偿电路.143.5 无线传输模块.16 3.5.1 nPF905芯片. 16 3.5.2 nRF905接口设计.173.6显示、报警电路.183.7 本章小结.184.系统软件设计.194.1 采集模块程序设计.194.2 温度补偿模块程序设计.20 4.2.1 温度采集程序设计. 21 4.2.2 温度补偿程序设计. 21 4.3 无线收发程序设计.