基于51单片机的空气质量检测仪_改稿
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
摘要
随着电子信息的快速发展,越来越多的电子设备应用在我们生活中。本次设以STC89C52单片机为控制核心,通过使用PM2.5检测传感器模块、LCD液晶显示模块、按键控制模块、报警模板,实现基于单片机的空气质量检测系统。本次设计主要针对的是解决检测空气中PM2.5的值,设计分为硬件设计和软件设计两个部分,软件设计主要是根据硬件需要实现的功能,按照软件流程图进行编码设计,硬件设计主要是按照不同的模块进行,把整体的硬件分成模块电路设计。软件设计中使用C语言作为单片机的开发语言,由于C语言是偏向于底层硬件语言,其比汇编更加通俗易懂,比高级语言更加适合对硬件的直接控制,而且具有很好的移植性。通过硬件和软件的设计系统可以实现对空气质量PM2.5的检测和显示,当系统检测空气中PM2.5的的浓度值高于正常标准时,报警模块将发出报警,当空气PM2.5浓度值低于报警阈值时,报警停止。本次设计空气检测仪操作简单、成本低、性能稳定、是只能家居的首选。
关键字:单片机;PM2.5传感器;报警器;LCD显示器;
共28页第I页
ABSTRACT
With the development of high and new technology, SCM has been used more and more in daily electronic products. With the STC89C52 microcontroller as control core, through the use of PM2.5 sensor module, LCD LCD module, key control module, alarm template, implementation of air quality detecting system based on mcu. The design of the air quality detection instrument based on MCU is mainly divided into the design of hardware circuit and software program of the preparation of the two part, the hardware design according to the overall plan of system diagram design, the overall design of the hardware circuit is divided into modules. In the software design uses the monolithic integrated circuit C language realization system that that the entire procedure writes, uses the C language to carry on the programming to be possible to make the program readability good, and the procedure is easy to transplant. Through the design of hardware and software can achieve the measurement of air quality in PM2.5 and showed that when the concentration of the detection system of PM2.5 in the air was higher than the normal standard, the alarm module will give an alarm when the air PM2.5 concentration below the alarm threshold, the alarm stops. The design of the air detector is simple, low cost, stable performance, is the only choice for home.
KEYWORDS: MCU; PM2.5 sensor; Alarm; LCD display;
共28页第II页
目录
摘要.................................................................................................................................... I ABSTRACT ..................................................................................................................... II 目录............................................................................................................................... I II 第一章绪论 (5)
1.1课题背景 (5)
1.2设计任务和基本要求 (5)
第二章整体方案设计 (6)
2.1 设计内容介绍 (6)
2.2 控制器选择 (6)
2.3显示模块选择 (6)
2.4系统整体方案设计 (7)
第三章系统硬件设计 (8)
3.1单片机电路设计 (8)
3.1.1单片机的最小系统组成 (8)
3.1.2单片机的时钟电路设计 (9)
3.1.3单片机时钟复位电路设计 (9)
3.2显示电路设计 (10)
3.3 PM2.5传感器电路设计 (12)
3.4 报警电路设计 (13)
3.5 按键电路设计 (13)
第四章系统流程设计 (15)
4.1 系统主流程设计 (15)
4.2 按键流程设计 (16)
第五章仿真与调试 (18)
5.1 硬件调试 (18)
5.2 软件调试 (20)
5.3仿真 (21)
共28页第III页