基于单片机的CO2浓度检测与显示系统设计 联系客服

发布时间 : 星期四 文章基于单片机的CO2浓度检测与显示系统设计更新完毕开始阅读3ed59ad2b04e852458fb770bf78a6529647d355f

西安建筑科技大学课程设计(论文)

基于单片机的CO2浓度检测与显示系统设计

设计总说明

随着社会经济的发展,人们生活水平普遍提高,对空气品质要求也不断提高,特别是大中城市空气污染严重。二氧化碳气体对人和人农作物的生活生长起着非常重要的作用。所以言之CO2研究检测装置是非常必要的,对我们人的健康和农作物的生长考价值,不同植物对CO2的浓度需求也不尽相同。本论文主要针对空气中二氧化碳浓度设计检测系统。综合考虑系统的精度、稳定性以及经济性要求这三个方面之后,确定以AT89S52单片机为控制核心,选用性价比比较高的传感器,来实现对二氧化碳浓度的准确检测。

本设计共有三部分组成,用CO2浓度传感器TGS4160检测CO2浓度,控制单元用AT89C51单片机,显示模块用LED数码管。整个系统具有易于操作、运行可靠、便于扩充等特点。系统体积小,操作简单,灵活性强,针对不同环境、不同作物的不同要求,可以随时随地修改极限报警值。该系统具有功能强成本低的特点,适合在各种环境进行检测。

关键字:AT89C51,TGS4160,CO2浓度,LED

I

西安建筑科技大学课程设计(论文)

CO2 concentration detection based on single chip

microcomputer and display system design

Design Description

With the development of social economy, the general improvement of people's living standard, the air quality requirements are constantly improve, especially in large and medium-sized cities air pollution is serious.Carbon dioxide gas to human crops growth plays a very important role of life.So the research of CO2 detection device is very necessary, and the growth of crops to the health of our people test value, different plants have different demands for the concentration of CO2.This paper mainly in view of the design of carbon dioxide concentration in the air system.Considering the precision of the system, stability, and economical requirements after the three aspects, determine the AT89S52 single chip microcomputer as control core, with high cost performance sensors, to achieve accurate detection of the concentration of carbon dioxide.

The design of a total of three parts, with CO2 concentration sensor TGS4160 detect CO2 concentration, the control unit with AT89C51, LED digital tube display module.The whole system is easy to operate, reliable operation, easy to expand, etc.System of small size, simple operation, strong flexibility, according to different environment, the different requirements of different crops can be modified at any time and place limit alarm value.This system has the characteristics of strong function of low cost, suitable for all kinds of testing environment.

Keywords :AT89C51,TGS4160,CO2 Concentration,LED

II

西安建筑科技大学课程设计(论文)

目录

1绪论 .............................................................. 1

1.1研究目的和意义............................................... 1 1.2国内外发展状况............................................... 1

1.2.1国外发展现状 ........................................... 1 1.2.2国内发展现状 ........................................... 2 1.3课题的主要内容及研究意义..................................... 3 2系统总体方案的设计 ................................................ 4

2.1系统设计特点和设计思路....................................... 4

2.1.1系统设计特点 ........................................... 4 2.1.2设计思路 ............................................... 4 2.2主要元器件选择............................................... 5

2.2.1传感器选择 ............................................. 5 2.2.2单片机选择 ............................................. 6 2.2.3显示模块 ............................................... 7 2.3 CO2浓度测量的意义........................................... 8 3.系统硬件设计...................................................... 9

3.1电源模块设计................................................. 9 3.2单片机....................................................... 9

3.2.1 AT89C51单片机介绍 ..................................... 9 3.2.2最小系统设计 .......................................... 10 3.3 CO2检测电路设计............................................ 12 3.4报警电路设计................................................ 13

3.4.1报警电路介绍 .......................................... 13 3.5显示模块设计................................................ 14 3.6 A/D转换电路设计............................................ 14

I

西安建筑科技大学课程设计(论文)

3.6.1 AD7705 简介........................................... 15 3.6.2 A/D转换电路 .......................................... 16

4.系统的软件设计................................................... 18

4.1系统总流程图................................................ 18 4.2 A/D转换流程图.............................................. 18 4.3测CO2子程序流程图 .......................................... 19 5.总结............................................................. 21 致谢............................................................... 22 参考文献........................................................... 23 附录............................................................... 24

II