摘 要:严重的环境污染问题,已经对整个社会、经济的发展造成了巨大影响。在工业领域的生产环节为了保证其安全、经济、有效等前提以及政府有关环保部门对环境的便捷检测,本文设计基于单片机的便携式多参数环境检测仪,实现多种环境参数检测,如温度、湿度、可燃气体浓度检测。本系统以单片机为核心,以温度、湿度传感器、颗粒传感器、气敏传感器作为测量元件,智能传感器与单片机相连,收集并储存传感器的测量数据,经过分析处理,通过液晶显示屏显示。超限报警和数据辅助存储功能还要在单片机系统中体现。本系统设计原则是可靠性,操作维护方便,使用价值高。65139
毕业论文关键词:单片机,STC89C52,SHT11,温湿度监测,MQ211,PM2.5
Abstract :Serious environmental pollution problems, has on the whole social and economic development caused a huge impact. In the industrial production processes in order to ensure their safety, economic, effective and other conditions related to environmental protection as well as government departments and convenient detection of the environment, the paper design microcontroller-based portable multi-parameter environment detector, detecting achieve a variety of environmental parameters such as temperature, humidity combustible gas concentration detection. This system microcontroller core, temperature, and humidity sensors, particle sensors, gas sensors as a measuring element connected to intelligent sensors and microcontrollers, collect and store the measurement data of the sensor, through the analysis process, through the LCD display. Limit alarm and secondary storage function also reflected in the SCM system. The system design principles are reliability, easy operation and maintenance, cost-effective.
Keywords: microcontroller, STC89C52, SHT11, temperature and humidity monitoring, MQ211, PM2.5
目录
1.前言 4
1.1环境检测仪的背景与目的 4
1.2 环境检测仪的发展现状 4
2.系统总体方案设计 5
2.1系统设计思路 5
2.2 系统硬件选型 6
2.3 STC89C52单片机技术介绍 6
3系统硬件设计 8
3.1系统硬件结构 8
3.2 CPU模块 9
3.3 气体传感器与模数转换模块 11
3.4 温度湿度传感器模块设计 14
3.5灰尘颗粒传感器 18
3.6 LCD显示模块设计 19
3.7 按键电路块 22
3.8 报警电路模块设计 23
4 软件系统设计 24
4.1软件系统总流程 24
4.2 主程序设计 25
4.3 LCD1602显示模块程序设计 26
4.4 SHT11温湿度测量模块程序设计 27
5系统仿真及调试 28
结论 29
参考文献 30
致谢 32
附录1:仿真电路图 33
附录2:程序代码