家用小型智能花房的的温、湿度控制系统设计
家用小型智能花房的的温、湿度控制系统设计(论文16000字)
摘 要
为了更好地在家中培育出各种花卉,就需要采用温室栽培技术,而为了充分发挥温室栽培的作用,就需要一套科学的,先进的管理控制设备,用以对不同的花卉生长的各个时期所需的温度湿度条件进行实时的监控与操作。
本次我用STC89C52为核心制作了一款家用小型智能花房的温湿度控制系统。能够合理选择温度、湿度传感器实现花房温度、湿度的检测;根据花房内所种植的花卉的要求,选择制定温度湿度调整方式;此外还需要实现花房温度、湿度的液晶显示以及报警功能。系统主要由微控制作为控制芯片,DHT11作为温、湿度传感器,按键,蜂鸣器,继电器,红、绿小灯等几部分组成。本系统在运行时需要用到STC89C52进行采集到的数据处理和运算,所以此款单片机是该系统的主要中心部件,用温湿度传感器进行即时的数据采集,采用LCD1602液晶屏作为显示设备,并且和提前设定的温度湿度范围进行比较,若超出预定值,则蜂鸣器和LED灯进行声光报警,继电器做出相应的动作,如开启或关闭风扇,洒水,开启或关闭加热炉,实现花房温湿度的自动控制。按键部分有三个按钮,分别为设置键、加键和减键。实际操作时,用户一上电就能够在显示器上看到实时温、湿度值和预设范围,用户可以使用按键改变预设值(不包括实时温、湿度值)。 [资料来源:www.doc163.com]
关键字:STC89C52单片机 DHT11传感器 温、湿度控制
Temperature and humidity control system for small smart flower house in home
Abstract
In order to better cultivate various flowers at home, it is necessary to adopt greenhouse cultivation techniques, and in order to give full play to the role of greenhouse cultivation, a scientific and advanced management and control device is needed to grow different flowers. The rightful circumstance is needed to make sure in good monitoring and control.
In this work, I did a temperature and dampness control system in the name of the STC89C52 microcontroller. It is very necessary to make sure the demands for temperature and water control based on the demands of the seeding plants, right choose the temperature and dampness sensor get to achieve the hot that incentive needed and water of the hothouse according to the system temperature and demands, choose the control mode temperature and humidity; in addition, the temperature and dampness of the warm greenhouse should be realized. LCD display and alarm function used. The system consists of a single-chip STC89C52 controller, temperature and humidity sensor, liquid crystal display module, buzzer, LED indicator, input button and other parts. Using the controller the heart, the DHT11 sensor is used to collect heat and water. The temperature and humidity induced by the sensor are displayed on the LCD1602 and compared with the temperature and water range set at first. If the predetermined value is exceeded, the buzzer and the LED lamp perform sound and light. Alarms, relays make corresponding actions, such as turning the fan on or off, sprinkling water, turning the furnace on or off, thus achieving automatic control of the temperature and humidity of the greenhouse. There are three buttons in the button section, which are set button, plus button and minus button. In actual operation, the user can see the real-time temperature and humidity values and the preset range on the display when the user is powered on. The user can use the button to change the preset value (excluding the real-time temperature and humidity values). [来源:http://www.doc163.com]
Keywords: STC89C52 single chip microcomputer ;DHT11 sensor ; temperature and humidity control
目录
摘 要 I
ABSTRACT II
第一章 绪论 1
1.1 课题简介 1
1.2 研究背景和意义 1
1.3 温、湿度控制的国内外研究概况 2
1.4 课题研究的思路和方法 3
1.5 本章小结 3
第二章 系统总体方案的设计 4
2.1 设计要求 4
2.2 总体设计及框图 4
2.3 模块选择 5 [资料来源:www.doc163.com]
2.3.1 传感器选择 5
2.3.2 显示模块选择 6
2.4 本章小结 7
第三章 系统硬件设计 8
3.1 整体概述 8
3.2 最小系统模块 10
3.2.1 STC89C52简介 10
3.2.2 单片机最小系统 12
3.3 DHT11传感器电路 15
3.4 LCD1602电路 16
3.5 蜂鸣器报警模块 18
3.6 按键模块 19
3.7 继电控制电路 20
3.8 本章小结 21
第四章 系统软件设计 22
4.1 程序的编写与调试 22
4.2 本章小结 26
第五章 温、湿度控制系统的仿真验证 27
5.1 用proteus搭建仿真电路图 27
5.2 运行模式 29
5.3 温湿度控制系统的功能展示 30
5.3.1 检测以及显示功能 30
[资料来源:http://www.doc163.com]
5.3.2 声光报警及调节功能 30
5.4 本章小结 33
第六章 总结 34
参考文献 35
致 谢 37