基于单片机的温湿度监控系统方案

  • 格式:doc
  • 大小:1.29 MB
  • 文档页数:35

下载文档原格式

  / 35
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

XXX大学(学院)本科生毕业设计

基于单片机的温湿度检测系统Temperature and humidity detection system based

on

Single Chip Microcomputer

学生

所在专业

所在班级

申请学位

指导教师职称

副指导教师职称

答辩时间

目录

设计总说明 ............................................................... I INTRODUCTION ............................................................ II 第1章绪论 .. (1)

1.1 概述 (1)

1.2 国外发展现状 (1)

1.2.1 国外研究现状 (1)

1.2.2 国研究现状 (1)

第2章系统总体方案设计 (2)

2.1 设计要求 (2)

2.2 方案选择 (2)

2.2.1 传感器的选择 (2)

2.2.2 单片机的选择 (2)

第3章系统硬件设计 (3)

3.1 整体方案设计 (3)

3.1.1 系统概述 (3)

3.1.2 系统框图 (3)

3.2 最小系统模块 (3)

3.2.1 STC89C52简介 (3)

3.2.2 最小系统电路 (5)

3.3 DHT11传感器电路 (7)

3.3.1 DHT11简介 (7)

3.3.2 接口说明 (8)

3.3.3 DHT11模块电路图 (10)

3.4 液晶显示电路 (10)

3.4.1 1602液晶简介 (10)

3.4.2 液晶引脚说明 (11)

3.4.3 指令介绍 (12)

3.4.4 液晶显示模块电路 (15)

3.5 蜂鸣器模块 (16)

3.6 按键输入模块 (17)

3.7 LED显示电路 (17)

第4章软件设计 (19)

4.1 程序语言及开发环境 (19)

4.2 程序流程图设计 (20)

4.2.1 总体程序流程图设计 (20)

4.2.2 1602液晶程序设计 (21)

4.2.3 温湿度DHT11传感器程序设计 (21)

第5章系统调试 (22)

5.1 硬件调试 (22)

5.2 软件调试 (22)

第6章总结 (23)

鸣 (24)

参考文献 (25)

附录 (26)

附录一元件清单 (26)

附录二原理图 (27)

附录三 PCB图 (28)

设计总说明

温湿度的测量应用围是很广的,对温湿度测量系统的研究也具有深远意义,本课题针对国外对温湿度测量系统的研究与发展状况,分析了目前温湿度测量系统存在的主要问题,设计了一种基于单片机的温湿度测量系统,对某些有着特殊要求温度和湿度的场合实现长期、稳定、实时、自动的监测。本设计主要由硬件电路和软件电路两部分组成,系统通过温湿度检测电路,把采集到的信号传给单片机,通过单片机来处理采集到的信号并通过LCD显示出来,如果温湿度过高或过低,报警电路会自动报警。它以STC89C52单片机为核心,采用DHT11集成温湿度传感器,实现一种智能、快捷、方便的温湿度测量系统。整个系统由温湿度检测电路、LCD显示电路、键盘电路、报警电路和单片机等组成。设计的系统结构简单紧凑,功耗较低,抗干扰能力强、总体性能比较好,符合了智能仪器仪表小型化的潮流,为今后开发高性能和商品化的温湿度测量仪器奠定了良好的基础。

关键词:单片机;温湿度;液晶

INTRODUCTION

Temperature and humidity measurement application range is very wide, the research on temperature and humidity measurement system has the profound meaning, aiming at domestic and foreign to the temperature and humidity measurement system research and development situation, analyzes the main problems existing in current temperature and humidity measuring system, the design of a temperature and humidity measuring system with single chip microcomputer based on the monitoring, some special requirements for temperature and humidity to achieve long-term, stable, real-time situations, automatic. Mainly by the design of hardware circuit and software circuit composed of two parts, the system through the temperature and humidity detection circuit, the acquisition of signal to the microcontroller, through the microcontroller to handle the signal collected and displayed through the LCD, if the temperature and humidity is too high or too low, alarm circuit will automatically alarm. It takes AT89C52 microcontroller as the core, adopts SHT11 integrated temperature and humidity sensor to achieve an intelligent, fast, convenient temperature and humidity measuring system, the whole system consists of temperature and humidity detection circuit, clock circuit, LCD display circuit, keyboard circuit, alarm circuit and MCU etc.. The system design of the structure is simple and compact, low power consumption, strong anti-interference ability, better overall performance, in line with the intelligent instrument miniaturization trend, has laid the good foundation for the future development of temperature and humidity measuring instrument of high performance and commercialization.

KEYWORDS: Single Chip Microcompute; Temperature and humidity; Liquid crystal