文档详情

基于单片机的温湿度检测.doc

发布:2017-09-15约1.68万字共36页下载文档
文本预览下载声明
目 录 摘 要 I ABSTRACT II 第1章 绪 论 1 1.1 课题来源 1 1.2 课题背景 1 1.3 国内外研究现状及分析 1 第2章 系统方案设计 3 2.1 总体方案设计 3 2.2 系统组成及框图 3 第3章 硬件设计 4 3.1 微处理器 4 3.1.1 51单片机的主要特性 4 3.1.2 STC89C51的引脚具体介绍 4 3.1.2 STC89C51的最小系统 6 3.2 温度测量电路的实现 6 3.2.1 温度传感器的选择 6 3.2.2 DS18B20介绍 7 3.2.3 温度测量电路 8 3.3 湿度测量电路的实现 9 3.3.1 湿度传感器的选择 9 3.3.2 HS1101介绍 9 3.3.3 NE555振荡器 10 3.3.4 湿度测量电路的实现 10 3.4 液晶显示及报警电路 12 3.4.1 显示方案的选择 12 3.4.2 LCD1602及其应用 12 3.4.3 报警电路 14 3.5 按键电路设计 14 第4章 软件设计 16 4.1 主程序流程图 16 4.2 温度模块程序设计 17 4.3 湿度模块程序设计 18 4.4 显示子程序设计 18 4.5 按键模块程序设计 19 第5章 系统的仿真调试 21 结 论 22 参考文献 23 附录I 24 附录II 25 摘 要 随着大棚技术的普及,温室大棚数量不断增多,对于温室大棚来说,很重要的两个管理因素是温度控制及湿度控制。温湿度太低,植物就会被冻死或则停止生长,所以要将温湿度始终控制在适合植物生长的范围内。传统的温度控制是在温室大棚内部悬挂温度计,工人依据读取的温度值来调节大棚内的温度。如果仅靠人工控制,既耗人力,又容易发生差错。现在,随着农业产业规模的提高,对于数量较多的大棚,传统的温度控制措施就显现出很大的局限性。为此,在现代化的温室大棚管理中通常有温湿度自动控制系统,以控制温室大棚中的温湿度,适应生产需要,提高经济效益。 本论文主要阐述了基于STC89C51单片机的温室大棚温度及湿度控制系统设计原理、主要电路设计及软件设计等。该系统采用STC89C51单片机作为控制器,DS18B20作为温度传感器,HS1101作为湿度传感器。系统主要功能如下: 1.对温度进行测量 2.对湿度进行测量 3.温度及湿度的显示 4.温度及湿度超出设定范围时发出报警信号 5.设定温度及湿度设定值 关键词 STC89C51;温室大棚;温度及湿度 ABSTRACT With the popularization of trellis technology, greenhouse trellis an ever-growing number, to greenhouse warming, it is important to shed two management factor is temperature control and humidity control. Temperature is too low, the plant can freeze to death or stop growth, so will always control temperature and humidity in suitable for plant growth range. The traditional temperature control is in greenhouse canopy internal suspension thermometer, workers will adjust the temperature according to read the temperature inside the shelter. If only, both consumption by artificial control human and easy to place regular orders. Now, with the increase of agricultural industry scale quantity shelter for the temperature control measures, the traditional is showing significant limitations. Therefore, in modern greenhouse trellis management zhongtong often temperature and humidity automatic control system to control
显示全部
相似文档