摘要:温度和湿度的采集已成为当今社会的一个研究热点,是工农业生产过程中必须考虑的因素之一,它广泛应用于温室环境监测和控制等领域。与传统的采集技术相比,利用单片机技术对温湿度进行采集,能很好地满足工艺要求。本文通过AT89S52单片机、DHT11传感器模块、1602液晶显示和报警模块,设计了简单的智能温湿度采集器。DHT11数字温湿度传感器把采集到的温湿度数据传给单片机,经过单片机的处理,准确地显示在LCD屏幕上,并通过LED灯对温度和湿度进行阈值报警。该采集器能够实时准确地显示温度和湿度值,使用方便,具有较好的应用前景。 55739
毕业论文关键词:温湿度采集器,单片机AT89S52,DHT11传感器,显示和报警
Abstract: Acquisition of temperature and humidity has become a hot research topic in modern society, which is one of the factors that must be considered in the process of industrial and agricultural production, and it is widely used in the greenhouses environment and some other areas. Data acquisition with single-chip technology adopted can well meet the technical requirements compared with the traditional acquisition technology. In this thesis, a simple intelligent temperature and humidity logger is designed by AT89S52 micro controller, DHT11 sensor module, 1602 LCD display, and alarm module. DHT11 digital temperature and humidity sensor sends the collected data of temperature and humidity to the single-chip micro controller, and then they are accurately displayed on the LCD screen after processed by the controller. LED will light if the temperature and humidity is out of range. The logger can display the temperature and humidity values accurately in time, which is easy to use and has good application prospects.
Keywords: temperature and humidity collector, single chip AT89S52, DHT11 sensor, display and alarm
目 录
1 引言 4
1.1 课题的提出和意义 4
1.2.1 国外温室环境控制 4
1.2.2 国内温室环境控制 4
1.3 研究的任务和要求 5
2 系统方案设计 5
2.1 总体方案设计 5
2.2 系统设计原则 5
2.3 系统组成及框图 6
3 硬件设计 6
3.1 微处理器 6
3.1.1 AT89S52的介绍 6
3.1.2 AT89S52的主机模块 7
3.2 温湿度采集模块 8
3.2.1 DHT11的介绍 8
3.2.2 单总线的介绍 9
3.2.3 温湿度采集模块电路设计 9
3.3 显示模块 11
3.3.1 LCD1602的介绍 11
3.3.2 显示模块电路设计 12
3.4 按键模块 13
3.5 报警模块 13
4 软件设计 15
4.1 主程序流程图 15
4.2 温湿度采集模块程序设计 15
4.3 显示模块程序设计 16
5 硬件电路的调试