基于单片机的温湿度监测系统设计

 2023-04-18 09:04

论文总字数:19725字

摘 要

本设计采用STC15F2K60S2系列单片机以及DHT11的温湿度的监测系统。本项目主要包括硬件产品的设计制作和利用C语言对单片机程序的设计。 硬件电路分别由温湿度传感器、显示模块、单片机三部分组成,系统显示模块由DHT11温湿度传感器以及12864字符型液晶模块二者组成,该产品测试精度高、元件较少、集成度高、稳定,具有很好的实用和高效的价值。 在此之中测量温度和湿度的软件部分,包含有主程序、测温湿度子程序和显示子程序等主要程序。DHT11温湿度传感器是本设计所采用的设备,它是包含有已校准数字输出的一种温、湿度复合传感器,传感器包含有:高性能的8位单片机1个以及电阻式感湿元件1个,并与一个NTC测温元件相连接。 所以该产品具备抗干扰能力强、品质卓越、便宜耐用等优点。 STC15F2K60S2系列单片机是单时钟与机器周期(1T)的单片机,由STC生产的,也是新一代8051单片机,其性能高速、可靠性高、低功耗、超强抗干扰。

关键词:单片机; 温湿度传感器; 显示模块

Temperature and humidity monitoring system design based on single chip microcomputer

Abstract

This design uses STC15F2K60S2 series single chip microcomputer and DHT11 temperature and humidity monitoring system. This project mainly includes the design of the hardware products production and use of C language to the design of single chip microcomputer program. Hardware circuit controlled by temperature and humidity sensor, display module, respectively in three parts, the system display module by DHT11 temperature and humidity sensor and 12864 character LCD module which form, the product high testing precision, less components, high integration, stability, has great value in practical and efficient. In the software part of measuring the temperature and humidity, contains the main program, temperature and humidity measurement subroutine and display subroutine, etc. The main program.DHT11 temperature and humidity sensor is this design USES the equipment, it is containing have calibration of digital output a compound sensor, temperature and humidity sensor includes: a high-performance 8-bit micro-controller 1 and resistance moisture element 1, and connected to a NTC temperature measuring element. So the product has strong anti-interference ability, excellent quality, cheap and durable, etc.STC15F2K60S2 series micro-controller is a single clock cycle (1 t)/machine of single chip microcomputer, produced by on STC, is a new generation of 8051 single chip microcomputer, the performance high speed, high reliability, low power consumption, strong anti-jamming.

Keywords: Single chip microcomputer; Temperature and humidity; Display module

目 录

摘 要 I

Abstract II

目 录 III

第一章 绪 论 1

1.1 温湿度监测技术发展的背景 1

1.2 温湿度监测系统的发展现状 1

1.2.1 温湿度监测在国内外的发展现状 1

1.2.2 问题的提出 1

1.2.3 温湿度监测系统研究及意义 2

1.2.4 本文研究的目的和研究方向 2

1.2.5 本文研究的主要内容 2

第二章 工具简介 3

2.1 C语言 3

2.1.1 C语言的优点 3

2.1.2 C语言的缺点 3

2.2 单片机 3

2.2.1 计算机的新分类 3

2.2.2 嵌入式系统 3

2.2.3 温湿度传感器 4

第三章 方案设计 5

3.1 设计任务要求以及温湿度控制的发展情况 5

3.2 在设计方案中,设计温湿度计的根据以及意义 5

3.2.1 设计要求 5

3.2.2 露点的意义 5

3.2.3 设计总体方案以及方案的论证 5

3.2.4 器件选定 6

第四章 电气设备选型 7

4.1 单片机的选型 7

4.1.1 什么是单片机 7

4.1.2 STC15F2K60S2系列单片机简介 7

4.2 传感器 8

第五章 软件设计 10

5.1 软件结构 10

5.2 温度控制软件设计 10

5.3 温度控制设计流程图 10

5.3.1温度控制设计流程图 10

5.3.2 DHT11温湿度传感器工作流程图 12

5.3.3 12864显示屏工作流程图 13

第六章 方案调试 14

第七章 结束语 15

致 谢 17

参考文献(References) 18

附 录 19

绪 论

1.1 温湿度监测技术发展的背景

当今,随着人民生活水平的改善与收入的提高,大家对生活质量的要求也越来越高,而生活环境,特别是空气质量环境的优化是生活质量的一个重要指标。 为了能够达到最适宜人们生活的最佳温度和湿度,包括现如今很多家庭为了提升生活质量,在家中养花养草,优化生活环境,我们需要研究一种家用式的, 能够对室内的温、湿度进行及时监控的装置,特别希望该装置能够操作简单方便,人们可以根据不同季节温、湿度的变换,以及因个体差异的不同需要进行不同的调整,以便于能够更加便捷地控制、改善生活环境,这不仅仅是出于对生活质量的要求,同时也体现了当今社会的发展和先进。

剩余内容已隐藏,请支付后下载全文,论文总字数:19725字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;